@valiify/dashboard-ui 0.6.0 → 0.7.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +223 -0
  2. package/COMPONENTS.md +409 -42
  3. package/README.md +3 -3
  4. package/class-manifest.json +78 -2
  5. package/dist/dashboard-ui.css +778 -97
  6. package/dist/index.css +778 -97
  7. package/package.json +7 -7
  8. package/src/components/add-funds-form.css +2 -1
  9. package/src/components/button.css +29 -11
  10. package/src/components/checklist-group.css +5 -4
  11. package/src/components/content-row.css +29 -4
  12. package/src/components/data-list.css +91 -0
  13. package/src/components/data-row.css +14 -1
  14. package/src/components/dropdown-menu.css +6 -2
  15. package/src/components/field-verification.css +6 -1
  16. package/src/components/final-decision.css +51 -0
  17. package/src/components/finding-card.css +56 -16
  18. package/src/components/finding-option.css +10 -4
  19. package/src/components/funding-total.css +2 -1
  20. package/src/components/funding-transaction.css +8 -3
  21. package/src/components/index.css +7 -0
  22. package/src/components/keycap.css +1 -1
  23. package/src/components/menu-item.css +28 -10
  24. package/src/components/modal.css +19 -0
  25. package/src/components/navigation-rail.css +124 -4
  26. package/src/components/owner-row.css +170 -0
  27. package/src/components/owner-table-header.css +28 -13
  28. package/src/components/panel-section-header.css +5 -2
  29. package/src/components/radio-select.css +5 -2
  30. package/src/components/record.css +56 -0
  31. package/src/components/scoring-details.css +79 -0
  32. package/src/components/section-edit.css +109 -0
  33. package/src/components/severity-count.css +13 -0
  34. package/src/components/step.css +1 -1
  35. package/src/components/summary-panel.css +250 -0
  36. package/src/components/summary-preview.css +5 -1
  37. package/src/components/tabs.css +3 -2
  38. package/src/components/tag.css +4 -2
  39. package/src/components/toast.css +1 -1
  40. package/src/themes/valiify-tokens.css +1 -1
  41. package/src/themes/valiify.css +1 -1
  42. package/types/components.d.ts +98 -4
package/CHANGELOG.md CHANGED
@@ -36,6 +36,229 @@ whole point of tokens. Changing its _name_ is.
36
36
  When a rename is genuinely needed, ship the new name alongside the old one, note
37
37
  the deprecation here, and remove the old name in a later release.
38
38
 
