@fusedashlabs/ui9000-workspace
Version:
UI9000 workspace MCP. One tool, show_workspace, draws a chart from your table. Set TYPESAFE_API_KEY to let Jev choose the chart.
24 lines (23 loc) • 1.23 kB
TypeScript
/**
* Incidents review object for `<ui9000-incidents-review-card>`.
*
* One card is aggregated incident counts by state for one scope: a title, an
* optional filter, the counts, an optional total, and whether the lifecycle
* track is shown. The counts are headlines. Nothing is summed, and the total
* is sent only when the table has one. A column must name incidents, so a
* plain set of headline numbers stays a KPI.
*
* Two shapes are read: one row per state (`state,incidents`, with an optional
* `Total` row), or one row with a column per state (`active_incidents,
* in_progress_incidents,total_incidents`). *
* The track is on for lifecycle states and off for severity or category. One
* row per state reads that from the state column's name. One row with a
* column per state has no such column, so the track is on only when every
* state is a lifecycle word.
*/
export declare function incidentsReviewCardPayload(_fields: Record<string, string>, rows: Record<string, unknown>[]): unknown | null;
/**
* True when the card should replace a KPI: aggregated incident counts by
* state for one scope, at least two numbers in all.
*/
export declare function incidentsReviewFits(payload: unknown): boolean;