@flood-md/agent 0.2.12 → 0.2.13
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/DESIGN.md +10 -1
- package/README.md +9 -4
- package/SKILL.md +16 -5
- package/dist/catalog.json +742 -214
- package/dist/materials/component-alert-dialog.md +1 -0
- package/dist/materials/component-app-shell.md +1 -1
- package/dist/materials/component-bar-chart.md +52 -0
- package/dist/materials/component-bar-list.md +41 -0
- package/dist/materials/component-box-plot.md +46 -0
- package/dist/materials/component-bullet-chart.md +43 -0
- package/dist/materials/component-code-snippet.md +3 -1
- package/dist/materials/component-collection-toolbar.md +2 -0
- package/dist/materials/component-command-palette.md +1 -0
- package/dist/materials/component-copy-button.md +2 -0
- package/dist/materials/component-dialog.md +2 -0
- package/dist/materials/component-donut-chart.md +46 -0
- package/dist/materials/component-drawer.md +2 -0
- package/dist/materials/component-dumbbell-chart.md +46 -0
- package/dist/materials/component-heatmap.md +45 -0
- package/dist/materials/component-histogram.md +46 -0
- package/dist/materials/component-image-preview.md +1 -0
- package/dist/materials/component-line-chart.md +50 -0
- package/dist/materials/component-menu.md +2 -0
- package/dist/materials/component-range-chart.md +46 -0
- package/dist/materials/component-scatter-chart.md +48 -0
- package/dist/materials/component-sheet.md +1 -0
- package/dist/materials/component-table.md +1 -1
- package/dist/materials/component-waterfall-chart.md +47 -0
- package/dist/materials/guide-agent-knowledge.md +5 -5
- package/dist/materials/guide-agents.md +35 -2
- package/dist/materials/guide-charts.md +34 -0
- package/dist/materials/guide-foundations.md +2 -2
- package/dist/materials/guide-installation.md +6 -6
- package/dist/materials/guide-introduction.md +2 -1
- package/dist/materials/guide-motion.md +12 -0
- package/dist/materials/guide-skills.md +10 -0
- package/dist/materials/recipe-collection-views.md +3 -0
- package/dist/materials/recipe-navigation-workspace.md +3 -0
- package/dist/materials/recipe-record-management.md +92 -58
- package/knowledge.json +16 -0
- package/lib/inspect.d.ts +14 -2
- package/lib/inspect.mjs +63 -9
- package/manifest.json +11 -1
- package/package.json +1 -1
- package/references/component-families.md +10 -0
- package/references/flood-composition/SKILL.md +7 -0
- package/references/flood-data-display/SKILL.md +85 -0
- package/references/flood-forms/SKILL.md +5 -0
- package/references/flood-overlays/SKILL.md +5 -0
- package/references/flood-records/SKILL.md +13 -4
- package/references/flood-screen-composition/SKILL.md +48 -0
- package/references/flood-verification/SKILL.md +32 -0
- package/references/flood-visual-review/SKILL.md +59 -0
- package/references/rendered-review.md +49 -3
- package/references/routing.md +2 -1
- package/rules.json +34 -2
- package/workflows.json +22 -0
package/DESIGN.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Flood design system · 0.2.
|
|
1
|
+
# Flood design system · 0.2.13
|
|
2
2
|
|
|
3
3
|
ListBox owns native required validation for accepted selection. Use its
|
|
4
4
|
description/message/status props rather than duplicating feedback markup. Visual
|
|
@@ -156,6 +156,10 @@ supplementary APCA guidance. Do not apply text thresholds to decorative lines or
|
|
|
156
156
|
claim full WCAG/APCA certification from a color-pair calculation. Small helper
|
|
157
157
|
text is supporting content, not the sole presentation of required instructions.
|
|
158
158
|
|
|
159
|
+
For a full-window application with changing content, use AppShell's content
|
|
160
|
+
scroll mode. Choose `scrollContentInset="none"` when the workspace already has
|
|
161
|
+
clearance for the overlay rail. Use page scrolling for documents.
|
|
162
|
+
|
|
159
163
|
## Verify
|
|
160
164
|
|
|
161
165
|
Check keyboard, labels, focus/invalid combinations, required fields, native form
|
|
@@ -163,6 +167,11 @@ submission, loading/disabled/readonly, root scaling, text-spacing overrides,
|
|
|
163
167
|
narrow screens, long content, forced colors and reduced motion. Keep application
|
|
164
168
|
data and side effects in the host project. Flood owns UI only.
|
|
165
169
|
|
|
170
|
+
For a visible change, use `.agents/skills/flood-ui/references/flood-visual-review/SKILL.md`
|
|
171
|
+
from the project root. Exercise the affected states in the running UI, inspect
|
|
172
|
+
the screenshots and compare the same state after a fix. Record which state,
|
|
173
|
+
viewport and browser the evidence covers.
|
|
174
|
+
|
|
166
175
|
Read flood.json and use the matching CLI when running doctor. Doctor checks
|
|
167
176
|
versions/instruction files, not CSS imports or completed UI behavior. Do not
|
|
168
177
|
overwrite host instructions or fabricate installation/publication success.
|
package/README.md
CHANGED
|
@@ -15,6 +15,9 @@ The same optional entry exports inspectSourceUI for bounded text observations
|
|
|
15
15
|
of host-owned JSX/CSS. It suggests owner review for native dialogs/controls and
|
|
16
16
|
custom layouts without reading files or executing source. Text matches can be
|
|
17
17
|
false positives or miss indirect code; see the rendered-review reference.
|
|
18
|
+
For full-window AppShell routes, `assertWorkspaceScroll` fails a browser test
|
|
19
|
+
when the document scrolls or the workspace loses its Flood scroll viewport.
|
|
20
|
+
See the [Playwright example](references/rendered-review.md#require-workspace-scroll-in-browser-tests).
|
|
18
21
|
|
|
19
22
|
The package also exposes a Node-only, read-only knowledge API with TypeScript
|
|
20
23
|
declarations. No model provider, network service or MCP runtime is required.
|
|
@@ -36,10 +39,12 @@ the website. Do not hand-edit generated hashes or duplicate component contracts.
|
|
|
36
39
|
See [Agent knowledge](../../docs/agent-knowledge.md) for groups, capabilities,
|
|
37
40
|
prerequisites, read budgets, compatibility and customization behavior.
|
|
38
41
|
|
|
39
|
-
The source bundle
|
|
40
|
-
composition,
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
The source bundle includes routed workflows for the existing dark base, including
|
|
43
|
+
screen composition, component composition, hierarchy, spacing, motion,
|
|
44
|
+
foundations, accessibility, forms, overlays, navigation, data display, records,
|
|
45
|
+
feedback, interface content, visual review and verification. The lightweight
|
|
46
|
+
flood-ui entry selects relevant skills; nested folders do not imply independent
|
|
47
|
+
automatic discovery.
|
|
43
48
|
workflows.json describes applicability. rules.json describes observable checks;
|
|
44
49
|
neither is a completed component-audit report or executable enforcement engine.
|
|
45
50
|
|
package/SKILL.md
CHANGED
|
@@ -23,6 +23,11 @@ invented as a package API. No external component library or parallel token syste
|
|
|
23
23
|
|
|
24
24
|
## Read only the relevant reference
|
|
25
25
|
|
|
26
|
+
Use the requested task to choose the workflow. A critique produces prioritized
|
|
27
|
+
findings. An implementation or fix includes the affected states and browser
|
|
28
|
+
evidence for visible changes. A copy pass checks wording in context. When
|
|
29
|
+
stabilizing a shared component, check the same contract in another consumer.
|
|
30
|
+
|
|
26
31
|
Before composing a screen, write a short task trace in the development notes:
|
|
27
32
|
what the user arrives with, the next meaningful action, what changes when it
|
|
28
33
|
succeeds, and how the user recovers if it fails. Name which inputs, filters,
|
|
@@ -43,15 +48,19 @@ Before delivery, review the actual screen against those choices and the content
|
|
|
43
48
|
workflow. Optional subtitle, description and hint slots start empty; fill one
|
|
44
49
|
only for information the user needs beyond the title or control itself.
|
|
45
50
|
|
|
46
|
-
For a new screen or
|
|
51
|
+
For a new screen or an unclear page structure, choose the reading order and task
|
|
52
|
+
regions with the screen-composition workflow. For a new screen or composed
|
|
53
|
+
form, read the hierarchy workflow to choose visual
|
|
47
54
|
roles, shared tracks and relationship spacing. For a composed form, also read the forms workflow's grouping section; independent
|
|
48
55
|
per-row grids do not establish a coherent hierarchy. For icon-bearing controls,
|
|
49
|
-
use the foundations workflow.
|
|
50
|
-
[rendered review observer](references/rendered-review.md) and review its findings.
|
|
51
|
-
It cannot replace the separate copy and grouping decisions.
|
|
56
|
+
use the foundations workflow.
|
|
52
57
|
For record lists or details, read the records workflow before assigning metadata
|
|
53
58
|
to slots. Record each field's recognition/comparison/action purpose and list/detail
|
|
54
59
|
placement outside the interface; an available slot is not a reason to fill it.
|
|
60
|
+
For full-window workspaces, use AppShell content scrolling. Add the
|
|
61
|
+
[workspace scroll assertion](references/rendered-review.md#require-workspace-scroll-in-browser-tests)
|
|
62
|
+
to the host's browser tests and run it with overflowing and filtered content
|
|
63
|
+
before reporting completion.
|
|
55
64
|
For save, upload or other fallible operations, read the feedback workflow too:
|
|
56
65
|
message lifetime belongs to the operation/record, not merely the page's Alert.
|
|
57
66
|
|
|
@@ -59,7 +68,8 @@ message lifetime belongs to the operation/record, not merely the page's Alert.
|
|
|
59
68
|
| --- | --- | --- |
|
|
60
69
|
| Introducing or editing interface copy, labels, hierarchy or adapting a reference | [Interface content skill](references/flood-interface-content/SKILL.md) | Necessary, accurate content with a clear job; no invented capabilities or redundant narration |
|
|
61
70
|
| Component, composite, website or playground UI | [Composition skill](references/flood-composition/SKILL.md) | Reused primitives; missing small capabilities implemented before composites |
|
|
62
|
-
| New screen,
|
|
71
|
+
| New screen, hard-to-scan page or unclear next action | [Screen composition skill](references/flood-screen-composition/SKILL.md) | Task-led layout, meaningful reading order and reachable actions |
|
|
72
|
+
| Implementing a screen layout or form | [Composition](references/composition.md) | Existing primitives, correct host width and form ownership |
|
|
63
73
|
| Task/group/field hierarchy, flat forms or inconsistent row tracks | [Hierarchy skill](references/flood-hierarchy/SKILL.md) | Distinct roles, shared control edges and deliberate vertical rhythm |
|
|
64
74
|
| Spacing, density, nested geometry or shifting previews | [Spacing skill](references/flood-spacing/SKILL.md) | Measured visual relationships and nonoverlapping interactive areas |
|
|
65
75
|
| Animation, transitions or reduced motion | [Motion skill](references/flood-motion/SKILL.md) | Motion roles, immediate semantics and reduced-motion behavior |
|
|
@@ -72,6 +82,7 @@ message lifetime belongs to the operation/record, not merely the page's Alert.
|
|
|
72
82
|
| Tables, lists, cards, files and long content | [Data display skill](references/flood-data-display/SKILL.md) | Meaningful structures and reachable overflow |
|
|
73
83
|
| Status, progress, alerts, loading or empty content | [Feedback skill](references/flood-feedback/SKILL.md) | Honest operation state with one announcement owner |
|
|
74
84
|
| Brand or deliberate semantic overrides | [Customization](references/customization.md) | Scoped semantic overrides; unchanged behavior |
|
|
85
|
+
| Visible UI change, screenshot feedback or visual bug | [Visual review skill](references/flood-visual-review/SKILL.md) | Browser interaction, inspected screenshots and a matched recheck after fixes |
|
|
75
86
|
| Completion, stabilization or regression review | [Verification skill](references/flood-verification/SKILL.md) | Checks and limits reported against the actual host |
|
|
76
87
|
| Decide which document governs a change | [Routing and sources](references/routing.md) | Source of truth and prerequisites identified |
|
|
77
88
|
|