demo(ab-testing): example experiments on homepage and find-wallet#18808
Draft
pettinarip wants to merge 2 commits into
Draft
demo(ab-testing): example experiments on homepage and find-wallet#18808pettinarip wants to merge 2 commits into
pettinarip wants to merge 2 commits into
Conversation
4 tasks
✅ Deploy Preview for ethereumorg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
3 tasks
3ff87b3 to
5117c78
Compare
Two working example experiments on top of the Flags SDK infra, for verification on the deploy preview. Both render a visibly distinct placeholder banner as variant A - not intended to merge as-is; real tests replace the banner with an actual variant component. - HomepageHero on / (bare-code rewrite target) - FindWalletHero on /wallets/find-wallet/ (nested-path rewrite target) - Mock experiment entries for local dev (USE_MOCK_EXPERIMENTS=true)
5117c78 to
cefaae5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Stacked on #18807 (Flags SDK infra) — this PR exists so reviewers can see the system running on a deploy preview. It adds two demo experiments with visibly distinct placeholder banners as variant A. Not intended to merge as-is; a real test replaces the banner with an actual variant component.
HomepageHeroon/— exercises the bare-code rewrite targetFindWalletHeroon/wallets/find-wallet/— exercises the nested-path target (intended home of the upcoming find-wallets redesign test)Try it on the deploy preview
/or/wallets/find-wallet/— you're 50/50 assigned by fingerprint (mock experiments; check the yellow banner)x-middleware-rewriteshows the internal coded path; repeat requests hit the edge cache/es/…and other locales: no rewrite, no banner, no tracker/ab-code/…URL: 404Note: the demo diff shows exactly what adding a real experiment touches —
flags.ts(flag + route entry), mock entries, one thin coded page per route, and theABTestwrapper in the page. Seedocs/ab-testing.mdin #18807 for the full recipe.Verification history: #18777 (spike, closed in favor of this pair).
🤖 Generated with Claude Code