Skip to content

demo(ab-testing): example experiments on homepage and find-wallet#18808

Draft
pettinarip wants to merge 2 commits into
feat/ab-testing-flags-sdkfrom
feat/ab-testing-flags-sdk-examples
Draft

demo(ab-testing): example experiments on homepage and find-wallet#18808
pettinarip wants to merge 2 commits into
feat/ab-testing-flags-sdkfrom
feat/ab-testing-flags-sdk-examples

Conversation

@pettinarip

Copy link
Copy Markdown
Member

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.

  • HomepageHero on / — exercises the bare-code rewrite target
  • FindWalletHero on /wallets/find-wallet/ — exercises the nested-path target (intended home of the upcoming find-wallets redesign test)

Try it on the deploy preview

  1. Open / or /wallets/find-wallet/ — you're 50/50 assigned by fingerprint (mock experiments; check the yellow banner)
  2. Use the 🧪 debug panel (bottom-right) to force each variant — URL never changes
  3. Check response headers: x-middleware-rewrite shows the internal coded path; repeat requests hit the edge cache
  4. /es/… and other locales: no rewrite, no banner, no tracker
  5. Direct visits to the internal /ab-code/… URL: 404

Note: 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 the ABTest wrapper in the page. See docs/ab-testing.md in #18807 for the full recipe.

Verification history: #18777 (spike, closed in favor of this pair).

🤖 Generated with Claude Code

@github-actions github-actions Bot added the tooling 🔧 Changes related to tooling of the project label Jul 15, 2026
@pettinarip pettinarip changed the base branch from feat/ab-testing-flags-sdk to dev July 15, 2026 14:22
@pettinarip pettinarip closed this Jul 15, 2026
@pettinarip pettinarip reopened this Jul 15, 2026
@github-actions github-actions Bot added abandoned This has been abandoned or will not be implemented config ⚙️ Changes to configuration files dependencies 📦 Changes related to project dependencies documentation 📖 Change or add documentation labels Jul 15, 2026
@netlify

netlify Bot commented Jul 15, 2026

Copy link
Copy Markdown

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 5117c78
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/6a579d0981f67f0008457475
😎 Deploy Preview https://deploy-preview-18808.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 54 (🔴 down 2 from production)
Accessibility: 95 (no change from production)
Best Practices: 100 (no change from production)
SEO: 98 (no change from production)
PWA: 59 (🔴 down 1 from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@pettinarip pettinarip force-pushed the feat/ab-testing-flags-sdk-examples branch from 3ff87b3 to 5117c78 Compare July 15, 2026 14:45
@pettinarip pettinarip changed the base branch from dev to feat/ab-testing-flags-sdk July 15, 2026 14:51
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)
@pettinarip pettinarip force-pushed the feat/ab-testing-flags-sdk-examples branch from 5117c78 to cefaae5 Compare July 15, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

abandoned This has been abandoned or will not be implemented config ⚙️ Changes to configuration files dependencies 📦 Changes related to project dependencies documentation 📖 Change or add documentation tooling 🔧 Changes related to tooling of the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant