mirror of
https://github.com/dartdavros/chatballs.git
synced 2026-10-05 17:14:59 +03:00
Client and order detail were addressed by in-session state only, with
hardcoded CUS-4702 / ORD-10519 placeholder paths — a browser refresh lost
the entity. Now the URL carries the numeric id like employees/products:
- routeFromPath/pathFromRoute parse and emit /departments/sales/clients/:id
and /departments/sales/orders/:id; RouteState carries clientId/orderId.
- App seeds selected ids from the initial route and restores them on
popstate, so deep-link + back/forward + refresh work.
- routes.ts breadcrumb labels for these are now generic ("Клиент"/"Заказ")
instead of the fake name/code.
Memory: recorded the "don't propose FirePage content" preference.
Typecheck + vitest (17) green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>