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

WSTEAM1-1300 - Article election banner #12024

Merged
merged 91 commits into from
Oct 24, 2024

Conversation

amoore108
Copy link
Contributor

@amoore108 amoore108 commented Oct 2, 2024

Resolves https://jira.dev.bbc.co.uk/browse/WSTEAM1-1300

Overall changes

  • Adds election banner component to Article pages when certain aboutTags are in the article metadata
  • The election banner component renders a VJ iframe to display the content on both canonical and AMP
  • This is restricted to the Test environment

Note - Design, spacing etc is not yet final

Testing

  1. Visit http://localhost.bbc.com:7080/mundo/articles/c206j730722o?renderer_env=live
  2. Confirm the banner renders above the content
  3. Visit http://localhost.bbc.com:7080/mundo/articles/c206j730722o.amp?renderer_env=live (amp version)
  4. Confirm the banner renders above the content
  5. Visit http://localhost.bbc.com:7080/mundo/articles/c2dp89lgnw7o?renderer_env=live
  6. Confirm the banner does not render as this article doesn't have the correct aboutTags

Helpful Links

Add Links to useful resources related to this PR if applicable.

Coding Standards

Repository use guidelines

Copy link
Contributor

@Isabella-Mitchell Isabella-Mitchell 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 so far 👍

@amoore108 amoore108 marked this pull request as ready for review October 23, 2024 10:28
Copy link
Contributor

@karinathomasbbc karinathomasbbc left a comment

Choose a reason for hiding this comment

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

Nice, I like how it has been integrated using the About Tags 👍

src/app/pages/ArticlePage/ElectionBanner/config.ts Outdated Show resolved Hide resolved
src/app/pages/ArticlePage/ElectionBanner/index.tsx Outdated Show resolved Hide resolved
@amoore108 amoore108 merged commit abef9c6 into latest Oct 24, 2024
11 checks passed
@amoore108 amoore108 deleted the WSTEAM1-931-article-election-banner branch October 24, 2024 09:29
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.

5 participants