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

Remove hardcoded banner code #3920

Merged
merged 2 commits into from
Dec 20, 2024
Merged

Remove hardcoded banner code #3920

merged 2 commits into from
Dec 20, 2024

Conversation

hannako
Copy link
Contributor

@hannako hannako commented Dec 20, 2024

In preparation for adding UR banners to pages rendered by Collections, this PR

  • Removes the old code that used to be used to power the banners
  • Adds a call to govuk_web_banner's intervention_banner partial

There are no user facing changes

https://trello.com/c/T2PlxBdl/3146-put-live-govuk-user-research-banner-requests-govuk-contact-ukvi

These files are no longer required now that UR banners are handled by
govuk_web_banners
@govuk-ci govuk-ci temporarily deployed to collections-pr-3920 December 20, 2024 14:01 Inactive
@hannako hannako force-pushed the remove_hardcoded_banner branch from 22c766d to faed86d Compare December 20, 2024 14:02
@govuk-ci govuk-ci temporarily deployed to collections-pr-3920 December 20, 2024 14:02 Inactive
@hannako hannako force-pushed the remove_hardcoded_banner branch from faed86d to f62ca24 Compare December 20, 2024 14:04
@govuk-ci govuk-ci temporarily deployed to collections-pr-3920 December 20, 2024 14:04 Inactive
@hannako hannako force-pushed the remove_hardcoded_banner branch from f62ca24 to 4eb27ae Compare December 20, 2024 14:12
@govuk-ci govuk-ci temporarily deployed to collections-pr-3920 December 20, 2024 14:12 Inactive
@hannako hannako force-pushed the remove_hardcoded_banner branch from 4eb27ae to 9598a83 Compare December 20, 2024 14:20
@govuk-ci govuk-ci temporarily deployed to collections-pr-3920 December 20, 2024 14:20 Inactive
@hannako hannako force-pushed the remove_hardcoded_banner branch from 9598a83 to 4b25197 Compare December 20, 2024 14:45
@govuk-ci govuk-ci temporarily deployed to collections-pr-3920 December 20, 2024 14:45 Inactive
@hannako hannako force-pushed the remove_hardcoded_banner branch from 4b25197 to 9444715 Compare December 20, 2024 15:03
@govuk-ci govuk-ci temporarily deployed to collections-pr-3920 December 20, 2024 15:03 Inactive
The recommended approach is to add a call to the partial to the application
layout below the breadcrumbs[1]

However on browse pages, the breadcrumbs sit inside the black browse header so adding the banner
across the header looks bad. For browse pages, we need to call the intervention banner partial below
the browse header.

[1] https://github.com/alphagov/govuk_web_banners?tab=readme-ov-file#adding-recruitment-banners
@hannako hannako force-pushed the remove_hardcoded_banner branch from 9444715 to 606affc Compare December 20, 2024 15:15
@govuk-ci govuk-ci temporarily deployed to collections-pr-3920 December 20, 2024 15:16 Inactive
Copy link
Contributor

@beccapearce beccapearce left a comment

Choose a reason for hiding this comment

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

Looks good!

@hannako hannako merged commit aa5012f into main Dec 20, 2024
14 checks passed
@hannako hannako deleted the remove_hardcoded_banner branch December 20, 2024 15:18
hannako added a commit that referenced this pull request Dec 20, 2024
@hannako hannako mentioned this pull request Dec 20, 2024
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.

3 participants