Skip to content

feat(slm): a real-user-monitoring (RUM) viewer for the data the backend already collects #18277

Closed

Description

@mrveiss

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:

path: '/monitoring/rum', component: 'RumDashboard', description: 'RUM monitoring'

The data side exists and is live:

  • 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

Activity

  1. added
    needs-ac-evidenceClosed by a merge keyword; awaits an AC evidence table comment (#19520)
    on Nov 1, 2026
  2. github-actions commented on Nov 1, 2026

    @github-actions
    Contributor

    Landed via the merge train (#20560, merge ce1bcb3f88) via #20529

  3. mrveiss commented on Nov 1, 2026

    @mrveiss
    OwnerAuthor

    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).

  4. removed
    needs-ac-evidenceClosed by a merge keyword; awaits an AC evidence table comment (#19520)
    on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions