Skip to content

feat(cli): incident-console page template — frame-first tracker archetype - #3316

Merged
cixzhang merged 2 commits into
mainfrom
incident-console-template
Jul 11, 2026
Merged

cixzhang merged 2 commits into
mainfrom
incident-console-template

Conversation

@thedjpetersen

Copy link
Copy Markdown
Contributor

Why

Companion to #3315. The template catalog has strong shells and dashboards, but no template for the archetype where generated code most often degrades into "card soup": a dense tool with a master list and an inspector panel. This adds a novel, complete example of the frame-first recipe — an on-call incident response console — so astryx build/template --skeleton can teach the pattern by reference.

What

  • packages/cli/templates/pages/incident-console/ — new page template:
    • Frame: header | grouped dense incident rows (fill) | resizable inspector 380 (320–480), with the responsive contract documented at the frame root (inspector hidden ≤1024px; rows never compress)
    • Tracker-archetype container policy: edge-to-edge List/ListItem rows grouped by status — zero Cards; severity via StatusDot (pulsing for active SEV1), state via Token; no decorative Badge
    • PowerSearch (title/service/severity/commander) composed with a status SegmentedControl; selection drives an inspector with MetadataList + timeline; EmptyState for zero-match and no-selection
    • Deterministic fixtures: fixed ISO timestamps, no clocks, no randomness
  • packages/core/src/docs-types.ts — adds 'Tools - Incident Console' to TemplateCategory
  • Sandbox: registered automatically via scripts/sync-templates.js (generated registry not committed), appears at /templates/incident-console/

Testing

  • pnpm typecheck:template-docs clean; sandbox tsc --noEmit has zero incident-console errors (remaining errors are pre-existing unbuilt-theme noise)
  • vitest run template suites: 52/52 pass
  • astryx template incident-console --skeleton emits a correct spatially-annotated skeleton
  • astryx build "on-call incident management tool" resolves to this template as a direct match

…type

A novel app template demonstrating the frame-first layout recipe:

- Frame: header | grouped dense incident rows (fill) | resizable
  inspector 380 (320-480), with the responsive contract documented at
  the frame root (inspector hidden <= 1024px; rows never compress).
- Tracker archetype container policy: dense data as edge-to-edge
  List/ListItem rows grouped by status — zero Cards; severity via
  StatusDot (pulsing for active SEV1), state via Token; no decorative
  Badge.
- PowerSearch (title/service/severity/commander) composed with a
  status SegmentedControl; master-detail selection drives an inspector
  with MetadataList and a timeline; EmptyState for zero-match and
  no-selection.
- Deterministic fixtures: fixed ISO timestamps, no clocks, no
  randomness.
- Adds 'Tools - Incident Console' to TemplateCategory in
  core/docs-types.

Registered in the sandbox via scripts/sync-templates.js (generated
registry, not committed). `astryx build "on-call incident management
tool"` resolves to this template as a direct match.
@vercel

vercel Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview, Comment Jul 11, 2026 4:55am

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 1, 2026
@github-actions

github-actions Bot commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.6KB 0B

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

displayName: 'Incident Console',
description:
'On-call incident response console: grouped dense incident rows with severity dots, PowerSearch filtering, status segmented control, and a resizable inspector panel with metadata and timeline. Frame-first tracker archetype — rows, not cards.',
isReady: true,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's swap this to false

@cixzhang cixzhang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Swapped isReady to false as commented. Approving to land as not-ready.

@cixzhang
cixzhang enabled auto-merge (squash) July 11, 2026 04:52
@cixzhang
cixzhang merged commit 3a1b099 into main Jul 11, 2026
16 checks passed
github-actions Bot added a commit that referenced this pull request Jul 11, 2026

This branch was successfully deployed

1 active deployment
Preview — 5676d492 Deployed Jul 11, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. needs:code-review High-risk change (new package/component/API) — needs human code review before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants