-
Notifications
You must be signed in to change notification settings - Fork 20
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
Help page document #4250
Help page document #4250
Conversation
0561d66
to
0549030
Compare
db9e7e2
to
1e1bbbc
Compare
1e1bbbc
to
7edf0d3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a really good start. I think not being able to merge the Take Part PR means that this one needs some extra work before it's ready.
We've already spoken IRL about linking to the files in government-frontend directly. I think the only commit that needs the links updated is the one that ports over the components.
I've added inline comments for everything else.
7edf0d3
to
7e13108
Compare
7e13108
to
680318a
Compare
680318a
to
0a19583
Compare
0a19583
to
1cb231d
Compare
3d10363
to
a1bec0a
Compare
a1bec0a
to
8899bce
Compare
8899bce
to
a254b1d
Compare
a254b1d
to
18f8587
Compare
18f8587
to
51b5458
Compare
023eac4
to
43a048b
Compare
43a048b
to
67813dd
Compare
67813dd
to
099f933
Compare
099f933
to
985c869
Compare
985c869
to
717cebb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (but we need a second opinion because I am now implicated in some of this)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There are a couple of inline comments about linking to the original files in government-frontend, otherwise it looks great. 🎉
717cebb
to
1e8b0a4
Compare
1e8b0a4
to
df5475b
Compare
Commit audit trail: - app/views/shared/_footer_navigation.html.erb https://github.com/alphagov/government-frontend/blob/3e5710c5129b3e1b1abd7176fef951bc73b7b49b/app/views/shared/_footer_navigation.html.erb - app/views/shared/_sidebar_navigation.html.erb https://github.com/alphagov/government-frontend/blob/3e5710c5129b3e1b1abd7176fef951bc73b7b49b/app/views/shared/_sidebar_navigation.html.erb
- Used in Help Page - Includes spec file, documentation Commit audit trail: - app/assets/stylesheets/components/_published-dates.scss https://github.com/alphagov/government-frontend/blob/af54031948650448b965ac274c3248d23658c4f6/app/assets/stylesheets/components/_published-dates.scss - app/views/components/_published_dates.html.erb https://github.com/alphagov/government-frontend/blob/af54031948650448b965ac274c3248d23658c4f6/app/views/components/_published_dates.html.erb - app/views/components/docs/published_dates.yml https://github.com/alphagov/government-frontend/blob/af54031948650448b965ac274c3248d23658c4f6/app/views/components/docs/published_dates.yml - spec/components/published_dates_spec.rb https://github.com/alphagov/government-frontend/blob/af54031948650448b965ac274c3248d23658c4f6/test/components/published_dates_test.rb
- Ran rake "consolidation:copy_translation[components.published_dates]"
…p_page - Add new route - Add help_page controller - Add body_with_related_links partial - Update content item model - Add help_page views - Add system spec for the new help_page Commit audit trail: - spec/system/help_page_spec.rb https://github.com/alphagov/government-frontend/blob/af54031948650448b965ac274c3248d23658c4f6/test/integration/help_page_test.rb - app/views/help_page/show.html.erb https://github.com/alphagov/government-frontend/blob/af54031948650448b965ac274c3248d23658c4f6/app/views/content_items/help_page.html.erb - app/views/content_items/_body_with_related_links.html.erb https://github.com/alphagov/government-frontend/blob/3e5710c5129b3e1b1abd7176fef951bc73b7b49b/app/views/content_items/_body_with_related_links.html.erb
- Add new DateHelper to deal with the last updated date on help pages - Add page_text_direction to LocaleHelper Commit audit trail: - app/helpers/locale_helper.rb https://github.com/alphagov/government-frontend/blob/af54031948650448b965ac274c3248d23658c4f6/app/helpers/application_helper.rb - app/helpers/date_helper.rb https://github.com/alphagov/government-frontend/blob/af54031948650448b965ac274c3248d23658c4f6/app/presenters/content_item_presenter.rb
- Ran rake "rake "consolidation:copy_translation[i18n]"
df5475b
to
cc4a20f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great 👍
What
Handle Help page documents in Frontend, in preparation for them being taken out of Government Frontend
Why
https://trello.com/c/GP0bkcD4/350-move-document-type-helppage-from-government-frontend-to-frontend
How
These documents all have a fixed prefix, so add a scoped route for them, a controller, a model and a view. Here we add the initial ContentItem model the document type models will be based on, with the minimum functionality required to get Help page documents working.
We also create a couple of helpers for rendering generic content.
Screenshots?
From example page: https://www.gov.uk/help/browsers
Before (running in Government Frontend)
After (running in Frontend)