-
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
Support rendering of service manual document types #2583
Conversation
89b9e37
to
b8e770d
Compare
b8e770d
to
b635798
Compare
482ff08
to
5c6e3f0
Compare
94b5d3a
to
7b360ec
Compare
7b360ec
to
c27f072
Compare
c27f072
to
2ea563e
Compare
2ea563e
to
e2d1b40
Compare
e2d1b40
to
a6a4688
Compare
a6a4688
to
360bda8
Compare
360bda8
to
c4f45f1
Compare
1210298
to
042560b
Compare
042560b
to
9857eb2
Compare
9857eb2
to
e6d05bf
Compare
- There is some logic needed to support a scoped search from the search bar on service manual pages. Bring in the route, controller logic and specs for that. - A couple of service manual doc types require different slimmer templates. Other than that, the code in the controllers was the same so we can consolidate.
Service manual guides, topics and service standards have custom breadcrumbs defined in their presenter classes. Service manual homepage has no breadcrumbs. The setting of custom breadcrumbs is already supported by setting the var @do_not_show_breadcrumbs. So follow that pattern here.
740c012
to
a1769ab
Compare
Can we swap out: with https://components.publishing.service.gov.uk/component-guide/signup_link and delete the email icon? |
I guess we own the app now! Should we check with Monica? |
@hannako nah, given we're not really changing anything drastic and we're adding in a component. Give it a go and show them if you feel it needs to be checked. |
I've taken a good look and nothing further from me - I'm good to approve this after the above is put in, if @chao-xian doesn't have any further notes? |
Sorry to be a pain, but could we split this commit up? f90b068 maybe per bullet point? |
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.
Great work folks! Just a couple of minor comments (using an existing component but I'm ok for that to be a separate PR) and splitting one of the PRs up (which is a nitpick). Thanks!
- Source files: https://github.com/alphagov/service-manual-frontend/tree/main/test - Update file names and class names.
Remove simulate_example_as_first_edition_on_draft_stack method and do not import https://github.com/alphagov/service-manual-frontend/blob/main/test/support/draft_stack_examples.rb
Also refactor.
- import the phase label helper and fix specs - update application layout to toggle to custom phase label for service manual doc types
7fc4bab
to
e05b691
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 good to me. Left a minor comment.
I couldn't see where the "icons-plus-minus" are used, which makes me wonder if we actually need them.
Update this application so that it can render the following content types:
Trello: https://trello.com/c/1gPCngv0/1136-migrate-service-manual-frontend-templates-into-government-frontend-m
This PR is a precursor to the retirement of service manual frontend. It can safely be merged, as all published documents still have service_manual_frontend as their rendering_app at this time.
Next steps:
Outstanding issue: #2679
Pages to compare
service_manual_guide
service_manual_homepage
service_manual_service_standard
service_manual_topic
service_toolkit