@mtdt/observeops-ds-spec 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +102 -0
- package/README.md +73 -0
- package/components/index.json +1270 -0
- package/components/recipes/README.md +41 -0
- package/components/recipes/recipes.json +922 -0
- package/components/registry/README.md +44 -0
- package/components/registry/_schema.json +47 -0
- package/components/registry/button.json +368 -0
- package/components/registry/checkbox.json +177 -0
- package/components/registry/data-viz-tooltips.json +409 -0
- package/components/registry/date-time-pickers.json +296 -0
- package/components/registry/drawer.json +222 -0
- package/components/registry/dropdown-picker.json +388 -0
- package/components/registry/filters.json +155 -0
- package/components/registry/form-item.json +281 -0
- package/components/registry/input.json +277 -0
- package/components/registry/link.json +186 -0
- package/components/registry/loose-tags.json +196 -0
- package/components/registry/menu.json +145 -0
- package/components/registry/modal.json +265 -0
- package/components/registry/navigation.json +425 -0
- package/components/registry/popover.json +216 -0
- package/components/registry/radio.json +238 -0
- package/components/registry/scheduler.json +188 -0
- package/components/registry/select.json +247 -0
- package/components/registry/severity.json +179 -0
- package/components/registry/switch.json +177 -0
- package/components/registry/table.json +275 -0
- package/components/registry/tabs.json +264 -0
- package/components/registry/tag.json +345 -0
- package/components/registry/tags-list.json +115 -0
- package/components/registry/toolbars.json +240 -0
- package/components/registry/tooltip.json +175 -0
- package/components/specs/README.md +72 -0
- package/components/specs/button.md +230 -0
- package/components/specs/checkbox.md +162 -0
- package/components/specs/data-viz-tooltips.md +93 -0
- package/components/specs/date-time-pickers.md +161 -0
- package/components/specs/drawer.md +162 -0
- package/components/specs/dropdown-picker.md +161 -0
- package/components/specs/filters.md +118 -0
- package/components/specs/form-item.md +130 -0
- package/components/specs/input.md +130 -0
- package/components/specs/link.md +131 -0
- package/components/specs/loose-tags.md +139 -0
- package/components/specs/menu.md +88 -0
- package/components/specs/modal.md +176 -0
- package/components/specs/navigation.md +181 -0
- package/components/specs/popover.md +118 -0
- package/components/specs/radio.md +144 -0
- package/components/specs/scheduler.md +133 -0
- package/components/specs/select.md +118 -0
- package/components/specs/switch.md +124 -0
- package/components/specs/table.md +115 -0
- package/components/specs/tabs.md +136 -0
- package/components/specs/tag.md +196 -0
- package/components/specs/tags-list.md +105 -0
- package/components/specs/toolbars.md +108 -0
- package/components/specs/tooltip.md +112 -0
- package/foundation/README.md +39 -0
- package/foundation/layout-shells.md +67 -0
- package/foundation/page-templates.md +69 -0
- package/foundation/panel-behaviours.md +61 -0
- package/foundation/screen-regions.md +62 -0
- package/index.js +75 -0
- package/layout/grid.json +34 -0
- package/layout/layouts.json +310 -0
- package/llms.txt +60 -0
- package/package.json +42 -0
- package/spec.manifest.json +407 -0
- package/tokens/README.md +125 -0
- package/tokens/component.json +34 -0
- package/tokens/kit-accents.json +14 -0
- package/tokens/primitive.json +130 -0
- package/tokens/purpose-map.json +67 -0
- package/tokens/semantic.dark.json +90 -0
- package/tokens/semantic.light.json +90 -0
- package/tokens/structural.json +35 -0
- package/tokens/variables.json +2018 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Composition recipes
|
|
2
|
+
|
|
3
|
+
Page & flow blueprints — the layer **above** per-component docs. Where the registries say *which*
|
|
4
|
+
component to use, these say **how to assemble a whole product-faithful screen**. Machine source:
|
|
5
|
+
[`recipes.json`](./recipes.json).
|
|
6
|
+
|
|
7
|
+
## Why
|
|
8
|
+
|
|
9
|
+
The AI-readiness assessment found an AI could pick the right components but had **no blueprint** to lay
|
|
10
|
+
out a faithful page. These recipes close that: each one is a real ObserveOps screen archetype with its
|
|
11
|
+
regions, the component `id` + `variant` for each region, the layout shell, the spacing/sizing tokens,
|
|
12
|
+
and the known traps.
|
|
13
|
+
|
|
14
|
+
## How an AI uses it
|
|
15
|
+
|
|
16
|
+
1. Match the user's screen to a recipe by `whenToUse` / `examples`.
|
|
17
|
+
2. Build the `regions` outer-to-inner; each names component `id`s + `variant`s → open those in
|
|
18
|
+
`components/registry/` for props, resolve their `tokensUsed` via `tokens/variables.json`.
|
|
19
|
+
3. Apply `layout.shell` + `layout.tokens` (+ the global `layout.appShell` / `layout.tokens` for the app
|
|
20
|
+
chrome) for spacing/sizing.
|
|
21
|
+
4. Honour each recipe's `gotchas` and `a11y`.
|
|
22
|
+
5. The **content** (which columns / fields / options) is domain data the DS doesn't own — fill it from
|
|
23
|
+
the user's spec.
|
|
24
|
+
|
|
25
|
+
## The recipes
|
|
26
|
+
|
|
27
|
+
| Recipe | When |
|
|
28
|
+
| --- | --- |
|
|
29
|
+
| **list-view** | A paginated CRUD list with filter, row + bulk actions, create/edit drawer (Monitors, Alerts, Users). |
|
|
30
|
+
| **form-view** | A create/edit form for one record (Settings policy/profile forms, Add Monitor). |
|
|
31
|
+
| **detail-view** | One record's details across tabbed sections (monitor/alert/NCM detail). |
|
|
32
|
+
| **dashboard-view** | A widget grid with a dashboard picker + global time range. |
|
|
33
|
+
| **explorer-view** | A left panel (tree / facets / picker / saved-views) + results + time range (Log/Metric/APM/RUM/NCM). |
|
|
34
|
+
| **wizard-flow** | An ordered multi-step create/setup flow (report builder, product setup, 2FA). |
|
|
35
|
+
| **confirm-delete-flow** | A destructive-action confirmation from a row/detail/bulk bar. |
|
|
36
|
+
|
|
37
|
+
## The app shell (every page)
|
|
38
|
+
|
|
39
|
+
The **Primary nav** (`navigation/primary-nav`) and **App header** (`toolbars/app-header`) come from the
|
|
40
|
+
layout, not the page — a recipe's regions render inside the main content area (`--common-main-bg`). See
|
|
41
|
+
`recipes.json` → `layout.appShell`.
|