Data Motion Pack
motiq/data-motion-packFreeBlock
The complete Data Motion Pack — installs the Live Operations Dashboard block and its four components (KPI Number Morph, Streaming Data Rows, Filter Result Transition, Data Refresh State) as editable source, deduping shared utilities.
Install it
npx shadcn@latest add https://www.motiq.dev/r/data-motion-pack.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 | |
| Deployment Command Centerdeployment-command-center | motiq | Blocks | Free | 1 dep | |
| Deployment Control Herodeployment-control-hero | motiq | Blocks | Free | 1 dep |