39
+ ## 0.7.0 — unreleased
40
+
41
+ What building the Application page on 0.6.0 found: four bugs fixed, fourteen
42
+ places a component differed from the page frames worked through, and seven new
43
+ components — 77 in all. Not published. Five existing components look or measure
44
+ differently; they are under **Breaking**, and they are why this is 0.7.0 and
45
+ not a 0.6.1 patch.
46
+
47
+ ### Breaking
48
+
49
+ - **RadioSelect is 22px tall; it was 18.** Figma's Radio frame is 2 + 18 + 2,
50
+ and the row now carries those 2px (`py-0.5`). A stack of radios is 4px taller
51
+ per row. FindingOption is still 40px: its box and the radio are one element,
52
+ so it keeps 10px of padding on a selector that outranks RadioSelect's.
53
+ - **A selected MenuItem is marked by its check alone.** Through 0.6.0 a row
54
+ with `aria-selected="true"` or `aria-checked="true"` turned `Primary/Main`
55
+ whole. Figma's set has no selected state, and its menus mark the selected row
56
+ with a `Primary/Main` check on an ordinary row, so:
57
+ - the row keeps its normal ink;
58
+ - `.vd-menu-item-check` is `Primary/Main` by itself (it inherited the row's
59
+ colour before);
60
+ - **a selected row with no check now shows nothing.** Add
61
+ `<svg class="vd-menu-item-check vd-icon vd-icon-size-14">` to it. A bare
62
+ `#check` icon without the class still shows, in the row's ink.
63
+ - `.vd-menu-item-right-text` is `Content/Primary` (was `Primary/Main`).
64
+ - **ContentRow's text wraps.** It truncated to one line; Figma's text layer has
65
+ no truncation and the Application page's BSA summary runs to two. A row with
66
+ a long summary is now 64px, not 48.
67
+ - **OwnerTableHeader is redrawn: a flexible Owner column, then three 78⅔px
68
+ status columns, then 36px of right padding.** It had a fixed 536px first
69
+ cell and three of 94px with 16px gaps — 874px of columns, which ran 46px past
70
+ the Application page's 828px row. Now the Owner label takes the free width,
71
+ the status labels are equal thirds of a fixed 236px, and the right padding
72
+ covers the rows' chevron slot, so a label starts where its column does. In an
73
+ 828px row the labels move from x 556 / 666 / 776 to 556 / 634⅔ / 713⅓.
74
+ `.vd-owner-table-header-cell-main` still exists and no longer sets a width.
75
+ - **PanelSectionHeader's closed chevron turns 180°, not −90°.** The glyph Figma
76
+ nests is `#chevron-up`, and the documented snippet now uses it. Markup that
77
+ kept the 0.6.0 snippet's `#chevron-down` points up when closed and down when
78
+ open: swap the glyph.
79
+
80
+ ### Changed — a token value
81
+
82
+ - **Light `Content/Tertiary` is `#6a6a78`; it was `#727280`.** Figma darkened it
83
+ on 2026-11-19. The name is unchanged (`--color-content-tertiary`,
84
+ `text-content-tertiary`), so nothing breaks; every label, placeholder and
85
+ meta line that uses it is a little darker in Light. Onyx is unchanged. It now
86
+ passes 4.5:1 at rest on all four surfaces (5.32 Paper, 5.10 Card, 4.72
87
+ Neutral, 4.78 Frame; it was 4.20 and 4.26 on the last two), which was the
88
+ pair behind most of the Light accessibility findings.
89
+ - **Two 0.6.0 workarounds are reverted to what Figma binds**, because they pass
90
+ again: the meta line in ChecklistGroup's sign-off record and in FindingCard's
91
+ decision box is `Content/Tertiary` (it shipped `Content/Secondary`).
92
+ - **Three stay**, because the token still falls under 4.5 on an interaction
93
+ fill over `Surface/Frame`: chip and segment tabs' rest ink, the Tag count, and
94
+ MenuItem's subtitle and meta (4.37 on a hovered critical row in Onyx).
95
+
96
+ ### Fixed
97
+
98
+ - **A closed `<dialog class="vd-modal">` was visible.** `.vd-modal` sets
99
+ `display: flex`, which outranks the browser's `dialog:not([open])` rule, so
100
+ the dialog rendered on the page at 480×90 before it was opened.
101
+ `dialog.vd-modal:not([open])` is now `display: none`.
102
+ - **An open Modal dialog sat in the top-left corner on `.` and `./source`.**
103
+ Preflight zeroes the dialog's `margin: auto`. `dialog.vd-modal` restores it.
104
+ (`./styles.css` with `./reset.css` was already right; `verify:reset`'s one
105
+ known divergence was this and is gone.)
106
+ - **DropdownMenu did not stretch a wrapper inside it.** The panel was
107
+ `items-start`, so a `role="listbox"` group or a submenu anchor hugged its
108
+ rows: the Assign recipe's check sat beside the name and hover fills stopped
109
+ short. The panel is `items-stretch`.
110
+ - **A long nav session status squeezed its dot and never truncated.**
111
+ `.vd-nav-session-status` was a flex row, which cannot ellipsize its own text.
112
+ It is a block that truncates, with the dot inline before the text.
113
+ - **OwnerTableHeader's documented roles failed axe.** `role="row"` and
114
+ `columnheader` need a `role="table"` parent; the snippets now have one.
115
+ - **Compact FieldVerification labels gave the page phantom scroll height.** The
116
+ visually hidden label is absolutely positioned and had no positioned ancestor
117
+ nearer than the page shell, so in a long scrolling record every one of them
118
+ sat in the shell's overflow (2,503px in a 1,080px shell on the Application
119
+ page) and `scrollIntoView` scrolled the whole app.
120
+ `.vd-field-verification-compact` is `position: relative`, as are the
121
+ Navigation Rail parts that hide text when collapsed.
122
+
123
+ ### Added — components
124
+
125
+ - **OwnerRow** — one owner in the Ownership list: a square Avatar or an entity
126
+ tile, name and role, a status per check, and a chevron that expands the row.
127
+ 64px. The three status columns are equal thirds of a fixed 236px, the chevron
128
+ has its own slot 14px after them, and the owner column takes what is left —
129
+ the same columns as OwnerTableHeader. In the Application page's 828px row the
130
+ first status sits on the record's own status column (x 556). `.vd-owner-row-linked` marks the owner
131
+ a finding points at. The chevron is its only control: ownership is edited
132
+ from the Ownership section's line, not per owner (decided 2026-11-19; the
133
+ Figma sets were redrawn to match the same day).
134
+ - **`.vd-severity-count-flush`** — a SeverityCount with no left padding, for a
135
+ count in a row's status column, so its marker starts at the column's edge
136
+ (the page frames' instance override). Used in ContentRow's status slot and
137
+ OwnerRow's status cells. `.vd-content-row-status` is a flex box now, so a
138
+ wrapper holding the count keeps the row at 48px (it came out 50.5).
139
+ - **Record** — `.vd-record`, the column grid a record's rows share. Inside one
140
+ the 536px text column gives way on a narrow page (status column first, to
141
+ 88px) and every row's status stays in line. ContentRow, DataRow,
142
+ FundingTransaction and FundingTotal read it. (The owner list does not: it
143
+ keeps its status columns fixed and flexes the owner column.)
144
+ Outside one nothing changes.
145
+ - **DataList** — the fields under an expanded row, with a header (a title and
146
+ one action, 32px) and a group heading (a glyph and a title, 36px).
147
+ - **SectionEdit** — a record section in edit mode: the bordered box, named
148
+ groups of fields, and a footer with the reason, a note, Cancel and Save. It
149
+ replaces the 0.6.0 recipe, which had no box.
150
+ - **FinalDecision** — the last line of the checklist: what unlocks the
151
+ decision. 52px.
152
+ - **SummaryPanel** — the body of the panel's Summary tab: label / value rows
153
+ (one of which can be a control), tags, a risk score with a segmented bar, a
154
+ summary of open findings, products.
155
+ - **ScoringDetails** — the rules behind a risk score, behind a disclosure.
156
+
157
+ ### Changed — FindingCard follows Figma's update
158
+
159
+ Figma's Finding Card now nests real components for its fields (it drew raw
160
+ frames), and the library's parts and snippets follow:
161
+
162
+ - **Requesting**: Document and From are two small DropdownFields with their own
163
+ labels, side by side 8px apart, in the new `.vd-finding-card-fields`. The
164
+ 0.6.0 snippet had one large select under a `.vd-finding-card-field-label`;
165
+ that class still works and is no longer part of the design.
166
+ - **The note** is a small Textarea with the new `.vd-finding-card-note`, which
167
+ holds it at 80px (`--height-textarea-sm`) and makes the `<textarea>` fill it.
168
+ - **Choosing** shows the same note, "Add a note (required)".
169
+ - The card is 298px choosing and 352px requesting: Figma's 296 and 350 plus the
170
+ 2px of a real border. FindingOption rows are 40px, 6px apart, as before.
171
+
172
+ ### Added — to existing components
173
+
174
+ - **Button**: `aria-disabled="true"` is styled as `:disabled` on every
175
+ display, for an action that is unavailable but must stay focusable.
176
+ `.vd-btn-blocked` is the neutral "cannot run yet" look.
177
+ - **MenuItem**: a row whose submenu is open (`aria-expanded="true"`) keeps the
178
+ hover fill, and `:active` takes it too.
179
+ - **ContentRow**: `.vd-content-row-linked`; an expanded row keeps its hover
180
+ actions visible.
181
+ - **DataRow**: `.vd-data-row-previous`, the value a field held before an edit.
182
+ - **NavigationRail**: `.vd-nav-section-header` and `-action` (a group label
183
+ with an action at its far end); `aria-current` on a `.vd-nav-session` (the
184
+ open session); `.vd-nav-user-collapsed` (the account control in the 60px
185
+ rail); `.vd-nav-rail-sidebar` and `.vd-nav-rail-actions` (the Nav Sidebar
186
+ set's spacing: 8px above each group instead of 20px between them).
187
+ - **SummaryPreview**: `--vd-summary-preview-width` (140px by default).
188
+
189
+ ### Changed
190
+
191
+ - **FundingTransaction**: the amount is right-aligned and the 78px action
192
+ group packs to the row's right edge, as Figma sets both.
193
+ - **FindingCard** footer and **AddFundsForm** actions are right-aligned.
194
+ - **Field widths read `--vd-record-text`**: ContentRow's text, DataRow's value,
195
+ FundingTransaction's and FundingTotal's summary. Their default is the same
196
+ 536px (320 for DataRow's value).
197
+
198
+ ### Differs from Figma
199
+
200
+ Each has a designer-list entry (items 96 to 111).
201
+
202
+ - **OwnerRow and OwnerTableHeader follow the redrawn sets** (item 100): no
203
+ difference in the columns, the chevron slot, the square Avatar or the flush
204
+ Severity Count. The owner list stays off the Record grid by decision: at a
205
+ narrow width it keeps its own columns under its own header.
206
+ - **The open nav session's status is `Content/Secondary`**; Figma keeps
207
+ `Content/Tertiary`, 4.10:1 on the selected fill even with the new token
208
+ (item 104).
209
+ - **FindingCard's note keeps Textarea's own padding** (8 / 2); Figma's Text
210
+ Area set now draws 12 / 10 and fixed heights at every size, which the
211
+ library's Textarea has not taken — a future decision, since it would resize
212
+ every Textarea (item 110). The card's button is Button md, which is correct.
213
+ - **`Content/Tertiary` stays `#6a6a78`, and four components keep
214
+ `Content/Secondary` where it would fall under 4.5:1 on a hover or selected
215
+ fill**: the open nav session's status, chip and segment tabs, the Tag count
216
+ and MenuItem's subtitle (item 111, closed as decided).
217
+ - **Library decisions where Figma draws nothing**: Linked on ContentRow and
218
+ OwnerRow (98), how a record's columns give way (99), the blocked Button as a
219
+ class (96), the ScoringDetails glyph and its turn (101), hover and focus on
220
+ the Nav Section Header action and the SummaryPanel assignee row.
221
+ - **Raw type shipped as the nearest style** in SectionEdit (102), and one
222
+ section-title style in SummaryPanel where Figma binds two (103).
223
+
224
+ ### Development dependencies (nothing in the published package changes)
225
+
226
+ - **Storybook 10.5.10 → 10.6.7** (`storybook` and the four `@storybook/*`
227
+ packages together) and **Vite 8.2.2 → 8.3.8**, from `npm audit fix` without
228
+ `--force`. That clears the critical Storybook advisories (GHSA-f2ph-cmg5-wxc8,
229
+ GHSA-px85-f4q5-jh77) and the high Vite ones.
230
+ - **Chromatic CLI 18.7.2 → 18.15.1** and **`chromaui/action` v13 → v18** in
231
+ `.github/workflows/chromatic.yml`. The action now runs on Node 24 (v13 was
232
+ Node 20); every input the workflow passes still exists.
233
+ - `npm audit fix` in `examples/daisyui-starter` and `examples/sveltekit-starter`
234
+ (lockfiles only).
235
+ - **Not forced in 0.7.0** (decided 2026-11-19): the three advisories whose
236
+ fix is `npm audit fix --force`. They are listed under **Follow-ups** below.
237
+
238
+ ### Follow-ups — audit fixes that need a major upgrade
239
+
240
+ None of these is in the published package; all three are development or
241
+ example-host dependencies. Each is a breaking upgrade of its own, to do and
242
+ verify separately:
243
+
244
+ 1. **`@storybook/addon-mcp` 0.7.0 → 10.6.7** (root). Clears three moderate
245
+ `valibot` advisories (GHSA-5qjj-4xww-7phc, through `@storybook/mcp`). The
246
+ new line adds a peer on `@storybook/addon-vitest`.
247
+ 2. **Vite 5 → 8 in `examples/daisyui-starter`.** Clears `vite` (high) and
248
+ `esbuild` (moderate). The example pins Tailwind 3 and daisyUI 4 on purpose;
249
+ re-run its 54 checks after the move.
250
+ 3. **SvelteKit 2 → 3 in `examples/sveltekit-starter`.** Clears `@sveltejs/kit`
251
+ (high) and `cookie` (low). Re-run its 6 checks, including the documented
252
+ scoped-style loss.
253
+
254
+ ### Not in 0.7.0
255
+
256
+ - SummaryPanel does not include the Summary symbol's own tab row, its collapsed
257
+ strip or its "Review Checklist" bar (the legacy Checklist).
258
+ - Still not shipped from 0.6.0's list: Empty State, the real Card, Cell,
259
+ Selectable row, Checkbox container, Small nav, Section Marker warning /
260
+ failed.
261
+
39
262
  ## 0.6.0 — unreleased
40
263
 
41
264
  Brings the library up to the Figma file as of 2026-11-19: the Onyx theme, 60