Skip to content
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

[WIP] Move detailed guide document #4610

Draft
wants to merge 27 commits into
base: main
Choose a base branch
from

Conversation

sairamya93
Copy link
Contributor

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

What

To handle the rendering of detailed_guide document type from government_frontend to frontend as part of [RFC 175]

Why

https://trello.com/c/X9bILs3t/444-move-document-type-detailedguide-from-government-frontend-to-frontend

How

Screenshots?

@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4610 January 23, 2025 14:58 Inactive
@sairamya93 sairamya93 force-pushed the move-detailed-guide-document branch 2 times, most recently from 8747e78 to 12ba923 Compare February 6, 2025 16:09
- Added the title
- Updated the metadata in the header to fetch from govuk_publishing_components directly
- Added the description tag in the header
- Updated the code to retrieve 'title' value directly instead of the method 'title_and_context'
- Replaced title with heading component
Copied over the module Contents List and added as a concern in frontend
Updated to use the code to strip trailing colons in headings in the method : extract_headings_with_ids
Audit trail: https://github.com/alphagov/government-frontend/blob/85ede5293306d70f701749822a2ad0c75f201c5a/app/presenters/content_item/contents_list.rb
@sairamya93 sairamya93 force-pushed the move-detailed-guide-document branch from 12ba923 to 646fde5 Compare February 10, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants