Skip to content

feat: build full demo mode for the reference UI#221

Open
SharifIbrahimDev wants to merge 1 commit into
bridgelet-org:mainfrom
SharifIbrahimDev:feat/demo-mode
Open

feat: build full demo mode for the reference UI#221
SharifIbrahimDev wants to merge 1 commit into
bridgelet-org:mainfrom
SharifIbrahimDev:feat/demo-mode

Conversation

@SharifIbrahimDev

Copy link
Copy Markdown

Closes #155

What does this PR do?

This PR introduces a robust ?demo=true query flag that enables the reference UI to securely execute the full send and claim end-to-end flow directly against MSW (Mock Service Worker) endpoints, bypassing the need for a real SDK backend.

Description

  • Universal MockProvider: Re-configured MockProvider so it can be dynamically activated in production via the demo=true URL parameter, in addition to its default development environment behavior.
  • Dynamic Send Flow: Refactored the ConfirmStep in the send flow to swap out its hardcoded setTimeout placeholder with a live fetch to the /api/accounts MSW handler, properly extracting the simulated claim token and claim URL.
  • Claim Flow Client Wrapper: Engineered a ClaimFlow client wrapper component for the server-rendered claim page. This delegates the "Claim now" action to actually hit the /claims/redeem mock endpoint, returning the mocked sweep response dynamically.
  • Link Visibility: Showcased the dynamically generated claim link directly within the success screen for an authentic demonstrative experience when running in demo mode.

@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@SharifIbrahimDev Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Build full demo mode for the reference UI

1 participant