feat: extended interactive playground with guided send flow - #147
Merged
truthixify merged 1 commit intoAug 27, 2026
Merged
Conversation
Extends the scan-only playground into a four-step derive, send, scan, and withdraw flow with fixture Horizon events, embeds each step in the relevant docs pages, and adds Playwright smoke tests that enforce the zero-external-requests gate. Fixes wraith-protocol#134
|
@gbengaeben 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! 🚀 |
Contributor
|
Merged. This is a lot more than a stepper @gbengaeben. Extending the existing snippets workflow instead of adding a parallel one, wiring a fixture sync check so the fixtures cannot silently drift, and a real Playwright smoke test over the whole flow. Thanks also for asking the setup questions up front, it clearly paid off. |
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
Implements the guided send flow for the interactive playground (#134). The playground in
scripts/playground/grows from a scan-only demo into a four-step stepper flow — derive → send → scan → withdraw — that teaches the stealth payment mental model entirely client-side, with no wallet or network dependency.Changes
index.html, newplayground.js): four steps with per-step reset buttons, permalink sharing for a given step + inputs, and deep-link support via?step=.st:xlm:meta-address.stealth-announcercontract would emit — added to the scan batch.parseAnnouncementEventconsumes), applies the view-tag fast filter, then ECDH + Ed25519 point matching. Demo keys are one click away.generate-fixtures.mjs): extended generator producing the demo recipient keys and five Horizon-shaped events (two matching, three noise) — verified in sync bypnpm run check:playground-fixtures.api-reference/stealth-keys.mdx, send + withdraw onguides/stellar/stellar-quickstart.mdx, scan onapi-reference/fetch-announcements-stream.mdx.scripts/playground/tests/): new Playwright smoke suite served over HTTP. The main test walks the full guided flow and fails on any request to a non-local origin, enforcing the zero-external-requests acceptance gate programmatically. CI job added tosnippets.yml.Verification
pnpm run test:playground— 2/2 passing (full flow with zero external requests + per-step deep links)pnpm run check:snippetsandpnpm run check:nav-coverage— passingpnpm run check:playground-fixtures— fixtures in syncmint validate— no warnings on the changed pagesFixes #134