@davoodmehraban89 / medusa / commits / 04ef75e5
Fork 0

Record market-aware catalog API implementation, tests and CI verification gate

davoodmehraban89 committed Oct 13, 2026 at 23:13 UTC 04ef75e58ea790c71ab62a885165e973c7d42a4f
1 file changed +7
PROJECT_STATUS.md
+7
@@ -128,3 +128,10 @@ Record date, commit/PR, objective, tests run with results, unresolved blockers,
128 - Arabic (`ar`, RTL) is now a **required third language** alongside Persian (`fa-IR`, RTL) and English (`en`, LTR).
129 - Updated `commerce/src/config/markets.ts` and `commerce/src/main.tsx` with Arabic locale, language switch and translated initial storefront UI. Language choice does not automatically change the market/currency selection.
130 - **Verification pending:** dependencies/build and browser RTL/LTR testing have not yet been run; complete translation coverage of product data, checkout and transactional messages is not yet implemented.
131 +
132 +## Catalog integration and isolated CI added (2026-10-13)
133 +- Added `commerce/src/api/catalog.ts`: fetches Medusa Store API regions, resolves the selected country to an enabled region, requests public product summaries with `region_id` and publishable key, validates API responses and exposes typed errors.
134 +- Connected `commerce/src/main.tsx` to the catalog fetcher with abortable requests, loading/error/empty states and responsive product cards. Product prices and checkout remain intentionally disabled until validated region pricing and cart flows exist.
135 +- Added Vitest test source for all five market region mappings, invalid responses, missing publishable keys and locale/currency utilities; added `commerce/.gitignore` and Vite type declarations.
136 +- Added `.github/workflows/commerce-checks.yml` for Node 22 isolated `commerce/` npm test/build on PR and feature branch pushes. **CI run status has not been checked; no passing tests/build are claimed.**
137 +- Engineering follow-up: check Actions run output, fix any TS/build/test issues, configure actual Medusa backend regions and publishable key, validate Store API/CORS, then implement product details and cart.