Live Operations Dashboard
motiq/live-operations-dashboardFreeBlock
A composed, app-controlled ops dashboard: KPI Number Morph stats with a Data Refresh State control, a Filter Result Transition section, and a Streaming Data Rows live feed — wired to one demo state machine across loading, live, filtered, refreshing, partial update, stale, error, and recovery. Not a charting library; fictional demo data.
Live preview
live · rendered by the registry
Rendered by motiq on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://www.motiq.dev/r/live-operations-dashboard.jsonSource
1"use client";23import * as React from "react";4import { motion } from "motion/react";56import { cn } from "@/lib/utils";7import { useReducedMotion, statusVars, type StatusTone } from "@/lib/motiq";89import { KpiNumberMorph } from "@/components/motiq/kpi-number-morph";10import {11 DataRefreshState,12 type RefreshState,13} from "@/components/motiq/data-refresh-state";14import {15 FilterResultTransition,16 type ActiveFilter,17 type FilterResultState,18} from "@/components/motiq/filter-result-transition";19import {20 StreamingDataRows,21 type Column,22 type StreamingTableState,23} from "@/components/motiq/streaming-data-rows";2425/**26 * LiveOperationsDashboard — a composed, app-controlled operations dashboard that27 * wires four presentation-only data-motion components together behind a single28 * small demo state machine: a row of KpiNumberMorph stats with a DataRefreshState29 * control in the header, a FilterResultTransition service grid, and a30 * StreamingDataRows table as the main live feed.31 *32 * IMPORTANT — DEMO ONLY. Nothing here talks to a real monitoring backend. Every33 * service, region, metric, and timestamp is fictional and provider-neutral. The34 * block only feeds the components a scripted set of dataset snapshots in response35 * to its own controls — it is a copy-paste starting point you rewire to your real36 * telemetry.37 *38 * Determinism: no `Date.now()` / `Math.random()` / `new Date()` runs during39 * render, initializers, or module scope. Every snapshot is derived from a fixed40 * baseline with a pure wobble function; timestamps derive from a fixed baseline;41 * the demo only advances inside handlers/timers. Clean-room original.42 */4344/* -------------------------------------------------------------------------- */45/* Types */46/* -------------------------------------------------------------------------- */4748export type ServiceCategory = "api" | "web" | "worker" | "data";49export type ServiceStatus = "operational" | "degraded" | "down";5051export interface OpsService {52 /** Stable identity — the key to smooth insert / update / resort. */53 id: string;54 name: string;55 region: string;56 category: ServiceCategory;57 status: ServiceStatus;58 /** Requests per minute. */59 rpm: number;60 /** p95 latency in milliseconds. */61 p95: number;62 /** Error rate as a percentage (e.g. 0.42 = 0.42%). */63 errorRate: number;64 /** Active sessions on this service. */65 sessions: number;66}6768// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from motiq
All 100 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Agent Operations Heroagent-operations-hero | motiq | Blocks | Free | 1 dep | |
| AI Agent Workspaceai-agent-workspace | motiq | Blocks | Free | 1 dep | |
| AI Interface Packai-interface-pack | motiq | Blocks | Free | 1 dep | |
| Collaboration Packcollaboration-pack | motiq | Blocks | Free | 1 dep | |
| Collaborative Launch Herocollaborative-launch-hero | motiq | Blocks | Free | 1 dep | |
| Collaborative Review Workspacecollaborative-review-workspace | motiq | Blocks | Free | 1 dep | |
| Data Motion Packdata-motion-pack | motiq | Blocks | Free | 1 dep | |
| Deployment Command Centerdeployment-command-center | motiq | Blocks | Free | 1 dep |
