-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove taxon-list app component from collections #3844
Open
MartinJJones
wants to merge
5
commits into
main
Choose a base branch
from
remove-taxon-list-component
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MartinJJones
force-pushed
the
remove-taxon-list-component
branch
from
November 18, 2024 09:40
2f2209b
to
b2059e5
Compare
MartinJJones
force-pushed
the
remove-taxon-list-component
branch
6 times, most recently
from
November 27, 2024 10:42
de8930b
to
35057dc
Compare
MartinJJones
force-pushed
the
remove-taxon-list-component
branch
from
November 27, 2024 14:11
35057dc
to
9832a2a
Compare
MartinJJones
changed the title
Remove taxon-list component
Remove taxon-list app component from collections
Nov 27, 2024
Remove all files relating to the taxon-list component the taxon-list component as it is no longer required. The component was originally created for an AB Test on https://www.gov.uk/education/funding-and-finance-for-students#/education/student-grants-bursaries-scholarships This page is now using the document-list component from the govuk_publishing_components gem
Update data structure returned from `taxon_list_params` method Updated the structure to work with the document-list gem component, setting `full_size_description: true` ensures the font-size is set to 19px for the description when present - https://components.publishing.service.gov.uk/component-guide/document_list/with_full_size_description_text
- Use the `document-list` component from the gem instead of the `taxon-list` app component in the `tagged_content_list.html.erb` and `accordion.html.erb` view templates - By using the document-list component, the list will change from an ordered list to an unordered list, this feels like a slight improvement as the content presented does not appear to be in order of sequence/importance - `heading_level` variable removed from the `tagged_content_list.html.erb` template, the document-list component does not support headings and is not required here This approach is also consistent with other places the document-list component is used, for example: - [Education, training and skills - GOV.UK](https://www.gov.uk/education) (collections) - [Find contact details for services - GOV.UK](https://www.gov.uk/contact) (feedback) - [Travel or do business in Europe: Brexit guidance](https://www.gov.uk/government/collections/brexit-guidance) (government-frontend) - set `disable_ga4: true` to disable GA4 tracking - in the accordion.html.erb this prevents duplicate events from firing as this is already built into the accordion component - GA4 was not enabled previously in the tagged_content_list.html.erb
Replace the `taxon-list` component with the `list` component from the govuk_publishing_components gem. `list_type: "number"` has been used to ensure an ordered list is used to match the current HTML structure
Updated the tests to check that the "title", "link" and "description" for each search result/tagged content is included on the page
MartinJJones
force-pushed
the
remove-taxon-list-component
branch
from
December 4, 2024 15:51
fe70206
to
7aa60ee
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
Why
Visual changes
Spacing is increased slightly for list items when using the document-list component
https://collections-pr-3844.herokuapp.com/world/afghanistan (accordion.html.erb)
https://collections-pr-3844.herokuapp.com/world/living-in-afghanistan (tagged_content_list.html.erb)
https://collections-pr-3844.herokuapp.com/government/ministers/secretary-of-state-for-foreign-commonwealth-and-development-affairs (past_role_holders.html.erb) - No visual changes
Trello card