Some checks failed
CI / Lint (pull_request) Has been cancelled
CI / Schema map up to date (pull_request) Has been cancelled
CI / Forbidden patterns (9 checks) (pull_request) Has been cancelled
CI / Migrations apply (node-pg-migrate) (pull_request) Has been cancelled
Visual diff / Should run? (pull_request) Has been cancelled
CI / Unit tests (vitest) (pull_request) Has been cancelled
Convoy metrics gate / Require role-event telemetry on convoy PRs (pull_request) Has been cancelled
PR Health rollup / Aggregate gate status (pull_request) Has been cancelled
Preview smoke / Should run? (pull_request) Has been cancelled
Preview smoke / Playwright smoke (pull_request) Has been cancelled
Visual diff / Screenshot diff (pull_request) Has been cancelled
Add pricing schema, free API integrations (MTG bulk, TCGdex, Foolio), valuation and sort-by-price, card detail pricing UI, and nearby store discovery via home zip and OSM geo clients. Co-authored-by: Cursor <cursoragent@cursor.com>
1.1 KiB
1.1 KiB
| convoy | brief_number | depends_on | recommended_model | model_tier | files | ||||
|---|---|---|---|---|---|---|---|---|---|
| pricing-online-local | 12 |
|
composer-2.5 | standard |
|
Brief 12: Settings home zip
Goal (1 sentence)
Let users save a home zip code in Settings for local store discovery.
Files in scope (do not edit anything else)
pages/settings.jspages/api/user/settings.jstest/api/user-settings-home-zip.test.js
Conventions to follow
- Auth:
getUserFromRequest→ 401 if null. - Validate zip: 5-digit US; store 5-digit string; allow
nullto clear. - Settings UI: field under Preferences — “Home ZIP code (for nearby game stores)”.
- Owner-scoped read/write only (
user_id = session.userId).
Acceptance criteria
- GET settings includes
home_zip - PUT persists valid zip; 400 on invalid
- Settings page loads and saves zip
- Tests pass
- No scope expansion
Rationale (≤3 sentences)
Phase 2 requires a default location without GPS. Reuses existing settings flow. Independent of geo API briefs once migration lands.