feat(F-177): completed feature
This commit is contained in:
7
work/artifacts/F-177/architect.md
Normal file
7
work/artifacts/F-177/architect.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# F-177 — Architecture
|
||||
|
||||
- Add `orders_orders.state_changed_at`, initialized from `updated_at`, indexed for monitored states.
|
||||
- Every state transition updates both `updated_at` and `state_changed_at`; non-state edits only update `updated_at`.
|
||||
- Admin endpoint `GET /orders/notifications/stale?hours=24&limit=20`: RBAC admin, fixed monitored states, parameterized threshold, total + items.
|
||||
- Header client component polls every 5 minutes, refreshes when opened, closes on Escape/outside click, and links to `/orders/:id`.
|
||||
- Bell badge caps visual text at `99+`; dropdown differentiates pending and shipped.
|
||||
Reference in New Issue
Block a user