8aecc02cbe
Add Arabic and English translations for the donation success screen, including receipt and reference numbers. Implement client-side generation of these numbers with copy-to-clipboard functionality. Update memory data with testing notes regarding donation cases. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 1fa9329f-0cec-4a2f-80e8-e26dbae3142e Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: a89849bc-f826-44f3-8055-c4618b5fd918 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/4d696b13-86f2-4c9d-be0d-95b293430047/1fa9329f-0cec-4a2f-80e8-e26dbae3142e/4KPAtBh Replit-Helium-Checkpoint-Created: true
24 lines
1.1 KiB
Markdown
24 lines
1.1 KiB
Markdown
---
|
|
name: api-server data
|
|
description: Nature of the EHSAN POC api-server data store and how to reset it.
|
|
---
|
|
|
|
# In-memory mockDb
|
|
|
|
`artifacts/api-server` serves an in-memory `mockDb` (no real database). Any POST that
|
|
mutates a request (donate, verify, publish, deliver, thank-you, etc.) persists only for
|
|
the life of the process. Restart the `artifacts/api-server: API Server` workflow to
|
|
re-seed clean demo data.
|
|
|
|
**How to apply:** after running curl-based API tests that mutate state, restart the
|
|
api-server workflow before screenshots/handoff so the user sees a clean seeded demo.
|
|
|
|
## Donate e2e: use OPEN cases only
|
|
Seed cases req-001..req-006 are already in later pipeline stages (fully funded,
|
|
remaining 0). The donate page clamps any donation to the case's remaining target, so
|
|
on those cases the amount silently becomes 0 and the donate POST returns 400 — you
|
|
never reach the success screen. For donation/success-screen e2e, use a `published`
|
|
case with remaining > 0 (e.g. req-007, req-012..req-017).
|
|
**Why:** cost 3 failed test runs chasing a non-bug. The clamp + funded-seed
|
|
interaction is not obvious from the UI alone.
|