mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-21 00:18:41 +00:00
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]>
18 lines
704 B
TypeScript
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
|