chore(openspec): archive add-points-mall

Sync the points-mall capability plus the frontend-mall and frontend-admin
requirements into the main specs, and write the capability Purpose the archive
leaves as a placeholder.
This commit is contained in:
2026-09-18 12:43:18 +00:00
parent f70d1e506a
commit 82c1e8e4bb
10 changed files with 60 additions and 6 deletions
@@ -0,0 +1,21 @@
## 1. Prerequisite and persistence
- [x] 1.1 Confirm `customer-accounts` is archived and use its guarded internal points-debit service.
- [x] 1.2 Add additive migrations for platform points products, redemption orders, redemption items, status constraints, address snapshots, and indexes.
- [x] 1.3 Implement the Rust points module repositories and services for published catalog reads, admin product management, atomic redemption, history, and validated fulfillment transitions.
## 2. Contract and backend proof
- [x] 2.1 Register customer and platform routes with appropriate roles and add shared types, client methods, locales, and fixed-data adapter parity.
- [x] 2.2 Add integration tests for unpublished-product rejection, insufficient points rollback, concurrent final stock, ownership filtering, and fulfillment transition validation.
## 3. Application surfaces
- [x] 3.1 Add platform-admin points-product and redemption-order management screens and admin nav entries using the shared client.
- [x] 3.2 Replace mall points fixtures with live catalog, address-aware redemption, refreshed balance, and customer redemption history.
- [x] 3.3 Remove `INTEGRAL_PRODUCTS` and `USER_STATS` page imports without deleting fixed-data adapter support.
## 4. Verification and specification
- [x] 4.1 Seed deterministic points products and credit demo customer points through the archived customer-accounts credit path (append-only entry, never an absolute balance write). Browser-smoke admin publication and customer redemption.
- [x] 4.2 Run cargo test for vmall-api, builds for mall and admin, and strict validation for this OpenSpec change.