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

Add govuk_web_banners gem #3882

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Add govuk_web_banners gem #3882

merged 1 commit into from
Dec 10, 2024

Conversation

KludgeKML
Copy link
Contributor

@KludgeKML KludgeKML commented Dec 2, 2024

  • We don't include the partial in this commit, just the dependencies.
    Partials are a bit more complex in collections because there are some
    pages where the partial needs to go within the main block. The partial
    can be added later in the exact place it's needed. This makes collections
    a bit more work for the developer, but at least for each page type the
    partial will only have to be added once.

https://trello.com/c/aYXKcrCo/375-create-govukwebbanner-gem-with-support-for-recruitment-banners

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

@govuk-ci govuk-ci temporarily deployed to collections-pr-3882 December 2, 2024 15:45 Inactive
Copy link
Contributor

@hannako hannako left a comment

Choose a reason for hiding this comment

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

I think we've had a good percentage of banner requests for browse pages so am wondering what best course of action is here... This was always the bit of the jigsaw I was worried about, as I'm aware that we add the banner in different files/locations depending on the document type!

We could just add dependency in these PR's and then when we need to add a banner we will have to figure out which file to add the partial?

- We don't include the partial in this commit, just the dependencies.
  Partials are a bit more complex in collections because there are some
  pages where the partial needs to go within the main block. The partial
  can be added later in the exact place it's needed. This makes collections
  a bit more work for the developer, but at least for each page type the
  partial will only have to be added once.
@KludgeKML KludgeKML force-pushed the add-govuk_web_banners-gem branch from 1610a58 to 65407ed Compare December 2, 2024 16:22
@govuk-ci govuk-ci temporarily deployed to collections-pr-3882 December 2, 2024 16:22 Inactive
@KludgeKML
Copy link
Contributor Author

I think we've had a good percentage of banner requests for browse pages so am wondering what best course of action is here... This was always the bit of the jigsaw I was worried about, as I'm aware that we add the banner in different files/locations depending on the document type!

We could just add dependency in these PR's and then when we need to add a banner we will have to figure out which file to add the partial?

Yeah, that seems reasonable. It'll mean each time a banner gets added we'll have to work out whether or not the partial is included, but that should be relatively quick (and the partial can easily be added ahead of the go-live time for the banner).

@leenagupte
Copy link
Contributor

I think we've had a good percentage of banner requests for browse pages so am wondering what best course of action is here... This was always the bit of the jigsaw I was worried about, as I'm aware that we add the banner in different files/locations depending on the document type!

We could just add dependency in these PR's and then when we need to add a banner we will have to figure out which file to add the partial?

Yes I think agree with this suggestion. Otherwise we run the risk of the banner appearing in odd places. Once the requests come in we can add the banner to the appropriate partials. On the brightside once they're in, they won't need to be removed from here again.

Copy link
Contributor

@hannako hannako left a comment

Choose a reason for hiding this comment

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

LGTM

@KludgeKML KludgeKML merged commit 0b5c100 into main Dec 10, 2024
14 checks passed
@KludgeKML KludgeKML deleted the add-govuk_web_banners-gem branch December 10, 2024 14:16
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