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-1349: Lite Site CTA #12058

Merged
merged 38 commits into from
Oct 30, 2024
Merged

WSTEAM1-1349: Lite Site CTA #12058

merged 38 commits into from
Oct 30, 2024

Conversation

Isabella-Mitchell
Copy link
Contributor

@Isabella-Mitchell Isabella-Mitchell commented Oct 17, 2024

Resolves JIRA WSTEAM1-1349

Overall changes

Implements Lite/Canonical site CTA to the Gahuza Service. Will show on all .lite pages above Navigation.

Screenshot 2024-10-22 at 14 20 06

Code changes

  • Adds LiteSiteCTA component
  • Imports LiteSiteCTA component into Header container to render above Nav
  • Add Integration & E2E tests for LiteSiteCTA component (limited to Article pages for now)
  • Updates page metadata title on .lite site.
  • Adds Gahuza Translations & link supplied from editorial
  • Adds swarm spreadsheet & A11y links to Storybook metadata

A follow up PR will be needed after soft launch to remove restrictions to Gahuza service & add further E2E tests

Testing

  1. Storybook LTR: https://wsteam1-1349-lite-site-cta--5d28eb3fe163f6002046d6fa.chromatic.com/iframe.html?args=&id=components-litesitecta--component&viewMode=story
  2. Storybook RTL: https://wsteam1-1349-lite-site-cta--5d28eb3fe163f6002046d6fa.chromatic.com/iframe.html?args=&globals=service.service:arabic&id=components-litesitecta--component&viewMode=story
  3. Preview (Active once branch is on preview): https://simorgh.belfrage-preview.test.api.bbc.com/gahuza/articles/cey23zx8wx8o.lite
    https://simorgh.belfrage-preview.test.api.bbc.com/gahuza.lite
  4. Local: http://localhost:7080/gahuza.lite. (note the canonical link does not work locally)

Helpful Links

A11y AAC
Screen Reader UX
Designs

Coding Standards

Repository use guidelines

@shayneahchoon shayneahchoon marked this pull request as ready for review October 22, 2024 13:33
Copy link

@greenc05 greenc05 left a comment

Choose a reason for hiding this comment

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

Super stuff. Couple of minor comments.

Also the focus indicator looks a little odd when displayed on the first link but I guess there isn't much we can do about that?

src/app/components/LiteSiteCta/index.test.tsx Outdated Show resolved Hide resolved
src/app/components/LiteSiteCta/index.tsx Outdated Show resolved Hide resolved
src/app/components/Metadata/index.tsx Show resolved Hide resolved
src/app/components/LiteSiteCta/index.tsx Outdated Show resolved Hide resolved
src/app/components/LiteSiteCta/index.styles.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@amoore108 amoore108 left a comment

Choose a reason for hiding this comment

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

Nice work!

cypress/e2e/pages/articles/testsForLiteOnly.js Outdated Show resolved Hide resolved
src/app/components/LiteSiteCta/index.tsx Show resolved Hide resolved
src/app/legacy/containers/Header/index.jsx Show resolved Hide resolved
src/app/components/LiteSiteCta/index.tsx Show resolved Hide resolved
cypress/e2e/pages/articles/testsForLiteOnly.js Outdated Show resolved Hide resolved
src/app/components/LiteSiteCta/index.test.tsx Outdated Show resolved Hide resolved
src/app/components/LiteSiteCta/index.test.tsx Outdated Show resolved Hide resolved
src/app/components/LiteSiteCta/index.tsx Show resolved Hide resolved
src/app/components/LiteSiteCta/index.tsx Show resolved Hide resolved
@HarveyPeachey HarveyPeachey merged commit 46b9938 into latest Oct 30, 2024
11 checks passed
@HarveyPeachey HarveyPeachey deleted the WSTEAM1-1349-lite-site-cta branch October 30, 2024 11:24
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.

6 participants