Files
ui/pkgs/canvas/gui.config.ts
d2a5c91839 feat(canvas): @hanzo/canvas — Railway-grade PaaS project canvas (#239)
A new source-only @hanzo/gui package: a pannable/zoomable board of service
nodes (ProjectCanvas over @xyflow/react) with live status (ServiceStatusBadge),
metric sparklines (MetricSparkline), deploy timelines (DeployTimeline), an
environment switcher (EnvSwitcher), and a tabbed service detail drawer
(ServiceDetailDrawer) — plus the ServiceNode card and SourceRef/ReplicaPill
primitives. Presentational + data-prop-driven; brand/white-label aware via the
design tokens (semantic status palette overridable per brand). Pure folds
(status normalization, layered graph layout, relative time) are unit-tested
(17 tests). React-free logic re-exported at @hanzo/canvas/pure so data mappers
and their tests never pull in JSX/xyflow.


Co-authored-by: hanzo-dev <[email protected]>
2026-07-10 03:17:23 -07:00

18 lines
704 B
TypeScript

// Gui config for @hanzo/data typechecking.
//
// The canonical v5 default config — the same shape Hanzo's admin SPAs use, so
// the shorthand style props (`bg`, `p`, `items`, `justify`, `rounded`, …) the
// field/table components use typecheck against the real Gui token unions.
// Consumers supply their own config + theme at runtime; this exists so the
// library type-checks standalone. The config-type registration lives in
// `gui.d.ts` (augmenting `@hanzogui/web`), matching the console pattern.
import { createGui } from "@hanzo/gui"
import { defaultConfig } from "@hanzogui/config/v5"
export const config = createGui(defaultConfig)
export default config
export type Conf = typeof config