chore: condense all docs and markdown files

This commit is contained in:
2026-03-14 15:11:40 +03:00
parent f3811b7520
commit 8b626a940e
24 changed files with 483 additions and 1346 deletions
+14 -12
View File
@@ -1,14 +1,16 @@
# Frontend Notes (MVP Readiness)
# Frontend Notes
## High-Level Takeaways
- `App.jsx` is monolithic and mixes search, payments, and locale controls; no routing exists yet.
- Domain logic (API payloads, validation, error handling) lives in UI components instead of hooks/services.
- Tests only cover hero copy and RTL behavior; search and payment flows are untested.
- Global styles are fragile (likely `::root` typo instead of `:root`).
- Auth token handling is ad hoc and should be replaced with a proper auth flow/context.
## Current state
- React/Vite app with i18n (`en`, `ar-sa`) and RTL switching.
- Still light on routing/domain separation; critical flow test coverage needs expansion.
## Near-Term Focus
- Introduce routing and split into pages (home/search, auth, booking, payment, profile).
- Extract API logic into hooks/services to make testing and reuse easier.
- Add Vitest coverage for search, booking, and payment flows.
- Fix global CSS root selector and stabilize base layout styles.
## Run
- `cd frontend && npm install`
- `npm run dev`
## Test
- `npm run test`
## Pointers
- Architecture: `docs/architecture.md`
- Risks: `docs/risks.md`