create-idia-app 0.2.0 → 0.2.2
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/README.md +47 -53
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/template/package.json +2 -11
- package/template/src/providers/AppProviders.tsx +33 -3
- package/template/.cursor/rules/idia-ui-ds-brain.mdc +0 -32
- package/template/.cursor/rules/idia-ui-forms.mdc +0 -34
- package/template/.cursor/rules/idia-ui-overlays.mdc +0 -23
- package/template/.idia/brain/AGENTS.md +0 -37
- package/template/.idia/brain/ai/agents/retrieval-cheatsheet.md +0 -209
- package/template/.idia/brain/ai/skills/components/button/SKILL.md +0 -32
- package/template/.idia/brain/ai/skills/ds-brain-action-hierarchy/SKILL.md +0 -46
- package/template/.idia/brain/ai/skills/ds-brain-forms/SKILL.md +0 -67
- package/template/.idia/brain/ai/skills/ds-brain-index/SKILL.md +0 -76
- package/template/.idia/brain/ai/skills/ds-brain-overlays/SKILL.md +0 -30
- package/template/.idia/brain/ai/skills/ds-brain-retrieval/SKILL.md +0 -54
- package/template/.idia/brain/registry/ai-index.generated.json +0 -833
- package/template/.idia/brain/registry/component-registry.generated.json +0 -2947
- package/template/.idia/manifest.json +0 -17
- package/template/.storybook/main.ts +0 -9
- package/template/.storybook/preview.tsx +0 -20
- package/template/AGENTS.md +0 -11
- package/template/src/stories/Button.stories.tsx +0 -31
- package/template/storybook-static/assets/Button.stories-CfapbH7U.js +0 -196
- package/template/storybook-static/assets/Color-F6OSRLHC-CFwL-RM_.js +0 -1
- package/template/storybook-static/assets/DocsRenderer-CFRXHY34-AADCayzw.js +0 -729
- package/template/storybook-static/assets/_commonjsHelpers-Cpj98o6Y.js +0 -1
- package/template/storybook-static/assets/axe-d-K7rF9D.js +0 -30
- package/template/storybook-static/assets/chunk-XP5HYGXS-BHXC9YeQ.js +0 -1
- package/template/storybook-static/assets/client-DGEjZp2f.js +0 -25
- package/template/storybook-static/assets/entry-preview-Dc5wkB2s.js +0 -2
- package/template/storybook-static/assets/entry-preview-docs-BaxqCxyK.js +0 -46
- package/template/storybook-static/assets/iframe-Bl15XKnQ.js +0 -211
- package/template/storybook-static/assets/index-Bhelpi4i.js +0 -11
- package/template/storybook-static/assets/index-C_pJYAGD.js +0 -1
- package/template/storybook-static/assets/index-D5Inswos.js +0 -1
- package/template/storybook-static/assets/index-NGyRR_en.js +0 -9
- package/template/storybook-static/assets/index-zmTGQa7e.js +0 -9
- package/template/storybook-static/assets/jsx-runtime-BjG_zV1W.js +0 -9
- package/template/storybook-static/assets/preview-BNUqaTig.js +0 -1
- package/template/storybook-static/assets/preview-Cfo7ZnTc.js +0 -2
- package/template/storybook-static/assets/preview-CrKLV1aL.css +0 -1
- package/template/storybook-static/assets/preview-DkVJIpDn.js +0 -2
- package/template/storybook-static/assets/preview-DrRsTNnS.js +0 -17
- package/template/storybook-static/assets/react-18-Bfhi6ooJ.js +0 -1
- package/template/storybook-static/assets/react-FmFgRqLi.js +0 -1
- package/template/storybook-static/assets/react-native-gesture-handler-BzS7UzhZ.js +0 -52
- package/template/storybook-static/assets/test-utils-X4YdDMST.js +0 -9
- package/template/storybook-static/favicon.svg +0 -1
- package/template/storybook-static/fonts/Inter.ttf +0 -0
- package/template/storybook-static/fonts/NunitoSans.woff2 +0 -0
- package/template/storybook-static/iframe.html +0 -668
- package/template/storybook-static/index.html +0 -145
- package/template/storybook-static/index.json +0 -1
- package/template/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/template/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/template/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/template/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/template/storybook-static/project.json +0 -1
- package/template/storybook-static/sb-addons/a11y-2/manager-bundle.js +0 -3
- package/template/storybook-static/sb-addons/links-1/manager-bundle.js +0 -3
- package/template/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
- package/template/storybook-static/sb-common-assets/favicon.svg +0 -1
- package/template/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/template/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/template/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/template/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/template/storybook-static/sb-manager/globals-module-info.js +0 -1052
- package/template/storybook-static/sb-manager/globals-runtime.js +0 -41775
- package/template/storybook-static/sb-manager/globals.js +0 -48
- package/template/storybook-static/sb-manager/runtime.js +0 -12048
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
# ds-brain — Retrieval Cheatsheet
|
|
2
|
-
|
|
3
|
-
Output mode and task intent are **independent axes** (see `docs/RETRIEVAL-CONTRACT.md`). Classify both, then load mode docs plus intent docs, components, and foundations.
|
|
4
|
-
|
|
5
|
-
## Retrieval recipe
|
|
6
|
-
|
|
7
|
-
- Read `AGENTS.md` or `.idia/brain/ai/agents/AGENTS.generated.md`.
|
|
8
|
-
- Classify **output mode** (form of work) and **task intent** (UI/domain task) separately.
|
|
9
|
-
- Load output-mode docs from the table below.
|
|
10
|
-
- Load task-intent docs, then component docs via `component-registry.generated.json` or intent component lists.
|
|
11
|
-
- Load listed foundations when visual/token accuracy matters.
|
|
12
|
-
- Inspect package source only when API or behaviour must be confirmed.
|
|
13
|
-
- Prefer `.idia/brain/registry/ai-index.generated.json` for resolved paths; fall back to `.idia/brain/registry/ai-index.generated.json`.
|
|
14
|
-
|
|
15
|
-
## Output modes (contract — 5 modes)
|
|
16
|
-
|
|
17
|
-
### `component-implementation`
|
|
18
|
-
|
|
19
|
-
- **Docs:** `ai/generation-principles.md`
|
|
20
|
-
- **Keywords:** component, implementation, tsx, react, api
|
|
21
|
-
- **Note:** Contract mode not in seed `outputModes`; combine with task-intent component lists and inspect source when API accuracy matters.
|
|
22
|
-
|
|
23
|
-
### `docs-maintenance`
|
|
24
|
-
|
|
25
|
-
- **Docs:** `ai/generation-principles.md`, `ai/review-loop.md`
|
|
26
|
-
- **Keywords:** audit, docs, mapping, schema, update
|
|
27
|
-
|
|
28
|
-
### `interactive-prototype`
|
|
29
|
-
|
|
30
|
-
- **Docs:** `ai/generation-principles.md`, `ai/interactive-prototypes.md`
|
|
31
|
-
- **Keywords:** code, implementation, interactive, prototype, react, tsx
|
|
32
|
-
|
|
33
|
-
### `static-ui-idea`
|
|
34
|
-
|
|
35
|
-
- **Docs:** `ai/generation-principles.md`, `ai/static-ui-ideas.md`, `docs/VISUAL-REFERENCES.md`
|
|
36
|
-
- **Keywords:** calibration, exploration, idea, image, mockup, static, storybook, visual, visual-reference
|
|
37
|
-
|
|
38
|
-
### `storybook-docs`
|
|
39
|
-
|
|
40
|
-
- **Docs:** `ai/generation-principles.md`
|
|
41
|
-
- **Keywords:** docs, example, story, storybook
|
|
42
|
-
|
|
43
|
-
## Task intents (seed)
|
|
44
|
-
|
|
45
|
-
### `button-action`
|
|
46
|
-
|
|
47
|
-
- **Docs:** `decisions/action-hierarchy.md`, `decisions/button-vs-link.md`
|
|
48
|
-
- **Components:** app-pressable, button, button-group, close-button, social-button
|
|
49
|
-
- **Foundations:** `foundations/color.md`, `foundations/motion.md`, `foundations/radius.md`, `foundations/shadows.md`, `foundations/spacing.md`
|
|
50
|
-
|
|
51
|
-
### `choice-input`
|
|
52
|
-
|
|
53
|
-
- **Docs:** `decisions/radio-vs-select-vs-checkbox.md`, `patterns/forms.md`
|
|
54
|
-
- **Components:** checkbox, custom-selection, input, radio, segmented-selector, select, … (+1 more)
|
|
55
|
-
- **Foundations:** `foundations/spacing.md`, `foundations/typography.md`
|
|
56
|
-
|
|
57
|
-
### `component-docs`
|
|
58
|
-
|
|
59
|
-
- **Docs:** `ai/generation-principles.md`, `ai/review-loop.md`
|
|
60
|
-
- **Components:** accordion, app-pressable, avatar, avatar-upload, back-link, badge, … (+70 more)
|
|
61
|
-
- **Foundations:** `foundations/border-width.md`, `foundations/shadows.md`, `foundations/tokens.md`, `foundations/z-index.md`
|
|
62
|
-
|
|
63
|
-
### `data-display`
|
|
64
|
-
|
|
65
|
-
- **Docs:** `patterns/search-highlight.md`
|
|
66
|
-
- **Components:** avatar, badge, calendar, card-list, carousel, catalog-browser, … (+7 more)
|
|
67
|
-
- **Foundations:** `foundations/color.md`, `foundations/spacing.md`, `foundations/typography.md`
|
|
68
|
-
|
|
69
|
-
### `data-table`
|
|
70
|
-
|
|
71
|
-
- **Docs:** `patterns/search-highlight.md`, `patterns/table-filters.md`
|
|
72
|
-
- **Components:** catalog-browser, date-input, empty-state, highlight-text, record-card, search-input, … (+2 more)
|
|
73
|
-
- **Foundations:** `foundations/color.md`, `foundations/spacing.md`, `foundations/typography.md`
|
|
74
|
-
|
|
75
|
-
### `feedback-loading`
|
|
76
|
-
|
|
77
|
-
- **Docs:** `patterns/empty-status-flow.md`
|
|
78
|
-
- **Components:** empty-records-mobile, empty-state, full-page-loader, notification-banner, notification-text, skeleton, … (+3 more)
|
|
79
|
-
- **Foundations:** `foundations/color.md`, `foundations/motion.md`
|
|
80
|
-
|
|
81
|
-
### `form`
|
|
82
|
-
|
|
83
|
-
- **Docs:** `decisions/action-hierarchy.md`, `decisions/button-vs-link.md`, `decisions/radio-vs-select-vs-checkbox.md`, `patterns/address-capture.md`, `patterns/calendar-scheduling.md`, `patterns/form-composition.md`, `patterns/forms.md`, `patterns/media-upload.md`, `patterns/phone-and-currency.md`, `patterns/validation-forms.md`
|
|
84
|
-
- **Components:** avatar-upload, button, checkbox, custom-selection, date-input, date-range-input, … (+20 more)
|
|
85
|
-
- **Foundations:** `foundations/color.md`, `foundations/spacing.md`, `foundations/tokens.md`, `foundations/typography.md`
|
|
86
|
-
|
|
87
|
-
### `layout`
|
|
88
|
-
|
|
89
|
-
- **Docs:** `patterns/sticky-chrome.md`
|
|
90
|
-
- **Components:** accordion, card-container, collapsible, floating-action-bar, layout, list-simple, … (+3 more)
|
|
91
|
-
- **Foundations:** `foundations/spacing.md`, `foundations/typography.md`
|
|
92
|
-
|
|
93
|
-
### `list-selection`
|
|
94
|
-
|
|
95
|
-
- **Docs:** `patterns/list-selection.md`
|
|
96
|
-
- **Components:** catalog-browser, checkbox, custom-selection, list-menu, list-menu-action, radio
|
|
97
|
-
- **Foundations:** `foundations/spacing.md`, `foundations/typography.md`
|
|
98
|
-
|
|
99
|
-
### `loading-states`
|
|
100
|
-
|
|
101
|
-
- **Docs:** `patterns/loading-skeletons.md`
|
|
102
|
-
- **Components:** button, card-list, full-page-loader, skeleton, spinner, table, … (+1 more)
|
|
103
|
-
- **Foundations:** `foundations/color.md`, `foundations/motion.md`
|
|
104
|
-
|
|
105
|
-
### `modal-navigation`
|
|
106
|
-
|
|
107
|
-
- **Docs:** `decisions/action-hierarchy.md`, `decisions/button-vs-link.md`, `patterns/modal-routing.md`
|
|
108
|
-
- **Components:** back-link, button, confirmation-modal, link, modal
|
|
109
|
-
- **Foundations:** `foundations/motion.md`, `foundations/spacing.md`, `foundations/z-index.md`
|
|
110
|
-
|
|
111
|
-
### `navigation`
|
|
112
|
-
|
|
113
|
-
- **Docs:** `decisions/action-hierarchy.md`, `decisions/button-vs-link.md`, `patterns/navigation-pressable.md`
|
|
114
|
-
- **Components:** back-link, link, list-menu, list-menu-action, tabs, tabs-simple, … (+1 more)
|
|
115
|
-
- **Foundations:** `foundations/color.md`, `foundations/spacing.md`, `foundations/typography.md`
|
|
116
|
-
|
|
117
|
-
### `overlay-stack`
|
|
118
|
-
|
|
119
|
-
- **Docs:** `patterns/overlay-stack.md`
|
|
120
|
-
- **Components:** confirmation-modal, full-page-loader, modal, overlay, picker-sheet, popover-wrapper, … (+2 more)
|
|
121
|
-
- **Foundations:** `foundations/shadows.md`, `foundations/z-index.md`
|
|
122
|
-
|
|
123
|
-
### `wizard`
|
|
124
|
-
|
|
125
|
-
- **Docs:** `patterns/wizard-flows.md`
|
|
126
|
-
- **Components:** button, confirmation-modal, form-section, wizard-stepper
|
|
127
|
-
- **Foundations:** `foundations/spacing.md`, `foundations/typography.md`
|
|
128
|
-
|
|
129
|
-
## Mode × intent matrix
|
|
130
|
-
|
|
131
|
-
Each row is one classified pair. Load **mode docs ∪ intent docs** (dedupe), then intent components and foundations.
|
|
132
|
-
|
|
133
|
-
| Output mode | Task intent | Mode docs | Intent docs | Components | Foundations |
|
|
134
|
-
|---|---|---|---|---|---|
|
|
135
|
-
| `component-implementation` | `button-action` | ai/generation-principles.md | decisions/action-hierarchy.md, decisions/button-vs-link.md | components/app-pressable.md, components/button.md, components/button-group.md, components/close-button.md, … | foundations/color.md, foundations/motion.md, foundations/radius.md, foundations/shadows.md, foundations/spacing.md |
|
|
136
|
-
| `component-implementation` | `choice-input` | ai/generation-principles.md | decisions/radio-vs-select-vs-checkbox.md, patterns/forms.md | components/checkbox.md, components/custom-selection.md, components/input.md, components/radio.md, … | foundations/spacing.md, foundations/typography.md |
|
|
137
|
-
| `component-implementation` | `component-docs` | ai/generation-principles.md | ai/generation-principles.md, ai/review-loop.md | components/accordion.md, components/app-pressable.md, components/avatar.md, components/avatar-upload.md, … | foundations/border-width.md, foundations/shadows.md, foundations/tokens.md, foundations/z-index.md |
|
|
138
|
-
| `component-implementation` | `data-display` | ai/generation-principles.md | patterns/search-highlight.md | components/avatar.md, components/badge.md, components/calendar.md, components/card-list.md, … | foundations/color.md, foundations/spacing.md, foundations/typography.md |
|
|
139
|
-
| `component-implementation` | `data-table` | ai/generation-principles.md | patterns/search-highlight.md, patterns/table-filters.md | components/catalog-browser.md, components/date-input.md, components/empty-state.md, components/highlight-text.md, … | foundations/color.md, foundations/spacing.md, foundations/typography.md |
|
|
140
|
-
| `component-implementation` | `feedback-loading` | ai/generation-principles.md | patterns/empty-status-flow.md | components/empty-records-mobile.md, components/empty-state.md, components/full-page-loader.md, components/notification-banner.md, … | foundations/color.md, foundations/motion.md |
|
|
141
|
-
| `component-implementation` | `form` | ai/generation-principles.md | decisions/action-hierarchy.md, decisions/button-vs-link.md, decisions/radio-vs-select-vs-checkbox.md, patterns/address-capture.md, patterns/calendar-scheduling.md, patterns/form-composition.md, patterns/forms.md, patterns/media-upload.md, patterns/phone-and-currency.md, patterns/validation-forms.md | components/avatar-upload.md, components/button.md, components/checkbox.md, components/custom-selection.md, … | foundations/color.md, foundations/spacing.md, foundations/tokens.md, foundations/typography.md |
|
|
142
|
-
| `component-implementation` | `layout` | ai/generation-principles.md | patterns/sticky-chrome.md | components/accordion.md, components/card-container.md, components/collapsible.md, components/floating-action-bar.md, … | foundations/spacing.md, foundations/typography.md |
|
|
143
|
-
| `component-implementation` | `list-selection` | ai/generation-principles.md | patterns/list-selection.md | components/catalog-browser.md, components/checkbox.md, components/custom-selection.md, components/list-menu.md, … | foundations/spacing.md, foundations/typography.md |
|
|
144
|
-
| `component-implementation` | `loading-states` | ai/generation-principles.md | patterns/loading-skeletons.md | components/button.md, components/card-list.md, components/full-page-loader.md, components/skeleton.md, … | foundations/color.md, foundations/motion.md |
|
|
145
|
-
| `component-implementation` | `modal-navigation` | ai/generation-principles.md | decisions/action-hierarchy.md, decisions/button-vs-link.md, patterns/modal-routing.md | components/back-link.md, components/button.md, components/confirmation-modal.md, components/link.md, … | foundations/motion.md, foundations/spacing.md, foundations/z-index.md |
|
|
146
|
-
| `component-implementation` | `navigation` | ai/generation-principles.md | decisions/action-hierarchy.md, decisions/button-vs-link.md, patterns/navigation-pressable.md | components/back-link.md, components/link.md, components/list-menu.md, components/list-menu-action.md, … | foundations/color.md, foundations/spacing.md, foundations/typography.md |
|
|
147
|
-
| `component-implementation` | `overlay-stack` | ai/generation-principles.md | patterns/overlay-stack.md | components/confirmation-modal.md, components/full-page-loader.md, components/modal.md, components/overlay.md, … | foundations/shadows.md, foundations/z-index.md |
|
|
148
|
-
| `component-implementation` | `wizard` | ai/generation-principles.md | patterns/wizard-flows.md | components/button.md, components/confirmation-modal.md, components/form-section.md, components/wizard-stepper.md | foundations/spacing.md, foundations/typography.md |
|
|
149
|
-
| `docs-maintenance` | `button-action` | ai/generation-principles.md, ai/review-loop.md | decisions/action-hierarchy.md, decisions/button-vs-link.md | components/app-pressable.md, components/button.md, components/button-group.md, components/close-button.md, … | foundations/color.md, foundations/motion.md, foundations/radius.md, foundations/shadows.md, foundations/spacing.md |
|
|
150
|
-
| `docs-maintenance` | `choice-input` | ai/generation-principles.md, ai/review-loop.md | decisions/radio-vs-select-vs-checkbox.md, patterns/forms.md | components/checkbox.md, components/custom-selection.md, components/input.md, components/radio.md, … | foundations/spacing.md, foundations/typography.md |
|
|
151
|
-
| `docs-maintenance` | `component-docs` | ai/generation-principles.md, ai/review-loop.md | ai/generation-principles.md, ai/review-loop.md | components/accordion.md, components/app-pressable.md, components/avatar.md, components/avatar-upload.md, … | foundations/border-width.md, foundations/shadows.md, foundations/tokens.md, foundations/z-index.md |
|
|
152
|
-
| `docs-maintenance` | `data-display` | ai/generation-principles.md, ai/review-loop.md | patterns/search-highlight.md | components/avatar.md, components/badge.md, components/calendar.md, components/card-list.md, … | foundations/color.md, foundations/spacing.md, foundations/typography.md |
|
|
153
|
-
| `docs-maintenance` | `data-table` | ai/generation-principles.md, ai/review-loop.md | patterns/search-highlight.md, patterns/table-filters.md | components/catalog-browser.md, components/date-input.md, components/empty-state.md, components/highlight-text.md, … | foundations/color.md, foundations/spacing.md, foundations/typography.md |
|
|
154
|
-
| `docs-maintenance` | `feedback-loading` | ai/generation-principles.md, ai/review-loop.md | patterns/empty-status-flow.md | components/empty-records-mobile.md, components/empty-state.md, components/full-page-loader.md, components/notification-banner.md, … | foundations/color.md, foundations/motion.md |
|
|
155
|
-
| `docs-maintenance` | `form` | ai/generation-principles.md, ai/review-loop.md | decisions/action-hierarchy.md, decisions/button-vs-link.md, decisions/radio-vs-select-vs-checkbox.md, patterns/address-capture.md, patterns/calendar-scheduling.md, patterns/form-composition.md, patterns/forms.md, patterns/media-upload.md, patterns/phone-and-currency.md, patterns/validation-forms.md | components/avatar-upload.md, components/button.md, components/checkbox.md, components/custom-selection.md, … | foundations/color.md, foundations/spacing.md, foundations/tokens.md, foundations/typography.md |
|
|
156
|
-
| `docs-maintenance` | `layout` | ai/generation-principles.md, ai/review-loop.md | patterns/sticky-chrome.md | components/accordion.md, components/card-container.md, components/collapsible.md, components/floating-action-bar.md, … | foundations/spacing.md, foundations/typography.md |
|
|
157
|
-
| `docs-maintenance` | `list-selection` | ai/generation-principles.md, ai/review-loop.md | patterns/list-selection.md | components/catalog-browser.md, components/checkbox.md, components/custom-selection.md, components/list-menu.md, … | foundations/spacing.md, foundations/typography.md |
|
|
158
|
-
| `docs-maintenance` | `loading-states` | ai/generation-principles.md, ai/review-loop.md | patterns/loading-skeletons.md | components/button.md, components/card-list.md, components/full-page-loader.md, components/skeleton.md, … | foundations/color.md, foundations/motion.md |
|
|
159
|
-
| `docs-maintenance` | `modal-navigation` | ai/generation-principles.md, ai/review-loop.md | decisions/action-hierarchy.md, decisions/button-vs-link.md, patterns/modal-routing.md | components/back-link.md, components/button.md, components/confirmation-modal.md, components/link.md, … | foundations/motion.md, foundations/spacing.md, foundations/z-index.md |
|
|
160
|
-
| `docs-maintenance` | `navigation` | ai/generation-principles.md, ai/review-loop.md | decisions/action-hierarchy.md, decisions/button-vs-link.md, patterns/navigation-pressable.md | components/back-link.md, components/link.md, components/list-menu.md, components/list-menu-action.md, … | foundations/color.md, foundations/spacing.md, foundations/typography.md |
|
|
161
|
-
| `docs-maintenance` | `overlay-stack` | ai/generation-principles.md, ai/review-loop.md | patterns/overlay-stack.md | components/confirmation-modal.md, components/full-page-loader.md, components/modal.md, components/overlay.md, … | foundations/shadows.md, foundations/z-index.md |
|
|
162
|
-
| `docs-maintenance` | `wizard` | ai/generation-principles.md, ai/review-loop.md | patterns/wizard-flows.md | components/button.md, components/confirmation-modal.md, components/form-section.md, components/wizard-stepper.md | foundations/spacing.md, foundations/typography.md |
|
|
163
|
-
| `interactive-prototype` | `button-action` | ai/generation-principles.md, ai/interactive-prototypes.md | decisions/action-hierarchy.md, decisions/button-vs-link.md | components/app-pressable.md, components/button.md, components/button-group.md, components/close-button.md, … | foundations/color.md, foundations/motion.md, foundations/radius.md, foundations/shadows.md, foundations/spacing.md |
|
|
164
|
-
| `interactive-prototype` | `choice-input` | ai/generation-principles.md, ai/interactive-prototypes.md | decisions/radio-vs-select-vs-checkbox.md, patterns/forms.md | components/checkbox.md, components/custom-selection.md, components/input.md, components/radio.md, … | foundations/spacing.md, foundations/typography.md |
|
|
165
|
-
| `interactive-prototype` | `component-docs` | ai/generation-principles.md, ai/interactive-prototypes.md | ai/generation-principles.md, ai/review-loop.md | components/accordion.md, components/app-pressable.md, components/avatar.md, components/avatar-upload.md, … | foundations/border-width.md, foundations/shadows.md, foundations/tokens.md, foundations/z-index.md |
|
|
166
|
-
| `interactive-prototype` | `data-display` | ai/generation-principles.md, ai/interactive-prototypes.md | patterns/search-highlight.md | components/avatar.md, components/badge.md, components/calendar.md, components/card-list.md, … | foundations/color.md, foundations/spacing.md, foundations/typography.md |
|
|
167
|
-
| `interactive-prototype` | `data-table` | ai/generation-principles.md, ai/interactive-prototypes.md | patterns/search-highlight.md, patterns/table-filters.md | components/catalog-browser.md, components/date-input.md, components/empty-state.md, components/highlight-text.md, … | foundations/color.md, foundations/spacing.md, foundations/typography.md |
|
|
168
|
-
| `interactive-prototype` | `feedback-loading` | ai/generation-principles.md, ai/interactive-prototypes.md | patterns/empty-status-flow.md | components/empty-records-mobile.md, components/empty-state.md, components/full-page-loader.md, components/notification-banner.md, … | foundations/color.md, foundations/motion.md |
|
|
169
|
-
| `interactive-prototype` | `form` | ai/generation-principles.md, ai/interactive-prototypes.md | decisions/action-hierarchy.md, decisions/button-vs-link.md, decisions/radio-vs-select-vs-checkbox.md, patterns/address-capture.md, patterns/calendar-scheduling.md, patterns/form-composition.md, patterns/forms.md, patterns/media-upload.md, patterns/phone-and-currency.md, patterns/validation-forms.md | components/avatar-upload.md, components/button.md, components/checkbox.md, components/custom-selection.md, … | foundations/color.md, foundations/spacing.md, foundations/tokens.md, foundations/typography.md |
|
|
170
|
-
| `interactive-prototype` | `layout` | ai/generation-principles.md, ai/interactive-prototypes.md | patterns/sticky-chrome.md | components/accordion.md, components/card-container.md, components/collapsible.md, components/floating-action-bar.md, … | foundations/spacing.md, foundations/typography.md |
|
|
171
|
-
| `interactive-prototype` | `list-selection` | ai/generation-principles.md, ai/interactive-prototypes.md | patterns/list-selection.md | components/catalog-browser.md, components/checkbox.md, components/custom-selection.md, components/list-menu.md, … | foundations/spacing.md, foundations/typography.md |
|
|
172
|
-
| `interactive-prototype` | `loading-states` | ai/generation-principles.md, ai/interactive-prototypes.md | patterns/loading-skeletons.md | components/button.md, components/card-list.md, components/full-page-loader.md, components/skeleton.md, … | foundations/color.md, foundations/motion.md |
|
|
173
|
-
| `interactive-prototype` | `modal-navigation` | ai/generation-principles.md, ai/interactive-prototypes.md | decisions/action-hierarchy.md, decisions/button-vs-link.md, patterns/modal-routing.md | components/back-link.md, components/button.md, components/confirmation-modal.md, components/link.md, … | foundations/motion.md, foundations/spacing.md, foundations/z-index.md |
|
|
174
|
-
| `interactive-prototype` | `navigation` | ai/generation-principles.md, ai/interactive-prototypes.md | decisions/action-hierarchy.md, decisions/button-vs-link.md, patterns/navigation-pressable.md | components/back-link.md, components/link.md, components/list-menu.md, components/list-menu-action.md, … | foundations/color.md, foundations/spacing.md, foundations/typography.md |
|
|
175
|
-
| `interactive-prototype` | `overlay-stack` | ai/generation-principles.md, ai/interactive-prototypes.md | patterns/overlay-stack.md | components/confirmation-modal.md, components/full-page-loader.md, components/modal.md, components/overlay.md, … | foundations/shadows.md, foundations/z-index.md |
|
|
176
|
-
| `interactive-prototype` | `wizard` | ai/generation-principles.md, ai/interactive-prototypes.md | patterns/wizard-flows.md | components/button.md, components/confirmation-modal.md, components/form-section.md, components/wizard-stepper.md | foundations/spacing.md, foundations/typography.md |
|
|
177
|
-
| `static-ui-idea` | `button-action` | ai/generation-principles.md, ai/static-ui-ideas.md, docs/VISUAL-REFERENCES.md | decisions/action-hierarchy.md, decisions/button-vs-link.md | components/app-pressable.md, components/button.md, components/button-group.md, components/close-button.md, … | foundations/color.md, foundations/motion.md, foundations/radius.md, foundations/shadows.md, foundations/spacing.md |
|
|
178
|
-
| `static-ui-idea` | `choice-input` | ai/generation-principles.md, ai/static-ui-ideas.md, docs/VISUAL-REFERENCES.md | decisions/radio-vs-select-vs-checkbox.md, patterns/forms.md | components/checkbox.md, components/custom-selection.md, components/input.md, components/radio.md, … | foundations/spacing.md, foundations/typography.md |
|
|
179
|
-
| `static-ui-idea` | `component-docs` | ai/generation-principles.md, ai/static-ui-ideas.md, docs/VISUAL-REFERENCES.md | ai/generation-principles.md, ai/review-loop.md | components/accordion.md, components/app-pressable.md, components/avatar.md, components/avatar-upload.md, … | foundations/border-width.md, foundations/shadows.md, foundations/tokens.md, foundations/z-index.md |
|
|
180
|
-
| `static-ui-idea` | `data-display` | ai/generation-principles.md, ai/static-ui-ideas.md, docs/VISUAL-REFERENCES.md | patterns/search-highlight.md | components/avatar.md, components/badge.md, components/calendar.md, components/card-list.md, … | foundations/color.md, foundations/spacing.md, foundations/typography.md |
|
|
181
|
-
| `static-ui-idea` | `data-table` | ai/generation-principles.md, ai/static-ui-ideas.md, docs/VISUAL-REFERENCES.md | patterns/search-highlight.md, patterns/table-filters.md | components/catalog-browser.md, components/date-input.md, components/empty-state.md, components/highlight-text.md, … | foundations/color.md, foundations/spacing.md, foundations/typography.md |
|
|
182
|
-
| `static-ui-idea` | `feedback-loading` | ai/generation-principles.md, ai/static-ui-ideas.md, docs/VISUAL-REFERENCES.md | patterns/empty-status-flow.md | components/empty-records-mobile.md, components/empty-state.md, components/full-page-loader.md, components/notification-banner.md, … | foundations/color.md, foundations/motion.md |
|
|
183
|
-
| `static-ui-idea` | `form` | ai/generation-principles.md, ai/static-ui-ideas.md, docs/VISUAL-REFERENCES.md | decisions/action-hierarchy.md, decisions/button-vs-link.md, decisions/radio-vs-select-vs-checkbox.md, patterns/address-capture.md, patterns/calendar-scheduling.md, patterns/form-composition.md, patterns/forms.md, patterns/media-upload.md, patterns/phone-and-currency.md, patterns/validation-forms.md | components/avatar-upload.md, components/button.md, components/checkbox.md, components/custom-selection.md, … | foundations/color.md, foundations/spacing.md, foundations/tokens.md, foundations/typography.md |
|
|
184
|
-
| `static-ui-idea` | `layout` | ai/generation-principles.md, ai/static-ui-ideas.md, docs/VISUAL-REFERENCES.md | patterns/sticky-chrome.md | components/accordion.md, components/card-container.md, components/collapsible.md, components/floating-action-bar.md, … | foundations/spacing.md, foundations/typography.md |
|
|
185
|
-
| `static-ui-idea` | `list-selection` | ai/generation-principles.md, ai/static-ui-ideas.md, docs/VISUAL-REFERENCES.md | patterns/list-selection.md | components/catalog-browser.md, components/checkbox.md, components/custom-selection.md, components/list-menu.md, … | foundations/spacing.md, foundations/typography.md |
|
|
186
|
-
| `static-ui-idea` | `loading-states` | ai/generation-principles.md, ai/static-ui-ideas.md, docs/VISUAL-REFERENCES.md | patterns/loading-skeletons.md | components/button.md, components/card-list.md, components/full-page-loader.md, components/skeleton.md, … | foundations/color.md, foundations/motion.md |
|
|
187
|
-
| `static-ui-idea` | `modal-navigation` | ai/generation-principles.md, ai/static-ui-ideas.md, docs/VISUAL-REFERENCES.md | decisions/action-hierarchy.md, decisions/button-vs-link.md, patterns/modal-routing.md | components/back-link.md, components/button.md, components/confirmation-modal.md, components/link.md, … | foundations/motion.md, foundations/spacing.md, foundations/z-index.md |
|
|
188
|
-
| `static-ui-idea` | `navigation` | ai/generation-principles.md, ai/static-ui-ideas.md, docs/VISUAL-REFERENCES.md | decisions/action-hierarchy.md, decisions/button-vs-link.md, patterns/navigation-pressable.md | components/back-link.md, components/link.md, components/list-menu.md, components/list-menu-action.md, … | foundations/color.md, foundations/spacing.md, foundations/typography.md |
|
|
189
|
-
| `static-ui-idea` | `overlay-stack` | ai/generation-principles.md, ai/static-ui-ideas.md, docs/VISUAL-REFERENCES.md | patterns/overlay-stack.md | components/confirmation-modal.md, components/full-page-loader.md, components/modal.md, components/overlay.md, … | foundations/shadows.md, foundations/z-index.md |
|
|
190
|
-
| `static-ui-idea` | `wizard` | ai/generation-principles.md, ai/static-ui-ideas.md, docs/VISUAL-REFERENCES.md | patterns/wizard-flows.md | components/button.md, components/confirmation-modal.md, components/form-section.md, components/wizard-stepper.md | foundations/spacing.md, foundations/typography.md |
|
|
191
|
-
| `storybook-docs` | `button-action` | ai/generation-principles.md | decisions/action-hierarchy.md, decisions/button-vs-link.md | components/app-pressable.md, components/button.md, components/button-group.md, components/close-button.md, … | foundations/color.md, foundations/motion.md, foundations/radius.md, foundations/shadows.md, foundations/spacing.md |
|
|
192
|
-
| `storybook-docs` | `choice-input` | ai/generation-principles.md | decisions/radio-vs-select-vs-checkbox.md, patterns/forms.md | components/checkbox.md, components/custom-selection.md, components/input.md, components/radio.md, … | foundations/spacing.md, foundations/typography.md |
|
|
193
|
-
| `storybook-docs` | `component-docs` | ai/generation-principles.md | ai/generation-principles.md, ai/review-loop.md | components/accordion.md, components/app-pressable.md, components/avatar.md, components/avatar-upload.md, … | foundations/border-width.md, foundations/shadows.md, foundations/tokens.md, foundations/z-index.md |
|
|
194
|
-
| `storybook-docs` | `data-display` | ai/generation-principles.md | patterns/search-highlight.md | components/avatar.md, components/badge.md, components/calendar.md, components/card-list.md, … | foundations/color.md, foundations/spacing.md, foundations/typography.md |
|
|
195
|
-
| `storybook-docs` | `data-table` | ai/generation-principles.md | patterns/search-highlight.md, patterns/table-filters.md | components/catalog-browser.md, components/date-input.md, components/empty-state.md, components/highlight-text.md, … | foundations/color.md, foundations/spacing.md, foundations/typography.md |
|
|
196
|
-
| `storybook-docs` | `feedback-loading` | ai/generation-principles.md | patterns/empty-status-flow.md | components/empty-records-mobile.md, components/empty-state.md, components/full-page-loader.md, components/notification-banner.md, … | foundations/color.md, foundations/motion.md |
|
|
197
|
-
| `storybook-docs` | `form` | ai/generation-principles.md | decisions/action-hierarchy.md, decisions/button-vs-link.md, decisions/radio-vs-select-vs-checkbox.md, patterns/address-capture.md, patterns/calendar-scheduling.md, patterns/form-composition.md, patterns/forms.md, patterns/media-upload.md, patterns/phone-and-currency.md, patterns/validation-forms.md | components/avatar-upload.md, components/button.md, components/checkbox.md, components/custom-selection.md, … | foundations/color.md, foundations/spacing.md, foundations/tokens.md, foundations/typography.md |
|
|
198
|
-
| `storybook-docs` | `layout` | ai/generation-principles.md | patterns/sticky-chrome.md | components/accordion.md, components/card-container.md, components/collapsible.md, components/floating-action-bar.md, … | foundations/spacing.md, foundations/typography.md |
|
|
199
|
-
| `storybook-docs` | `list-selection` | ai/generation-principles.md | patterns/list-selection.md | components/catalog-browser.md, components/checkbox.md, components/custom-selection.md, components/list-menu.md, … | foundations/spacing.md, foundations/typography.md |
|
|
200
|
-
| `storybook-docs` | `loading-states` | ai/generation-principles.md | patterns/loading-skeletons.md | components/button.md, components/card-list.md, components/full-page-loader.md, components/skeleton.md, … | foundations/color.md, foundations/motion.md |
|
|
201
|
-
| `storybook-docs` | `modal-navigation` | ai/generation-principles.md | decisions/action-hierarchy.md, decisions/button-vs-link.md, patterns/modal-routing.md | components/back-link.md, components/button.md, components/confirmation-modal.md, components/link.md, … | foundations/motion.md, foundations/spacing.md, foundations/z-index.md |
|
|
202
|
-
| `storybook-docs` | `navigation` | ai/generation-principles.md | decisions/action-hierarchy.md, decisions/button-vs-link.md, patterns/navigation-pressable.md | components/back-link.md, components/link.md, components/list-menu.md, components/list-menu-action.md, … | foundations/color.md, foundations/spacing.md, foundations/typography.md |
|
|
203
|
-
| `storybook-docs` | `overlay-stack` | ai/generation-principles.md | patterns/overlay-stack.md | components/confirmation-modal.md, components/full-page-loader.md, components/modal.md, components/overlay.md, … | foundations/shadows.md, foundations/z-index.md |
|
|
204
|
-
| `storybook-docs` | `wizard` | ai/generation-principles.md | patterns/wizard-flows.md | components/button.md, components/confirmation-modal.md, components/form-section.md, components/wizard-stepper.md | foundations/spacing.md, foundations/typography.md |
|
|
205
|
-
|
|
206
|
-
## Source docs
|
|
207
|
-
|
|
208
|
-
- `.idia/brain/registry/ai-index.generated.json`
|
|
209
|
-
- `docs/RETRIEVAL-CONTRACT.md`
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: button
|
|
3
|
-
description: Worked example per-component skill for Button. Operational API guidance extracted from the brain component doc.
|
|
4
|
-
generated: true
|
|
5
|
-
sources:
|
|
6
|
-
- ds-brain/components/button.md
|
|
7
|
-
---
|
|
8
|
-
# Button — Component Skill
|
|
9
|
-
|
|
10
|
-
Per-component worked example. Retrieve `components/button.md` for full mappings and behaviour; this skill summarizes AI-safe usage.
|
|
11
|
-
|
|
12
|
-
## Operational guidance
|
|
13
|
-
|
|
14
|
-
- Use `Button` for actions, not normal navigation.
|
|
15
|
-
- Use one `primary` variant per local action group.
|
|
16
|
-
- Use `primary` for the main submit/continue/save action.
|
|
17
|
-
- Use `outline-grey` for cancel in form and modal footers; `secondary` for back on wizard steps.
|
|
18
|
-
- Use `danger` or `danger-outline` for destructive delete/remove actions.
|
|
19
|
-
- Document all eight variants and five sizes — do not invent variants or sizes.
|
|
20
|
-
- For icon-only buttons, include `ariaLabel`.
|
|
21
|
-
- Mention `aria-busy` and disabled semantics for loading states.
|
|
22
|
-
- Reference semantic `colorTheme` tokens (for example `backgroundPrimaryBold200`, `borderNeutralBold100`, `borderDangerBold100`) instead of hardcoded colors.
|
|
23
|
-
- If Figma mapping is needed, treat it as incomplete until explicitly mapped.
|
|
24
|
-
|
|
25
|
-
## Related decisions
|
|
26
|
-
|
|
27
|
-
- `decisions/action-hierarchy.md`
|
|
28
|
-
- `decisions/button-vs-link.md`
|
|
29
|
-
|
|
30
|
-
## Source docs
|
|
31
|
-
|
|
32
|
-
- `components/button.md`
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ds-brain-action-hierarchy
|
|
3
|
-
description: "Button, link, and action-tier guidance. One primary action per group; choose Button vs Link by outcome."
|
|
4
|
-
generated: true
|
|
5
|
-
sources:
|
|
6
|
-
- ds-brain/components/button.md
|
|
7
|
-
- ds-brain/decisions/action-hierarchy.md
|
|
8
|
-
- ds-brain/decisions/button-vs-link.md
|
|
9
|
-
---
|
|
10
|
-
# ds-brain — Action Hierarchy
|
|
11
|
-
|
|
12
|
-
Load for button-action or navigation tasks involving primary/secondary/destructive actions and Button vs Link choice.
|
|
13
|
-
|
|
14
|
-
## Operational guidance
|
|
15
|
-
|
|
16
|
-
- Each local action group should have **one primary action** — the control that completes the main task. Secondary actions support cancellation, back navigation, alternative flows, or lower-priority choices. Destructive actions must be visually distinct and must not read as casual alternatives to the primary action.
|
|
17
|
-
- **Form footers** — submit, save, continue, cancel, back (`patterns/forms.md`)
|
|
18
|
-
- **Dialog or sheet action rows** — confirm, dismiss, delete with confirmation (`patterns/modal-routing.md`, `components/confirmation-modal.md`)
|
|
19
|
-
- **Modal `footer` slots** — save/cancel pairs on responsive `Modal` branches (`components/modal.md`)
|
|
20
|
-
- **Wizard step footers** — next/continue vs back/submit on first, middle, and last steps (`patterns/wizard-flows.md`)
|
|
21
|
-
- **Floating bottom chrome** — sticky continue/submit on long mobile steps (`components/floating-action-bar.md`)
|
|
22
|
-
- **Empty and outcome CTAs** — create-first, clear-filters, or post-submit next steps (`patterns/empty-status-flow.md`, `components/empty-state.md`, `components/status-display.md`)
|
|
23
|
-
- Use **`Button`** for actions that change state, submit data, confirm choices, open overlays without route change, or start tasks in the current context. Use **`Link`** (or the host navigation component) when the outcome is **navigation** — moving to another route, page, external URL, or in-document anchor.
|
|
24
|
-
|
|
25
|
-
For **whole-surface navigation** (cards, list rows, icon hit targets) where the affordance is not text-link shaped, use **`AppPressable`** with programmatic routing in `onPress` — not `Button`. For **upstream back affordances** on detail screens, use **`BackLink`** (wraps `Link` with arrow + label). See `patterns/navigation-pressable.md` for the full pressable hierarchy.
|
|
26
|
-
- Heuristic: state mutation or data submit → `Button`; URL or route change → `Link` (or `BackLink` / `AppPressable` per shape).
|
|
27
|
-
- Use `Button` for actions, not normal navigation.
|
|
28
|
-
- Use one `primary` variant per local action group.
|
|
29
|
-
- Use `primary` for the main submit/continue/save action.
|
|
30
|
-
- Use `outline-grey` for cancel in form and modal footers; `secondary` for back on wizard steps.
|
|
31
|
-
- Use `danger` or `danger-outline` for destructive delete/remove actions.
|
|
32
|
-
- Document all eight variants and five sizes — do not invent variants or sizes.
|
|
33
|
-
- For icon-only buttons, include `ariaLabel`.
|
|
34
|
-
- Mention `aria-busy` and disabled semantics for loading states.
|
|
35
|
-
- Button-action task-intent components: app-pressable, button, button-group, close-button, social-button.
|
|
36
|
-
|
|
37
|
-
## Related decisions
|
|
38
|
-
|
|
39
|
-
- `decisions/action-hierarchy.md`
|
|
40
|
-
- `decisions/button-vs-link.md`
|
|
41
|
-
|
|
42
|
-
## Source docs
|
|
43
|
-
|
|
44
|
-
- `components/button.md`
|
|
45
|
-
- `decisions/action-hierarchy.md`
|
|
46
|
-
- `decisions/button-vs-link.md`
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ds-brain-forms
|
|
3
|
-
description: "Form composition domain bundle. Retrieve patterns, decisions, and form components before generating sign-up, settings, or validation flows."
|
|
4
|
-
generated: true
|
|
5
|
-
sources:
|
|
6
|
-
- ds-brain/decisions/action-hierarchy.md
|
|
7
|
-
- ds-brain/decisions/button-vs-link.md
|
|
8
|
-
- ds-brain/decisions/radio-vs-select-vs-checkbox.md
|
|
9
|
-
- ds-brain/patterns/form-composition.md
|
|
10
|
-
- ds-brain/patterns/forms.md
|
|
11
|
-
- ds-brain/patterns/validation-forms.md
|
|
12
|
-
---
|
|
13
|
-
# ds-brain — Forms
|
|
14
|
-
|
|
15
|
-
Load for form UI generation after classifying output mode (`static-ui-idea` or `interactive-prototype`) and task intent `form`.
|
|
16
|
-
|
|
17
|
-
## Operational guidance
|
|
18
|
-
|
|
19
|
-
- Forms collect, validate, and submit structured user input — multiple related values the user enters or edits before a primary action completes the task.
|
|
20
|
-
- Retrieve this pattern plus `patterns/forms.md` and `decisions/action-hierarchy.md`.
|
|
21
|
-
- Retrieve `components/form-section.md` and `components/form-element.md` before generating hierarchy.
|
|
22
|
-
- Retrieve component brain docs for every field you render.
|
|
23
|
-
- Use `FormSection` when there are 2+ logical groups; use built-in `label` on `InputText`/`Select`/`TextArea`/`InputGroup` when possible.
|
|
24
|
-
- Reserve `FormElement` for custom/headless controls or `Toggle` group labels.
|
|
25
|
-
- Apply `FORM_V_GAP` / `FORM_H_GAP` from `foundations/spacing.md` — do not invent spacing tokens.
|
|
26
|
-
- Do not nest `FormSection` inside `FormElement` or inside another `FormSection`.
|
|
27
|
-
- Showcase `FormComposition.mdx` is visual calibration only — confirm props in brain component docs.
|
|
28
|
-
- Retrieve this pattern, `patterns/forms.md`, and `patterns/form-composition.md` for layout context.
|
|
29
|
-
- Retrieve `components/form-element.md` and every field component you render.
|
|
30
|
-
- Import validators from `@idia-ui/validators` — do not duplicate regex in screens.
|
|
31
|
-
- Map `formState.errors` to `hasError` + `errorText` on the matching field.
|
|
32
|
-
- Use `mode: 'onSubmit'` as default for short forms; gate on-change revalidation with `isSubmitted`.
|
|
33
|
-
- Set submit `Button` `loading` during async work.
|
|
34
|
-
- Place form-level server errors above the primary action, not inside field stacks.
|
|
35
|
-
- Inspect `packages/validators` or showcase `ValidationIntegration` for factory names — do not invent APIs.
|
|
36
|
-
- Each local action group should have **one primary action** — the control that completes the main task. Secondary actions support cancellation, back navigation, alternative flows, or lower-priority choices. Destructive actions must be visually distinct and must not read as casual alternatives to the primary action.
|
|
37
|
-
- Choose the control by **selection model**, **visibility needs**, and **visual density**. All Group A choice controls have brain docs — retrieve the cited component doc before generating props.
|
|
38
|
-
- Retrieve form components from index task intent `form`: avatar-upload, button, checkbox, custom-selection, date-input, date-range-input, form-element, form-section, ….
|
|
39
|
-
- Retrieve foundations: color, spacing, tokens, typography.
|
|
40
|
-
|
|
41
|
-
## Related decisions
|
|
42
|
-
|
|
43
|
-
- `decisions/action-hierarchy.md`
|
|
44
|
-
- `decisions/radio-vs-select-vs-checkbox.md`
|
|
45
|
-
- `decisions/button-vs-link.md`
|
|
46
|
-
|
|
47
|
-
## Pattern docs
|
|
48
|
-
|
|
49
|
-
- `decisions/action-hierarchy.md`
|
|
50
|
-
- `decisions/button-vs-link.md`
|
|
51
|
-
- `decisions/radio-vs-select-vs-checkbox.md`
|
|
52
|
-
- `patterns/address-capture.md`
|
|
53
|
-
- `patterns/calendar-scheduling.md`
|
|
54
|
-
- `patterns/form-composition.md`
|
|
55
|
-
- `patterns/forms.md`
|
|
56
|
-
- `patterns/media-upload.md`
|
|
57
|
-
- `patterns/phone-and-currency.md`
|
|
58
|
-
- `patterns/validation-forms.md`
|
|
59
|
-
|
|
60
|
-
## Source docs
|
|
61
|
-
|
|
62
|
-
- `decisions/action-hierarchy.md`
|
|
63
|
-
- `decisions/button-vs-link.md`
|
|
64
|
-
- `decisions/radio-vs-select-vs-checkbox.md`
|
|
65
|
-
- `patterns/form-composition.md`
|
|
66
|
-
- `patterns/forms.md`
|
|
67
|
-
- `patterns/validation-forms.md`
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ds-brain-index
|
|
3
|
-
description: "Meta router for ds-brain. Read first on design-system tasks. Explains canonical vs generated layout, retrieval order, and registry index paths."
|
|
4
|
-
generated: true
|
|
5
|
-
sources:
|
|
6
|
-
- .idia/brain/AGENTS.md
|
|
7
|
-
- ds-brain/ai/generation-principles.md
|
|
8
|
-
- ds-brain/docs/RETRIEVAL-CONTRACT.md
|
|
9
|
-
---
|
|
10
|
-
# ds-brain — Meta Router Skill
|
|
11
|
-
|
|
12
|
-
**Read this skill first.** Orient to the design-system brain, classify the task, then load only the relevant domain skill and brain docs.
|
|
13
|
-
|
|
14
|
-
## Operational guidance
|
|
15
|
-
|
|
16
|
-
- Read this skill first before loading domain-specific ds-brain skills.
|
|
17
|
-
- `foundations/`
|
|
18
|
-
- `components/`
|
|
19
|
-
- `patterns/`
|
|
20
|
-
- `decisions/`
|
|
21
|
-
- `ai/`
|
|
22
|
-
- `config/`
|
|
23
|
-
- `.idia/brain/`
|
|
24
|
-
- If authored docs and generated files conflict, authored docs win.
|
|
25
|
-
- Read `AGENTS.md` (repo root) — **session-start**; mandatory first Read for **any** task (see root `AGENTS.md`).
|
|
26
|
-
- Read `.idia/brain/AGENTS.md` — **gate step 1**; brain entrypoint (this file).
|
|
27
|
-
- Read `.idia/brain/registry/ai-index.generated.json` — **gate step 2**; **STOP** — required before any component or pattern doc.
|
|
28
|
-
- Read `.idia/brain/ai/skills/ds-brain-index/SKILL.md` — **gate step 3**; **required** meta router; read before domain skills and component/pattern docs.
|
|
29
|
-
- Classify **output mode** and **task intent** from the ai-index before opening authored component docs.
|
|
30
|
-
- Read only the foundation, component, pattern, decision, and AI guidance docs resolved by the index.
|
|
31
|
-
- Load domain skills as needed (e.g. `ds-brain-forms`, `ds-brain-action-hierarchy`) after classification.
|
|
32
|
-
- Load `ds-brain-retrieval` only when output mode or task intent classification is ambiguous after reading the ai-index; otherwise skip it.
|
|
33
|
-
- Inspect code only when API, implementation behaviour, or source paths must be confirmed.
|
|
34
|
-
- **Identify output mode** from the user request (static image vs code vs docs work).
|
|
35
|
-
- **Identify task intent** from the UI domain (form, action, choice control, etc.).
|
|
36
|
-
- **Load the index** — `.idia/brain/registry/ai-index.generated.json` first; prefer generated index when available.
|
|
37
|
-
- **Retrieve output-mode docs** listed under `outputModes.<mode>.docs`.
|
|
38
|
-
- **Retrieve task-intent docs** listed under `taskIntents.<intent>.docs`, then component and foundation paths from the same intent entry.
|
|
39
|
-
- **Inspect source** only when brain docs are `stub`, mappings are incomplete, or prop/API accuracy is required (especially for interactive prototypes).
|
|
40
|
-
- `static-ui-idea`
|
|
41
|
-
- `interactive-prototype`
|
|
42
|
-
- `storybook-docs`
|
|
43
|
-
- `component-implementation`
|
|
44
|
-
- `docs-maintenance`
|
|
45
|
-
- `form`
|
|
46
|
-
- `button-action`
|
|
47
|
-
- `choice-input`
|
|
48
|
-
- `component-docs`
|
|
49
|
-
- Read `AGENTS.md` — entry routing and output-mode read lists.
|
|
50
|
-
- Read `.idia/brain/registry/ai-index.generated.json` — **required** gate before component/pattern docs.
|
|
51
|
-
- Read `ds-brain-index` skill (`.idia/brain/ai/skills/ds-brain-index/SKILL.md`) — **required** meta router before domain skills and authored component docs.
|
|
52
|
-
- Classify output mode from the ai-index.
|
|
53
|
-
- Classify task intent from the ai-index.
|
|
54
|
-
- Load domain skills as needed (e.g. `ds-brain-forms`, `ds-brain-action-hierarchy`).
|
|
55
|
-
- Load output-mode and task-intent docs resolved by the index — components, foundations, patterns, and decisions only.
|
|
56
|
-
- Load `ds-brain-retrieval` only when output mode or task intent remains ambiguous after index lookup; otherwise skip it.
|
|
57
|
-
- Inspect code only when API or behaviour must be confirmed.
|
|
58
|
-
- Prefer `.idia/brain/registry/ai-index.generated.json` when present.
|
|
59
|
-
- Use `.idia/brain/registry/component-registry.generated.json` for component metadata summaries.
|
|
60
|
-
- Do not edit `.idia/brain/` directly.
|
|
61
|
-
- Do not invent components, props, variants, tokens, or Figma mappings.
|
|
62
|
-
- Do not mark a doc `rich` unless required sections are substantive, especially accessibility for interactive components.
|
|
63
|
-
- Do not claim catalog completeness beyond what the pack registries summarize.
|
|
64
|
-
- If a gap is found, report it to the idia-ui maintainers rather than inventing API or docs.
|
|
65
|
-
|
|
66
|
-
## Registry paths
|
|
67
|
-
|
|
68
|
-
- `.idia/brain/registry/ai-index.generated.json` — enriched output-mode and task-intent doc resolution
|
|
69
|
-
- `.idia/brain/registry/component-registry.generated.json` — per-component metadata and mapping summaries
|
|
70
|
-
- `.idia/brain/registry/ai-index.generated.json` — authored index when generated registry is unavailable
|
|
71
|
-
|
|
72
|
-
## Source docs
|
|
73
|
-
|
|
74
|
-
- `AGENTS.md`
|
|
75
|
-
- `ai/generation-principles.md`
|
|
76
|
-
- `docs/RETRIEVAL-CONTRACT.md`
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ds-brain-overlays
|
|
3
|
-
description: Overlay and modal domain bundle. Choose the lightest blocking surface and layer overlays using z-index contracts.
|
|
4
|
-
generated: true
|
|
5
|
-
sources:
|
|
6
|
-
- ds-brain/foundations/z-index.md
|
|
7
|
-
- ds-brain/patterns/overlay-stack.md
|
|
8
|
-
---
|
|
9
|
-
# ds-brain — Overlays
|
|
10
|
-
|
|
11
|
-
Load for overlay-stack task intent: tooltips, popovers, sheets, dialogs, toasts, and z-index layering.
|
|
12
|
-
|
|
13
|
-
## Operational guidance
|
|
14
|
-
|
|
15
|
-
- Overlay stack is the recipe for **choosing the lightest blocking or floating surface** for a task and **layering overlays predictably** — tooltip hints, popover menus, sheets, dialogs, toasts — without z-index collisions or focus-trap conflicts.
|
|
16
|
-
- Escalation ladder: Tooltip → PopoverWrapper → BottomSheet / SideSheet → Dialog (Modal).
|
|
17
|
-
- Start with the least disruptive surface that fits the task; escalate to modal only for blocking work.
|
|
18
|
-
- Z-index tokens define semantic stacking layers for controls, dropdowns, sticky chrome, modals, toasts, and full-screen overlays. Two sources exist by design: token `zIndex` feeds Tamagui substrate props; theme `Z_INDEX` is the **canonical layering contract for components and AI guidance**.
|
|
19
|
-
- Component layering policy uses `Z_INDEX` from `@idia-ui/theme` — canonical for components and AI guidance.
|
|
20
|
-
- Overlay task-intent components: confirmation-modal, full-page-loader, modal, overlay, picker-sheet, popover-wrapper, toast, tooltip.
|
|
21
|
-
- Overlay foundations: shadows, z-index.
|
|
22
|
-
|
|
23
|
-
## Related decisions
|
|
24
|
-
|
|
25
|
-
- `decisions/action-hierarchy.md` — confirm/dismiss action rows in modals
|
|
26
|
-
|
|
27
|
-
## Source docs
|
|
28
|
-
|
|
29
|
-
- `foundations/z-index.md`
|
|
30
|
-
- `patterns/overlay-stack.md`
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ds-brain-retrieval
|
|
3
|
-
description: Route ds-brain retrieval by output mode and task intent using the ai-index. Load only high-signal docs for the classified axes.
|
|
4
|
-
generated: true
|
|
5
|
-
sources:
|
|
6
|
-
- .idia/brain/registry/ai-index.generated.json
|
|
7
|
-
- ds-brain/docs/RETRIEVAL-CONTRACT.md
|
|
8
|
-
---
|
|
9
|
-
# ds-brain — Retrieval Routing
|
|
10
|
-
|
|
11
|
-
Use after `ds-brain-index` when you need the doc lists for a classified output mode and task intent.
|
|
12
|
-
|
|
13
|
-
## Operational guidance
|
|
14
|
-
|
|
15
|
-
- Classify output mode and task intent independently before retrieving docs.
|
|
16
|
-
- `static-ui-idea`
|
|
17
|
-
- `interactive-prototype`
|
|
18
|
-
- `storybook-docs`
|
|
19
|
-
- `component-implementation`
|
|
20
|
-
- `docs-maintenance`
|
|
21
|
-
- `form`
|
|
22
|
-
- `button-action`
|
|
23
|
-
- `choice-input`
|
|
24
|
-
- `component-docs`
|
|
25
|
-
- Seed output modes: docs-maintenance, interactive-prototype, static-ui-idea, storybook-docs.
|
|
26
|
-
- Seed task intents: button-action, choice-input, component-docs, data-display, data-table, feedback-loading, form, layout, list-selection, loading-states, modal-navigation, navigation, overlay-stack, wizard.
|
|
27
|
-
- Load `outputModes.<mode>.docs` then `taskIntents.<intent>.docs`, components, and foundations from the index.
|
|
28
|
-
- Read `AGENTS.md` — entry routing and output-mode read lists.
|
|
29
|
-
- Read `.idia/brain/registry/ai-index.generated.json` — **required** gate before component/pattern docs.
|
|
30
|
-
- Read `ds-brain-index` skill (`.idia/brain/ai/skills/ds-brain-index/SKILL.md`) — **required** meta router before domain skills and authored component docs.
|
|
31
|
-
- Classify output mode from the ai-index.
|
|
32
|
-
- Classify task intent from the ai-index.
|
|
33
|
-
- Load domain skills as needed (e.g. `ds-brain-forms`, `ds-brain-action-hierarchy`).
|
|
34
|
-
- Load output-mode and task-intent docs resolved by the index — components, foundations, patterns, and decisions only.
|
|
35
|
-
- Load `ds-brain-retrieval` only when output mode or task intent remains ambiguous after index lookup; otherwise skip it.
|
|
36
|
-
- Inspect code only when API or behaviour must be confirmed.
|
|
37
|
-
- 1 output-mode doc
|
|
38
|
-
- 1 generation-principles doc
|
|
39
|
-
- 1 pattern doc
|
|
40
|
-
- 1 to 3 component docs
|
|
41
|
-
- 1 to 3 decision docs
|
|
42
|
-
- 1 to 3 foundation docs
|
|
43
|
-
- Prefer generated index at `.idia/brain/registry/ai-index.generated.json` when present.
|
|
44
|
-
|
|
45
|
-
## Index files
|
|
46
|
-
|
|
47
|
-
- `.idia/brain/registry/ai-index.generated.json` — authored routing config
|
|
48
|
-
- `.idia/brain/registry/ai-index.generated.json` — generated enrichment with `resolvedDocs` and `inventory`
|
|
49
|
-
|
|
50
|
-
## Source docs
|
|
51
|
-
|
|
52
|
-
- `ai/generation-principles.md`
|
|
53
|
-
- `.idia/brain/registry/ai-index.generated.json`
|
|
54
|
-
- `docs/RETRIEVAL-CONTRACT.md`
|