feat: three nuxt frontends, demo seed, rounding + money-exponent + rate-cast fixes, archived specs

This commit is contained in:
Chengdong Zhang
2026-09-17 13:34:38 +08:00
parent dc9fd31c5e
commit 653f13161a
85 changed files with 4327 additions and 106 deletions
+26
View File
@@ -0,0 +1,26 @@
# frontend-mall Specification
## Purpose
TBD - created by archiving change frontend-apps. Update Purpose after archive.
## Requirements
### Requirement: Localized storefront
The mall SHALL render UI strings and catalog content in en or zh from one switcher, defaulting to en.
#### Scenario: switch to Chinese
- **WHEN** a shopper switches locale to zh
- **THEN** navigation, buttons and product names render in Chinese without reload errors
### Requirement: Multi-currency display
The mall SHALL offer a currency switcher (enabled currencies from the API) converting SKU prices for display; checkout uses the selected currency.
#### Scenario: switch currency
- **WHEN** a shopper switches from USD to JPY on a product priced $10.00
- **THEN** the displayed price reflects the API conversion rate (integer minor units)
### Requirement: Shopping flow
A shopper SHALL be able to browse, view detail, add to cart, checkout with a shipping address, pay (mock), track shipments, confirm delivery, and request an invoice — all against the live API.
#### Scenario: end-to-end purchase
- **WHEN** a registered shopper completes checkout on a non-empty cart
- **THEN** orders appear under Orders and the cart is empty