chore: condense all docs and markdown files
This commit is contained in:
+14
-12
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user