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

Minor bug fixes to HMRC manual layout and breadcrumbs #3284

Merged
merged 3 commits into from
Jul 31, 2024

Conversation

hannako
Copy link
Contributor

@hannako hannako commented Jul 29, 2024

https://trello.com/c/DwMxfbuf/1145-breadcrumb-issues-in-hmrc-internal-manuals

1. Don't display the "Summary" heading if there's no content below it.

Eg on https://www.gov.uk/hmrc-internal-manuals/capital-gains-manual

Before After
Screenshot 2024-07-29 at 22 58 32 Screenshot 2024-07-29 at 22 57 53

Here's a page that has a populated description on live and on the review app to show that there's no visible change.

2. If breadcrumbs are present, display them

Eg debt management and banking manual

Eg capital gains manual

Before After
Screenshot 2024-07-29 at 23 00 16 Screenshot 2024-07-29 at 23 01 51

Follow these steps if you are doing a Rails upgrade.

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3284 July 29, 2024 21:56 Inactive
@hannako hannako changed the title Minor fixes to HMRC manual layout and breadcrumb bug fix Minor bug fixes to HMRC manual layout and breadcrumbs Jul 29, 2024
@hannako hannako marked this pull request as ready for review July 29, 2024 22:09
Copy link
Contributor

@KludgeKML KludgeKML left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (one non-blocking comment)

hannako added 3 commits July 30, 2024 16:21
Some HMRC manual content items don't contain a description. E.g.
https://www.gov.uk/api/content/hmrc-internal-manuals/capital-gains-manual

In this case, we should not show the heading "Summary" as the content
of the summary is missing.
A bug was introduced in 8128fb2
so that breadcrumbs were no longer being displayed on the page.
If breadcrumbs are present in the content item, we should display them.
If they're absent, display a back link to the parent manual.
@hannako hannako force-pushed the hmrc_manual_breadcrumbs branch from c221f01 to 70f902a Compare July 30, 2024 15:23
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3284 July 30, 2024 15:23 Inactive
Copy link
Member

@hannalaakso hannalaakso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first two commits LGTM 👍

@hannako hannako merged commit d1c94d4 into main Jul 31, 2024
11 checks passed
@hannako hannako deleted the hmrc_manual_breadcrumbs branch July 31, 2024 09:20
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.

4 participants