You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(slm): a real-user-monitoring (RUM) viewer for the data the backend already collects #18277
Part of the Refined UI redesign, step 5f (#18248, SLM platform screens).
Context
autobot-frontend/src/config/routes.ts is an unused route map with 0 importers, and #17856 row 7 retires it in step 2. One of its entries names a screen that was never built:
autobot-backend/api/rum.py is mounted at /rum (initialization/router_registry/monitoring_routers.py:55) and exposes POST /config, /event, /disable, /clear, /metrics, plus GET /export and /status.
autobot-frontend/src/utils/RumAgent.ts and src/plugins/rum.ts collect events in the browser.
There is no screen to view what is collected. No RumDashboard component exists in either frontend. The owner ruled that server-wide screens are built in the SLM frontend, so the viewer belongs in the SLM console's monitoring area.
Acceptance Criteria
An SLM console screen shows RUM data from /rum/status and /rum/export (or /rum/metrics), and lets an admin enable or disable collection (/rum/config, /rum/disable) and clear it (/rum/clear, behind a confirmation)
The screen follows the Refined UI design (tokens, shared @autobot/ui primitives) and is in the SLM nav
Every user-visible string is i18n'd in all 11 SLM locales
Landed via PR #20529 in the merge train (PR #20560). Checked against origin/main.
AC
Evidence
Screen shows RUM data from /rum/status and /rum/export; admin can enable/disable and clear behind a confirmation
composables/useRumApi.ts calls /rum/status, /rum/export, /rum/config, /rum/disable, /rum/clear; views/monitoring/RumMonitor.vue holds the clear button (slm-rum-clear) and a BaseModal confirmation (confirmOpen).
Refined UI design and in the SLM nav
RumMonitor.vue:81 imports BaseAlert, BaseBadge, BaseButton, BaseCard, BaseModal, BaseSpinner, BaseSwitch, EmptyState from @autobot/ui; tab rum in MonitoringView.vue:48; route monitoring-rum in router/monitoringRoutes.ts:72-77.
i18n in all 11 SLM locales
autobot-slm-frontend/src/locales/{ar,de,en,es,fa,fr,he,lv,pl,pt,ur}.json each carry the rum keys.
Admin-only; gate confirmed or tracked under #16375
Route and tab admin: true. Backend: /rum/config, /rum/disable use check_admin_permission (autobot-backend/api/rum.py:212,288). /rum/status is open to any signed-in user; tracked on #16375.
Tests cover loading, empty, destructive clear
views/monitoring/RumMonitor.test.ts: 13 tests, including slm-rum-loading, collecting-but-empty and off-and-empty states, and the clear path sent only after confirmation.
Not covered by any check here: a browser render and a call against a real backend (the tests mock the client).
Activity
chore(routes): retire the unused config/routes.ts (#18240)
github-actions commentedon Nov 1, 2026
Landed via the merge train (#20560, merge
ce1bcb3f88) via #20529mrveiss commentedon Nov 1, 2026
Landed via PR #20529 in the merge train (PR #20560). Checked against
origin/main./rum/statusand/rum/export; admin can enable/disable and clear behind a confirmationcomposables/useRumApi.tscalls/rum/status,/rum/export,/rum/config,/rum/disable,/rum/clear;views/monitoring/RumMonitor.vueholds the clear button (slm-rum-clear) and aBaseModalconfirmation (confirmOpen).RumMonitor.vue:81importsBaseAlert, BaseBadge, BaseButton, BaseCard, BaseModal, BaseSpinner, BaseSwitch, EmptyStatefrom@autobot/ui; tabruminMonitoringView.vue:48; routemonitoring-ruminrouter/monitoringRoutes.ts:72-77.autobot-slm-frontend/src/locales/{ar,de,en,es,fa,fr,he,lv,pl,pt,ur}.jsoneach carry the rum keys.admin: true. Backend:/rum/config,/rum/disableusecheck_admin_permission(autobot-backend/api/rum.py:212,288)./rum/statusis open to any signed-in user; tracked on #16375.views/monitoring/RumMonitor.test.ts: 13 tests, includingslm-rum-loading, collecting-but-empty and off-and-empty states, and the clear path sent only after confirmation.Not covered by any check here: a browser render and a call against a real backend (the tests mock the client).