e2e changes
This commit is contained in:
31
README.md
31
README.md
@@ -35,17 +35,36 @@ deployed build set `VITE_API_BASE` (see `.env.example`).
|
||||
|
||||
## What's built
|
||||
|
||||
Only the **Nearle Admin** workspace so far:
|
||||
All three workspaces. Which one opens is decided by the account, not chosen —
|
||||
see `src/auth/roles.ts`.
|
||||
|
||||
**Nearle Admin** (`issuperadmin`) — the platform operator:
|
||||
|
||||
- `/nearle/stores` — every tenant, branch counts, per-tenant performance
|
||||
- `/nearle/stores/:tenantId` — one tenant's branches, orders and revenue
|
||||
- `/nearle/onboard/tenant` — provision a merchant group
|
||||
- `/nearle/onboard/branch` — commission an outlet with its delivery thresholds
|
||||
- `/nearle/onboard/tenant` — provision a merchant group and its first outlet
|
||||
- `/nearle/catalogue` — the global catalogue, plus both product-import paths
|
||||
- `/nearle/partners` — rider partners, and the riders under each
|
||||
- `/nearle/dispatch` — every partner's live work and shifts
|
||||
- `/nearle/uploads` — spreadsheets sent to the catalogue service
|
||||
|
||||
`/admin/*` (Store Admin) and `/store/*` (Store Manager) render a named
|
||||
placeholder rather than a 404, so those roles land somewhere that explains
|
||||
itself.
|
||||
**Store Admin** (roleid 1 and 3) — one merchant, every branch:
|
||||
|
||||
- `/admin/console` — online and counter sales side by side, per branch
|
||||
- `/admin/sales` · `/admin/dispatch` · `/admin/inventory` · `/admin/reports`
|
||||
- `/admin/branches/new` — commission an outlet with its delivery thresholds
|
||||
- `/admin/users` — back-office people and till accounts
|
||||
- `/admin/terminals` · `/admin/uploads` · `/admin/profile` · `/admin/onboarding`
|
||||
|
||||
**Store user** (everything else) — one branch, scoped to it:
|
||||
|
||||
- `/store/console` · `/store/products` · `/store/sales` · `/store/dispatch`
|
||||
- `/store/reports` · `/store/customers` · `/store/terminals` · `/store/staff`
|
||||
- `/store/uploads` · `/store/account` · `/store/setup`
|
||||
|
||||
Two routes are redirects rather than pages, and deliberately:
|
||||
`/nearle/onboard/branch` → `/nearle/stores` (a branch is commissioned from the
|
||||
tenant that will own it), and `/nearle/fleet` → `/nearle/dispatch`.
|
||||
|
||||
## Things about the backend that shape this code
|
||||
|
||||
|
||||
Reference in New Issue
Block a user