Skip to content

Commit ce7463a

Browse files
authored
docs(openspec): align migrate-content-to-components with the delivered dashboard (#1319)
The change text asked for things the dashboard on main deliberately does differently: one footer on the index page, link rows built from MdNavigationItem, heading fixes in views that already sit on the level scale, and removal of the settings-view and settings-save-bar class hooks. Amend tasks 3.6, 4.3, 4.6, 6.11, 7.3 and 7.9, plus the design, proposal and spec text that state the old rule, so they describe what main does. No task is ticked. Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
1 parent 6756251 commit ce7463a

4 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎openspec/changes/migrate-content-to-components/design.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ inset of 16 pixels, and a state layer from `md-state-layer`. `MdList` draws the
8686
Selection: the catalogue's selectable `MdListItem` takes `selected`, and this change makes it set `aria-current="true"`. A list computes its selected key once, in one computed property,
8787
and passes a boolean per row. The four copies of the test in `PrincipalsPanel` collapse into that one property.
8888

89-
Link rows use `MdNavigationItem` (a router link with the row geometry), so the link, the hover state and the current state are the same
90-
everywhere. Redundant resets (`m-0`, `p-0`, `list-none` on an `ul` that `MdList` already resets) are removed.
89+
Link rows use `MdListItem` with a stretched link, so the link, the hover state and the current state are the same
90+
everywhere. `MdNavigationItem` is the item of the navigation bar and rail and has no row variant, so no row is built from it. Redundant resets (`m-0`, `p-0`, `list-none` on an `ul` that `MdList` already resets) are removed.
9191

9292
`overflow-wrap: anywhere` (`[overflow-wrap:anywhere]`) is replaced by `break-words` on the text element, and only where a value can be
9393
longer than its column. Long identifiers (repository names, token ids) use `break-all` on the identifier element, not on the row.
@@ -222,7 +222,7 @@ replaces a stable name. `docs/gitbook/reference/dashboard-anchors.md` is regener
222222
4. Forms and controls. Native controls, buttons, field variant, scaffolding, wizard parts, renderer helper, `FileUpload` and
223223
`SettingsView` style blocks.
224224
5. Breakpoints and leftovers. The theme change, the literal widths, the arbitrary values, the `!important` overrides, the opacity
225-
fades, the font weights, `StatusLabel`, `StatTile`, `TimeSeriesChart`, the duplicated footer and the icon lookup in `IndexPage`,
225+
fades, the font weights, `StatusLabel`, `StatTile`, `TimeSeriesChart`, the icon lookup in `IndexPage` (its two footers are kept by design),
226226
then the gate baseline.
227227

228228
Each wave is one pull request (resolved 2026-11-18, question 1), merged before the next starts, so that every wave is reviewed against the same main

‎openspec/changes/migrate-content-to-components/proposal.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ No `data-ingot-component` and no `data-ingot-part` is removed or moved off its s
8383
into one, both names stay: the outer element keeps the name of the wrapper, and the inner element keeps the name of the
8484
component it replaces. New names are added to `src/anchors/registry.json` only, and `npm run anchors:doc` regenerates
8585
`docs/gitbook/reference/dashboard-anchors.md` in the same commit. The stable name `settings-view` keeps its registry entry
86-
(it has no element of its own) and loses only the class hook `settings-view` that the style block used.
86+
(it has no element of its own) and keeps the class hook `settings-view`, which `useTreeFits` and the tests read.
8787

8888
### Not BREAKING
8989

‎openspec/changes/migrate-content-to-components/specs/dashboard-content-components/spec.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ of its rows. No other row SHALL carry the attribute.
9393
- **WHEN** the Principals list renders its rows
9494
- **THEN** the selected key is computed once for the list, not once per row
9595

96-
### Requirement: Link rows use the navigation item
96+
### Requirement: Link rows use the list item
9797

98-
A row that links to another page SHALL be drawn by `MdNavigationItem`, so its hover, focus and current states are the same in every
98+
A row that links to another page SHALL be drawn by `MdListItem` with a stretched link, so its hover, focus and current states are the same in every
9999
list of the dashboard.
100100

101101
#### Scenario: Current link row
102102

103103
- **WHEN** the page of a link row is open
104-
- **THEN** the link row is drawn by `MdNavigationItem` and carries `aria-current="page"`
104+
- **THEN** the link row is drawn by `MdListItem` as a link and carries `aria-current="page"`
105105

106106
### Requirement: Key and value pairs and status labels use one component each
107107

@@ -246,7 +246,7 @@ opacity utility in place of a token. Font weight and size SHALL come from the ty
246246
#### Scenario: Settings page without custom rules
247247

248248
- **WHEN** the settings view is rendered with a read-only input
249-
- **THEN** the read-only look is drawn by a shared field rule, and no rule in the view targets `.settings-view`
249+
- **THEN** the read-only look is drawn by a shared field rule, and no `<style>` rule in the view targets `.settings-view` (the class hook itself stays)
250250

251251
#### Scenario: Gate baseline empty
252252

‎openspec/changes/migrate-content-to-components/tasks.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ of each wave. No file under `reposilite-backend/` and no file under `openspec/`
5050
`rounded-corner-` or `p-` on its card root.
5151
- [ ] 3.6 `fix(ui)`: replace the section headers with `MdSection` in `LdapPanel`, `PermissionNodesCard`, `SecurityPanel`,
5252
`CleanupPoliciesPanel`, `IndexPanel`, `StorageUsagePanel`, `DashboardView`, `AnalyticsView`, `SystemInfoView`, `SyncStep`,
53-
`VerifyStep`, `RepositoryOverview`, and fix the heading sizes in `SettingsHub`, `SupportView`, `SsoProvidersPanel`,
54-
`SsoProviderDialog` and `AppearancePreview` to the level scale. `SettingsHub` is excluded if `add-administration-overview` has not merged.
53+
`VerifyStep`, and fix the heading sizes in `SupportView` to the level scale. The hand-built `h1` to `h3` that already sit on the level
54+
scale (`RepositoryOverview`, `SettingsHub`, `SsoProvidersPanel`, `SsoProviderDialog`, `AppearancePreview`) count as done and stay as they are. `SettingsHub` is excluded if `add-administration-overview` has not merged.
5555
Fix `SectionRenderer` (3.3) and the level 4 heading of `RepositoryAccessCard`. Verify: 3.2 and 3.3 pass.
5656
- [ ] 3.7 `docs(gitbook)`: not needed in wave 1 unless a registry name is added; if `md-section` or `md-card` is added to the registry,
5757
run `npm run anchors:doc` and commit `docs/gitbook/reference/dashboard-anchors.md` in the same commit as the registry. Verify:
@@ -69,15 +69,15 @@ of each wave. No file under `reposilite-backend/` and no file under `openspec/`
6969
- [ ] 4.2 `test(ui)`: in `src/components/access/PrincipalsPanel.test.js` and `TeamsPanel.test.js`, assert that exactly one row is selected
7070
for the route, and that the selection is computed once (a spy on the selection function counts one call per render). Verify: it fails
7171
on the four copies.
72-
- [ ] 4.3 `test(ui)`: in `DetailedListEntry.test.js` and `EntryList.test.js`, assert that each link row is an `md-navigation-item` link
73-
with the current state when its route is open. Verify: it fails.
72+
- [ ] 4.3 `test(ui)`: in `DetailedListEntry.test.js` and `EntryList.test.js`, assert that each link row is an `MdListItem` drawn as a link
73+
(stretched link) with `aria-current="page"` when its route is open. Verify: it fails.
7474
- [x] 4.4 `fix(ui)`: set `aria-current` and the 56 and 48 pixel row heights on the catalogue's `MdListItem`, and draw the divider
7575
of `MdList` with `divide-y`. Verify: 4.1 passes.
7676
- [x] 4.5 `fix(ui)`: migrate selectable rows (TeamsPanel, PrincipalsPanel, EntryList, AddMemberDialog) to `MdList` and `MdListItem`,
7777
and compute the selected key once per list. The `MdListDetail` panes of TeamsPanel, PrincipalsPanel and CollectionEditor are already
7878
done by `fix-surface-hierarchy-and-page-header` (its task 4.10). Verify: 4.2 passes.
7979
- [ ] 4.6 `fix(ui)`: migrate link rows (DetailedListEntry, FileList, SettingsAttention, the More panel of `IndexPage`) to
80-
`MdNavigationItem`; migrate divided lists (NodeEditor, NodeInheritedSection, FileUpload, RunHistory, StorageUsagePanel,
80+
`MdListItem` with a stretched link (`MdNavigationItem` is the bar and rail item and has no row variant); migrate divided lists (NodeEditor, NodeInheritedSection, FileUpload, RunHistory, StorageUsagePanel,
8181
RepositoryOverview's divider, TokenList, LegacyGrantsPanel, InstanceStatusPanel, GettingStartedCard, PublicRepositoriesDialog) to
8282
`MdList`; remove the arbitrary `[&>li+li]:after` chain of `FileList`. Verify: 4.3 passes and `grep -rn "li+li" src` finds nothing.
8383
- [x] 4.7 `fix(ui)`: migrate node rows (NodeRow, NodeInheritedSection), renderer rows (ConstantRenderer, UnsupportedRenderer,
@@ -167,7 +167,7 @@ of each wave. No file under `reposilite-backend/` and no file under `openspec/`
167167
`MdColourFieldRenderer`, `OneOfRenderer`, `TagsFieldRenderer`). Verify: the renderer tests pass and `grep -rn "onInput" src/components/renderers`
168168
finds the helper only.
169169
- [ ] 6.11 `fix(ui)`: remove the `<style>` rules of `SettingsView.vue` (read-only inputs and clearance) and move them into the field
170-
primitives and utilities; drop the `settings-view` and `settings-save-bar` class hooks. The `settings-view` anchor stays in the registry.
170+
primitives and utilities; the `settings-view` and `settings-save-bar` class hooks stay, because `useTreeFits` and the tests read them, and the `settings-view` anchor stays in the registry.
171171
Verify: 3.2 for SettingsView passes, the read-only input is still drawn in the Playwright screenshot.
172172
- [x] 6.12 `fix(ui)`: remove the `<style>` rule of `FileUpload.vue` (line 302 of the inventory) after the `vue-upload-component` class is
173173
confirmed in the rendered drop zone by a Playwright snapshot before and after. Verify: the drop zone looks the same in the snapshot.
@@ -183,9 +183,9 @@ of each wave. No file under `reposilite-backend/` and no file under `openspec/`
183183
and that `--breakpoint-*: initial` is declared in `@theme`. Verify: it fails, because the reset is not there yet.
184184
- [x] 7.2 `test(ui)`: in `src/components/md/typescale.test.js`, assert that the font sizes in `src/components/md/typescale.js` equal the
185185
values of `src/styles/md3/typography.css`. Verify: it fails, because the module does not exist.
186-
- [ ] 7.3 `test(ui)`: in `src/pages/IndexPage.test.js`, assert the two footers by design: the footer inside the sheet from 600 pixels
186+
- [ ] 7.3 `test(ui)`: in `src/pages/IndexPage.test.js`, assert the two footers as main draws them: the footer inside the sheet from 600 pixels
187187
(class `hidden medium:block`) and the footer below the page on narrow windows (class `medium:hidden`), so that exactly one of them is
188-
shown at each width; and that the icon lookup returns a value for every entry of the index, with the settings icon as the fallback for
188+
shown at each width. The two footers are kept by design and are not merged into one; and that the icon lookup returns a value for every entry of the index, with the settings icon as the fallback for
189189
the entries of plugin pages. Verify: it fails on a lookup without the fallback.
190190
- [x] 7.4 `test(ui)`: in `src/components/md/MdBadge.test.js` and `StatusLabel`'s test, assert that `StatusLabel` takes a status value of
191191
the closed set and rejects a colour prop. Verify: it fails.

0 commit comments

Comments
 (0)