Live Data Command Hero
motiq/live-data-command-heroFreeBlock
An editable hero block for operational-data products centered on continuity and changing state. Composes KPI Number Morph (three metrics), Data Refresh State, a small Streaming Data Rows subset, and Filter Result Transition across initial/live/filtering/refreshing/partial-update/stale/error/recovery. App-controlled, clearly-fictional demo data. SSR-safe, reduced-motion-safe.
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-data-command-hero.jsonSource
1"use client";23import * as React from "react";45import { cn } from "@/lib/utils";6import {7 useReducedMotion,8 useControllableState,9 statusVars,10 type StatusTone,11} from "@/lib/motiq";1213import { KpiNumberMorph } from "@/components/motiq/kpi-number-morph";14import {15 DataRefreshState,16 type RefreshState,17} from "@/components/motiq/data-refresh-state";18import {19 StreamingDataRows,20 type Column,21 type StreamingTableState,22} from "@/components/motiq/streaming-data-rows";23import {24 FilterResultTransition,25 type ActiveFilter,26 type FilterResultState,27} from "@/components/motiq/filter-result-transition";2829/**30 * LiveDataCommandHero — an editable hero block for operational-data products.31 * Instead of a static KPI screenshot, a wide copy band sits above a full-width32 * *live surface*: three morphing KPIs, the current refresh state, a small live33 * subset of signals, and one active filter — all driven by a single phase the34 * app owns. On wide screens the watched signals and the live feed tile into two35 * columns so the hero holds a calm height. The point is continuity and changing36 * state over time, at reduced complexity: it is a hero framing, not a full37 * analytics dashboard.38 *39 * IMPORTANT — DEMO ONLY. Every signal, region, metric, and timestamp below is40 * fictional and provider-neutral; nothing here talks to a real backend. Rewire41 * `dataset` and `phase` to your own telemetry.42 *43 * Determinism: no `Date.now()` / `Math.random()` / `new Date()` at module scope,44 * during render, or in initializers. Every snapshot derives from a fixed baseline45 * via a pure wobble; timestamps come from fixed epoch constants; the only motion46 * over time is a client-only "live" tick that pauses offscreen and under reduced47 * motion. Server and first client render are identical. Clean-room original.48 */4950/* -------------------------------------------------------------------------- */51/* Public types */52/* -------------------------------------------------------------------------- */5354/** The lifecycle the host application drives; the block maps it onto the surface. */55export type DataHeroPhase =56 | "initial"57 | "live"58 | "filtering"59 | "refreshing"60 | "partial-update"61 | "stale"62 | "error"63 | "recovery";6465export type SignalStatus = "healthy" | "degraded" | "critical";6667export interface HeroSignal {68 /** Stable identity — the key to smooth insert / update / resort. */69 id: string;70// … 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 |
