Skip to content

fix: de-demo success screens and transaction evidence (#79)#98

Open
Zeemnew wants to merge 1 commit into
ericmt-98:mainfrom
Zeemnew:fix/79-de-demo-success-screens
Open

fix: de-demo success screens and transaction evidence (#79)#98
Zeemnew wants to merge 1 commit into
ericmt-98:mainfrom
Zeemnew:fix/79-de-demo-success-screens

Conversation

@Zeemnew
Copy link
Copy Markdown

@Zeemnew Zeemnew commented May 28, 2026

Summary

  • Block success screen when no real activeTrade exists — id: 'demo' fallback removed
  • Fetch complete trade data from GET /trades/:id before rendering final screen (real trade ID, backend-confirmed state, lock/release hashes, timestamps)
  • Source agent name from seller_username API response instead of hardcoded "Farmacia Guadalupe" / "Tienda Don Pepe"
  • Label mock hashes as "Testnet · Simulado" when MOCK_STELLAR=true — mock hashes don't link to Stellar explorer
  • completeTrade failure now blocks success navigation and shows error (QRReveal + DepositQR)
  • New receipt section with trade ID, state, TX hashes, timestamps, and support link

Test plan

  • Simulate a failed completeTrade and verify the success screen does not appear
  • Verify the receipt renders correctly with real hashes from a testnet trade
  • Confirm mock hashes display "(simulado)" label and no explorer link
  • Confirm agent name shows real seller_username, not hardcoded names
  • Navigate directly to /success without a trade and verify redirect to home

Closes #79

Block success screen when no real activeTrade exists, fetch trade
detail from GET /trades/:id for receipt data, source agent name from
seller_username instead of hardcoded values, label mock hashes as
"Testnet · Simulado", and prevent success navigation on completeTrade
failure.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 28, 2026

@Zeemnew 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

@Zeemnew Zeemnew force-pushed the fix/79-de-demo-success-screens branch from 59afc09 to 6aa2f05 Compare May 29, 2026 07:58
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.

De-demo success screens and transaction evidence

2 participants