Repository navigation
feat(slm): validation dashboard and real-user-monitoring screens (#18278, #18277) - #20529
Conversation
…dashboard API (#18278) Monitoring > Validation, admin only: overview and metrics, per-phase status, alerts, recommendations and trends from one /report read, plus a /generate action. Reading, not available (503), failed and read-but-empty are said apart; an unscored phase reads Not scored, never 0%. The server-rendered /dashboard page is untouched.
…nd already collects (#18278) Monitoring > Real user monitoring, admin only: counts from /rum/status, events, sessions and event types from /rum/export, a collection switch (POST /rum/config with the whole current config to enable, POST /rum/disable to disable) and Clear behind a confirmation (POST /rum/clear). Reading, failed, collecting-but-empty, off-and-empty and held-but-unreadable are said apart. Part of #18277.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 13 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
✅ SSOT Configuration Compliance: Passing🎉 No new hardcoded values of either class — Known backlog in |
|
Code review on PR #20529 (head ff713a4): approve. Read only; not rendered, no
|
Thinking Path
The backend already serves validation and real-user-monitoring data, but no screen shows it. Both are server-wide, so they belong in the SLM monitoring section, built on the kit with honest states for a missing or failing backend.
What Changed
/monitoring/validation: status, metrics, trends, alerts, recommendations and a generate action. It reads/statusand/reportonly, since/reportalready holds the rest. Trends are placeholder data in the backend, so the screen says so./monitoring/rum: status and export data, with enable, disable and a confirmed clear for admins.MonitoringView.vue, using the existing SLM client and contract types. en.json keys, with the other SLM locales generated.Verification
ValidationDashboard.test.ts(10),RumMonitor.test.ts(13) andMonitoringView.test.tspass withreka-uistubbed locally. Removing the clear confirmation fails 3 RUM tests. eslint and stylelint exit 0.vue-tsc./rum/statusare open to any signed-in user at the backend; the screens are admin-only. Tracked on security(api): 44 config-registered routers declare no auth gate, triaged by exposure (found by widening the router-auth guard, #16368) #16375.Model Used
Claude Sonnet for the implementation, Claude Opus for coordination.
Closes #18278
Closes #18277