Skip to main content

Admin Dashboard — Event Schemas

Status: populated Owner: Platform Engineering (Frontend) Last updated: 2026-04-18

1. Not Applicable

The admin-dashboard is a REST-only stateless frontend. It does not publish or consume events on NATS JetStream or any message broker.

All platform events (operator status changes, routing updates, billing events) are published by backend services. The admin dashboard observes their effects through:

  • Synchronous REST API responses
  • 30-second polling of the analytics and health endpoints

2. Internal Browser Events

Custom browser events dispatched within the dashboard for cross-component coordination:

Event NameDispatched byConsumed byPayloadPurpose
adm:metrics-updatedDashboardPollerChart componentsMetricsSummary partialTrigger chart re-render
adm:operator-deletedOperator delete handlerOperator list{ operatorId: string }Optimistic list removal
adm:rule-reorderedDnD sort handlerRouting rule list{ ruleIds: string[] }Optimistic order update

These are standard CustomEvent dispatched on window; scoped to the current tab.

3. Server-Sent Events (Future)

Real-time SMPP connection state changes (operator goes offline/online) are a candidate for SSE in a post-MVP iteration. Currently delivered via the 30-second poll cycle.

4. No WebSocket

The admin dashboard does not use WebSocket connections in the current implementation.