Promote scan redesign from playground + auto-save locations #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Lineage
plan-mcd-tracker→ Phase 7 (SvelteKit frontend)Repo
forgejo_admin/mcd-tracker-appUser Story
As a user logging a BOGO code
I want the app to auto-save a new McDonald's location when I select it
So that I don't have to manually create locations before I can track codes
Context
Depends on playground scan redesign being approved on phone (Gate 1). This ticket promotes the approved HTML design to SvelteKit with real data bindings.
Key functionality beyond HTML→Svelte copy:
GET /locations/nearbyPOST /locationscreates it automatically before attaching the codePOST /receipts(multipart FormData)POST /locations/{id}/codesGET /statsdataFile Targets
Files to modify:
src/routes/scan/+page.svelte— promote from playground HTMLsrc/routes/scan/success/+page.svelte— dynamic stats from APIsrc/routes/+layout.svelte— nav label changeFiles NOT to touch:
src/app.css— no style changesAcceptance Criteria
Test Expectations
npm run testConstraints
sop-capacitor-mobile-lifecycleStage 2 (playground → SvelteKit)Checklist
Related
plan-mcd-tracker→ Phase 7sop-capacitor-mobile-lifecycle— Stage 2 promotion