1.2 KiB
1.2 KiB
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