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

WSTEAMA 1445 - Add client side Optimizely code #12177

Open
wants to merge 34 commits into
base: latest
Choose a base branch
from

Conversation

holchris
Copy link
Contributor

@holchris holchris commented Nov 14, 2024

Resolves JIRA 1445

Overall changes

Adds and updates any Optimizely code required to run our experiment of the JumpTo component on Article pages.

Code changes

  • Wraps the article page in the optimizely provider
  • Applys the useOptimizelyVariation hook to the jumpTo component
  • Updates any scrollable_promo references to jump_to

louisearchibald and others added 21 commits November 14, 2024 17:26
….com:bbc/simorgh into WSTEAMA-1445-add-client-side-optimizely-code
….com:bbc/simorgh into WSTEAMA-1445-add-client-side-optimizely-code
….com:bbc/simorgh into WSTEAMA-1445-add-client-side-optimizely-code
….com:bbc/simorgh into WSTEAMA-1445-add-client-side-optimizely-code
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.

Couple of comments, but looks good!

src/app/pages/ArticlePage/ArticlePage.tsx Outdated Show resolved Hide resolved
src/app/pages/ArticlePage/ArticlePage.tsx Outdated Show resolved Hide resolved
) : (
<JumpTo {...props} />
),
jumpToVariation === 'on' ? <JumpTo {...props} /> : <JumpTo {...props} />,
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good 👍

Thinking about it, maybe we should just go the whole way now and return null if its not on.

We can force ourselves into the experiment and toggle the variations to test that it shows/hides correctly. So probably best to do that now too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants