Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
200 commits
Select commit Hold shift + click to select a range
47d76f5
UI kit 6d: sign-in and account pages on the kit (#461)
silverbackdan Nov 18, 2026
534f52b
Changelog for UI kit 6d (#471, #461)
silverbackdan Nov 18, 2026
9717884
UI kit 6d review: reset password field errors announced and focused, …
silverbackdan Nov 18, 2026
5cc047c
Changelog for the UI kit 6d review (#471, #461)
silverbackdan Nov 18, 2026
938fe16
Merge feat/236-kit-6a-dialog review fixes into feat/236-kit-6d-auth
silverbackdan Nov 18, 2026
7aa0dd6
Budgets for UI kit 6d on the 6a review: entry 164609, visitor 185640 …
silverbackdan Nov 18, 2026
09e3fcd
UI kit 6d review: the focused success alert and the auth links draw t…
silverbackdan Nov 18, 2026
8af12eb
Budgets and changelog for the UI kit 6d review: entry 164620, visitor…
silverbackdan Nov 18, 2026
57a113e
Resource stack on phones: a long touch press is a right-click, and be…
silverbackdan Nov 18, 2026
190fcab
Confirms on the kit: the resource manager's delete and discard, the l…
silverbackdan Nov 18, 2026
a9a9ac2
ClonePlacementMenu on the kit menu: a reka dropdown menu anchored at …
silverbackdan Nov 18, 2026
f17cb75
UI kit 7d: the page dialog's header edge says the page type or page d…
silverbackdan Nov 18, 2026
55c7958
UI kit 7d: Public without a route moves from Details to the Routes ta…
silverbackdan Nov 18, 2026
d05f089
UI kit 7d: moving to another page of an admin list scrolls back to th…
silverbackdan Nov 18, 2026
7eb31a6
UI kit 7d: the route recommendation says which page title it is based…
silverbackdan Nov 18, 2026
9abebaf
In-page editing: CwaUiInlineEdit edits text on the page, CwaUiInlineH…
silverbackdan Nov 18, 2026
ccd7529
UI kit 7d: deleting a layout names the other admins editing it again …
silverbackdan Nov 18, 2026
7f2139e
UI kit 7d: the Redirect to search sends the legacy path filter beside…
silverbackdan Nov 18, 2026
931a712
UI kit 7d: the add component dialog's Field says Loading… while a dat…
silverbackdan Nov 18, 2026
623d25c
The rest of the admin on the kit: the header's Edit/Done, page settin…
silverbackdan Nov 18, 2026
ce897fa
Preview: merge 7b in-page editing (WIP)
silverbackdan Nov 18, 2026
e896237
Preview: merge 7d modal parity (WIP)
silverbackdan Nov 18, 2026
29ddf2e
Kit workbench: remembered settings for theme, touch, width and reduce…
silverbackdan Nov 18, 2026
32ddbbf
SelectOption comes from cwa-select now that cwa-select-input is gone;…
silverbackdan Nov 18, 2026
b79b4c8
Changelog for UI kit 7c (#481, #461)
silverbackdan Nov 18, 2026
114fdee
Preview: merge 7c rest of the admin on the kit (WIP)
silverbackdan Nov 18, 2026
dad4539
UI kit 7d: the page type is a Static/Dynamic select in the dialog hea…
silverbackdan Nov 18, 2026
2bcfb79
Changelog and CLAUDE.md for UI kit 7d (#482, #461)
silverbackdan Nov 18, 2026
e36ced8
Kit workbench: sticky toolbar with theme, width frame, touch, reduced…
silverbackdan Nov 18, 2026
8e3e056
CwaUiLinkPopover: link editing for rich text (a page from the routes,…
silverbackdan Nov 18, 2026
1aff65b
CwaUiImageAlt (an image field with its alt text in a popover from an …
silverbackdan Nov 18, 2026
f54caa1
UI kit 7d: entry budget 164716 B and visitor preload budget 185420 B …
silverbackdan Nov 18, 2026
bc033e3
Kit workbench: field states simulation, every field type in one force…
silverbackdan Nov 18, 2026
69a14fc
Kit fixes: a Toggle's label sits in the field's lead, so a peer's pre…
silverbackdan Nov 18, 2026
f8136c6
Preview: specs follow the solid edit placeholder and the unused mediu…
silverbackdan Nov 18, 2026
2f5fff7
CwaUiDayRangePicker: a first and last day on the kit range calendar, …
silverbackdan Nov 18, 2026
b69cf2c
Kit workbench: Kit and In practice tabs (?tab=practice), and the fail…
silverbackdan Nov 18, 2026
8a22161
Preview: merge latest 7b-inline
silverbackdan Nov 18, 2026
0043ae3
Preview: merge latest 7c-old-ui
silverbackdan Nov 18, 2026
44c73cf
Preview: merge latest 7d-modal-parity
silverbackdan Nov 18, 2026
4a86c3b
Preview: merge latest 7e-kit-workbench
silverbackdan Nov 18, 2026
07857ba
Preview: merge latest 6d-auth
silverbackdan Nov 18, 2026
7a5d059
Kit workbench: search menu and list simulations with the shared loadi…
silverbackdan Nov 18, 2026
506e145
Kit workbench: dialogs simulation, page kinds, adding or editing, and…
silverbackdan Nov 18, 2026
61927fa
Kit page: DayRangePicker, ImageAlt and ImageSlots with the fields, an…
silverbackdan Nov 18, 2026
b3895dc
The Order tab's Move up, Move down and position work without Enable r…
silverbackdan Nov 18, 2026
34863e1
Preview: merge latest 7e-kit-workbench
silverbackdan Nov 18, 2026
7da04f7
A kit field shows a conflict's values through its own format (a date …
silverbackdan Nov 18, 2026
561c266
Changelog and CLAUDE.md for UI kit 7b (#479, #461)
silverbackdan Nov 18, 2026
af20f1b
Kit workbench: resource stack and toast simulations; sim controls scr…
silverbackdan Nov 18, 2026
d9cfd0e
The kit tokens spec no longer expects --cwa-color-medium: its last us…
silverbackdan Nov 18, 2026
0bba367
Preview: merge latest 7c-old-ui
silverbackdan Nov 18, 2026
10a99fc
Preview: merge latest 7b-inline
silverbackdan Nov 18, 2026
5147314
Preview: merge latest 7e-kit-workbench
silverbackdan Nov 18, 2026
9f45b52
Changelog: resolve the conflict markers inherited from the base, keep…
silverbackdan Nov 18, 2026
0f22b08
UI kit 7d: a long depth chain scrolls sideways under the dialog heade…
silverbackdan Nov 18, 2026
6f0bc19
The outdated notice is visitor-facing, so its Update uses the kit's b…
silverbackdan Nov 18, 2026
511fae3
Kit workbench: In practice tab, the real admin header, manager bar an…
silverbackdan Nov 18, 2026
cec38c4
Deleting a component used in several places asks with Don't delete an…
silverbackdan Nov 18, 2026
0652222
Preview: FormGroup's form-error test sets the error through failNext,…
silverbackdan Nov 18, 2026
2c550fe
Preview: merge latest 7b-inline
silverbackdan Nov 18, 2026
7eea40c
Preview: merge latest 7c-old-ui
silverbackdan Nov 18, 2026
3249ab5
Preview: merge latest 7d-modal-parity
silverbackdan Nov 18, 2026
483ccb2
Preview: merge latest 7e-kit-workbench
silverbackdan Nov 18, 2026
ae0b58a
Kit: information popovers on a dark surface with white text (#461)
silverbackdan Nov 18, 2026
1655db3
UI kit 7d: the lists' Status column fits an Inherited scheduled badge…
silverbackdan Nov 18, 2026
8e90c60
FormGroup spec: raise the form error through the fake form's next Sav…
silverbackdan Nov 18, 2026
c10d949
Preview: merge latest 7d-modal-parity
silverbackdan Nov 18, 2026
015dd39
Preview: merge latest 7e-kit-workbench
silverbackdan Nov 18, 2026
8ab0616
Preview: merge latest 7f-polish
silverbackdan Nov 18, 2026
88d13fd
Kit: muted secondary links on the auth pages; playground drops the de…
silverbackdan Nov 18, 2026
2175a00
Preview: recompile cwa.css for the merged sources
silverbackdan Nov 18, 2026
8793aa9
Preview: merge latest 7f-polish
silverbackdan Nov 18, 2026
5597f82
Kit: /kit runs without the page's CWA (no layout, no route fetch); In…
silverbackdan Nov 18, 2026
23cd9b8
Preview: merge latest 7e-kit-workbench
silverbackdan Nov 18, 2026
e1224bd
Site settings shows the bundle and app versions in full, with the bun…
silverbackdan Nov 18, 2026
cbf8ba7
The kept-stack spec stubs the focus outline, whose ComponentFocus moc…
silverbackdan Nov 18, 2026
48cc641
Recompile the kit CSS: the saving lines' colours, the 3px page-type s…
silverbackdan Nov 18, 2026
0786e31
Changelog: site settings versions (#484)
silverbackdan Nov 18, 2026
c213b4b
Preview: merge latest 7g-settings
silverbackdan Nov 18, 2026
54c7eba
Kit workbench: type the live field model's state as always present, a…
silverbackdan Nov 18, 2026
134055d
List rows' Edit is a pencil drawn in the text colour, not the setting…
silverbackdan Nov 18, 2026
6652fa3
UI kit 7d: edit dialogs slide over from the right, confirms and the a…
silverbackdan Nov 18, 2026
28029a0
Preview: merge latest 7g-settings
silverbackdan Nov 18, 2026
a7103bb
Empty position and group placeholders only in edit mode, so an admin …
silverbackdan Nov 18, 2026
31d0a47
Preview: merge latest 7c-old-ui
silverbackdan Nov 18, 2026
ce41806
Kit: the resource stack grows by scale, so it never paints at the top…
silverbackdan Nov 18, 2026
b7c4b97
Kit: dialogs open with focus on their title, never a header control (…
silverbackdan Nov 18, 2026
e077608
Preview: merge latest 7f-polish
silverbackdan Nov 18, 2026
22a68b9
Kit page spec: load the kit page before the first navigation, so a co…
silverbackdan Nov 18, 2026
92cf14e
Preview: merge latest 7b-inline
silverbackdan Nov 18, 2026
b1c81cf
Preview: merge latest 7d-modal-parity
silverbackdan Nov 18, 2026
3a1e68b
Preview: merge latest 7e-kit-workbench
silverbackdan Nov 18, 2026
8cfdb84
Browser scenarios 30 and 43 expect the solid outlines 7c drew (the or…
silverbackdan Nov 18, 2026
b63e2b3
UI kit 7d: entry and visitor preload budgets back to 164702 B and 185…
silverbackdan Nov 18, 2026
2f56fa2
Preview: merge latest 7c-old-ui
silverbackdan Nov 18, 2026
8b0860d
Preview: merge latest 7d-modal-parity
silverbackdan Nov 18, 2026
6688eb8
Kit: segmented controls hug their options instead of stretching acros…
silverbackdan Nov 18, 2026
f2987b0
Preview: merge latest 7f-polish
silverbackdan Nov 18, 2026
3efb854
The stranded groups dialog takes the warning header line, as the old …
silverbackdan Nov 18, 2026
2aefcae
Preview: merge latest 7c-old-ui
silverbackdan Nov 18, 2026
ef3f7b6
The resource stack no longer jumps while it opens: its grow animation…
silverbackdan Nov 18, 2026
ce8f6eb
Merge feat/236-kit-preview into 7e (#461)
silverbackdan Nov 18, 2026
c94be55
UI kit 7d: the dialog header's eye and close sit together, apart from…
silverbackdan Nov 18, 2026
86d480e
Preview: merge latest 7d-modal-parity
silverbackdan Nov 18, 2026
9261a6a
Preview: merge latest 7c-old-ui
silverbackdan Nov 18, 2026
fb9236a
Kit: information popovers match the proposal's popover, the menu surf…
silverbackdan Nov 18, 2026
9634163
Site settings in General, SEO, Maintenance and About tabs with one Sa…
silverbackdan Nov 18, 2026
20ed7f9
Preview: merge latest 7f-polish
silverbackdan Nov 18, 2026
cc80f3d
Merge remote-tracking branch 'origin/feat/236-kit-preview' into feat/…
silverbackdan Nov 18, 2026
8418bf3
Preview: merge latest 7g-settings
silverbackdan Nov 18, 2026
7f58861
Preview: merge latest 7e-kit-workbench
silverbackdan Nov 18, 2026
c9e61a5
Browser scenarios 56-60 recorded against the local API (phone sheet, …
silverbackdan Nov 18, 2026
40223c0
The admin header's row is centred in the bar, so the menu and Edit si…
silverbackdan Nov 18, 2026
5a1f50d
Preview: merge latest 7b-inline
silverbackdan Nov 18, 2026
3b60166
Kit: the resource stack opens with a fade and a 4px downward settle, …
silverbackdan Nov 18, 2026
320b41b
Preview: merge latest 7c-old-ui
silverbackdan Nov 18, 2026
3d7ab5a
Preview: close the in-page editing describe before 7c's header scenario
silverbackdan Nov 18, 2026
9185573
Preview: merge latest 7f-polish
silverbackdan Nov 18, 2026
2bf56b8
Budgets for UI kit 7b: entry 164805 B and visitor 185960 B, just abov…
silverbackdan Nov 18, 2026
5206f13
Preview: merge latest 7b-inline
silverbackdan Nov 18, 2026
ab4d73a
Kit: information popovers and their caret get a 1px line ring (#461)
silverbackdan Nov 18, 2026
70d7e30
Preview: merge latest 7f-polish
silverbackdan Nov 18, 2026
bb3c234
UI kit 7d: an edit slide-over opens at once and shows a spinner while…
silverbackdan Nov 18, 2026
89e497e
Preview: merge latest 7d-modal-parity
silverbackdan Nov 18, 2026
a1e977a
Kit In practice: usable without explanation; site first with a Try li…
silverbackdan Nov 18, 2026
f609bf8
Preview: merge latest 7e-kit-workbench
silverbackdan Nov 18, 2026
ca8b268
UI kit 7d: round Static and Dynamic dots everywhere; Redirect to sear…
silverbackdan Nov 18, 2026
fbdeba0
Escape from a CwaUiInlineEdit whose save has failed reverts and goes …
silverbackdan Nov 18, 2026
3acb814
Preview: merge latest 7b-inline
silverbackdan Nov 18, 2026
43b52a8
Kit: fill the slots with the page type select, the dialog's type line…
silverbackdan Nov 18, 2026
cf6acd0
Preview: merge latest 7d-modal-parity
silverbackdan Nov 18, 2026
64b58d7
Preview: the dialog focuses its title by the title ref's value, which…
silverbackdan Nov 18, 2026
5ab4613
Preview: merge latest 7e-kit-workbench
silverbackdan Nov 18, 2026
f5a88c2
Selection outline shows the selected component's save state: sweep, s…
silverbackdan Nov 18, 2026
c7a4d95
Preview: merge latest 7e-kit-workbench
silverbackdan Nov 18, 2026
87d1fd6
The bar status opens an error popover for a field an in-page editor h…
silverbackdan Nov 18, 2026
1984b03
Preview: merge latest 7b-inline
silverbackdan Nov 18, 2026
dcd58c0
Dialog alert names a refused field on an unopened tab by the label it…
silverbackdan Nov 18, 2026
bcb24ba
Preview: merge latest 7e-kit-workbench
silverbackdan Nov 18, 2026
5ade02e
InlineHandoff in a manager tab: its Edit dialog holds the text area w…
silverbackdan Nov 18, 2026
f33a94a
Kit sizing: buttons match the fields beside them on touch, an image f…
silverbackdan Nov 18, 2026
697ffa9
Kit: a field's focus ring fades in from transparent, never from white…
silverbackdan Nov 18, 2026
d57afb2
Preview: merge latest 7f-polish
silverbackdan Nov 18, 2026
ce4e22f
ManagerTab's scrolling row clips its fields' positioned parts, so a t…
silverbackdan Nov 18, 2026
6e7b780
Preview: merge latest 7e-kit-workbench
silverbackdan Nov 18, 2026
ac24bcd
Site settings: the tab follows the URL hash by replace, never scrolls…
silverbackdan Nov 18, 2026
a51d2e9
Preview: merge latest 7g-settings
silverbackdan Nov 18, 2026
7dc2dd0
Every kit field takes disabledReason, shown behind its ⓘ in the dark …
silverbackdan Nov 18, 2026
6bccdbd
The manager tab root check no longer warns for a tab that renders Cwa…
silverbackdan Nov 18, 2026
9357dc1
Preview: merge latest 7e-kit-workbench
silverbackdan Nov 18, 2026
386573e
UI kit 7d review: a depth switch never keeps the previous depth's dat…
silverbackdan Nov 18, 2026
83ce165
Preview: merge latest 7c-old-ui
silverbackdan Nov 18, 2026
271766c
Preview: merge latest 7d-modal-parity
silverbackdan Nov 18, 2026
08109ae
Review fixes for UI kit 7b: long press only in edit mode and the nati…
silverbackdan Nov 18, 2026
a94ee3c
Preview: merge latest 7b-inline (7b's beside slot replaces 7f's items…
silverbackdan Nov 18, 2026
1188b90
On a phone the header's "Live editing paused" is a glyph named for it…
silverbackdan Nov 18, 2026
39c4abb
Preview: merge latest 7c-old-ui
silverbackdan Nov 18, 2026
601fac6
Guard that the committed compiled CSS is current: scripts/check-compi…
silverbackdan Nov 18, 2026
41af1c1
Preview: merge latest 7c-old-ui
silverbackdan Nov 18, 2026
5abde59
List rows' Edit and View glyphs are 20px in their 32px targets (44px …
silverbackdan Nov 18, 2026
38284a2
Preview: merge latest 7c-old-ui
silverbackdan Nov 18, 2026
ed7e29b
A save failing through a field shows in the field, the bar status and…
silverbackdan Nov 18, 2026
b97a21c
Preview: merge latest 7e-kit-workbench
silverbackdan Nov 18, 2026
47ecbba
Clicking an in-page editor on a page starts the edit instead of askin…
silverbackdan Nov 18, 2026
7b26750
Preview: merge latest 7e-kit-workbench
silverbackdan Nov 18, 2026
bc517fa
Merge remote-tracking branch 'origin/feat/236-kit-7-in-page' into fea…
silverbackdan Nov 18, 2026
e18e1f8
Renumber the two step 7c header scenarios 61 and 62, after the step 7…
silverbackdan Nov 18, 2026
2a2be31
CwaRootLayout's click specs wait for the clock to pass the mount: Vue…
silverbackdan Nov 18, 2026
dd9c764
Set the entry and visitor preload budgets just above the consolidated…
silverbackdan Nov 18, 2026
63166bd
Merge the consolidated kit steps' changelog lines into one line per s…
silverbackdan Nov 18, 2026
85d0ce4
The header's Edit/Done sits on the same centre as page settings and t…
silverbackdan Nov 18, 2026
a6ed606
Preview: merge latest 7c-old-ui
silverbackdan Nov 18, 2026
f0f4530
An edit slide-over slides out when closed, the page behind fading, an…
silverbackdan Nov 18, 2026
a28b6fd
Preview: merge latest 7d-modal-parity
silverbackdan Nov 18, 2026
e4c9974
Merge the preview's 7c header centring and 7d slide-out into the cons…
silverbackdan Nov 18, 2026
ac1835b
The header's path selector is as tall as Done beside it on a touch sc…
silverbackdan Nov 18, 2026
519dfc0
Preview: merge consolidation fixes (scenario renumbering, PathSelecto…
silverbackdan Nov 18, 2026
02dba34
Content an admin's choice reveals scrolls into view by the least move…
silverbackdan Nov 18, 2026
dcbe4e1
Merge the kit preview into 7e: the reveal re-applied on 7g's tabbed s…
silverbackdan Nov 18, 2026
311390d
Merge feat/236-kit-preview into feat/236-kit-7c-old-ui
silverbackdan Nov 18, 2026
db6fb29
Merge feat/236-kit-preview into feat/236-kit-7d-modal-parity
silverbackdan Nov 18, 2026
63eda7f
Merge feat/236-kit-preview into feat/236-kit-7b-inline
silverbackdan Nov 18, 2026
55127fa
Merge remote-tracking branch 'origin/feat/236-kit-preview' into feat/…
silverbackdan Nov 18, 2026
11e90c4
Preview: merge latest 7e-kit-workbench
silverbackdan Nov 18, 2026
47b432f
Kit at 390 never scrolls sideways: below 40rem kit rows let a bar-lay…
silverbackdan Nov 18, 2026
8795cad
Preview: merge latest 7e-kit-workbench
silverbackdan Nov 18, 2026
12653af
Persona review fixes: the header menu toggle is a button that moves f…
silverbackdan Nov 18, 2026
c31e8f4
Preview: merge latest 7c-old-ui
silverbackdan Nov 18, 2026
98e6aa5
UI kit 7d persona fixes: Delete Draft on a live component asks to dis…
silverbackdan Nov 18, 2026
217df96
Preview: merge latest 7d-modal-parity
silverbackdan Nov 18, 2026
6659fb5
Components are selected by keyboard in edit mode, the bar's tabs are …
silverbackdan Nov 18, 2026
995afc8
Preview: merge latest 7b-inline
silverbackdan Nov 18, 2026
9ece403
The TipTap reference edits a Body Text not added yet on its own and j…
silverbackdan Nov 18, 2026
19a9041
Preview: merge latest 7f-polish
silverbackdan Nov 18, 2026
b228866
Preview: merge latest into 7e
silverbackdan Nov 18, 2026
a1ca06f
A choice reveals content only when the action that made it was in the…
silverbackdan Nov 18, 2026
1487261
A field's fill is darker and its placeholder dimmer, so an empty fiel…
silverbackdan Nov 18, 2026
8e38194
CwaUiTextarea warns once in development in a manager tab and names th…
silverbackdan Nov 18, 2026
074c78a
Placeholders read clearly dimmer than values (2.3:1 between them) on …
silverbackdan Nov 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ CSS-first config in `src/tailwind/tailwind-cwa.css`; every class uses the `cwa:`
- **The admin header keeps `SpinnerTick` and both saving lines** ([#461](https://github.com/components-web-app/cwa-nuxt-module/issues/461), Daniel's decision): the top-right loader that turns into a tick stays, and replaces the proposal's §7.2 text status; `ResourceLoadingIndicator` stays on the header and above the bar, both on `z-notifications` so the page overlay and outlines never cover them. The page-type strip is 3px (Nuxt's loading indicator height) in the 7d type tokens: `type-static`, `type-dynamic`, page data `success` when routed, `warning` when not.
- **A kit field shows a value in a conflict or status popover through its `format`** (`core/ui/field-value.ts`, passed to `Field`), never raw: a date reads as the picker shows it (`formatDateTime`), a toggle On/Off, a select its option labels.
- **A floating surface is never painted before it is placed** ([#461](https://github.com/components-web-app/cwa-nuxt-module/issues/461)). Trap: reka places popper content with a `transform` on its wrapper (`[data-reka-popper-content-wrapper]`, which is a `PopoverContent`'s `$el`), so a Web Animation keyframing `transform` there replaces the placement and paints it at the top left until the animation ends. Animate `scale`, `translate` or `opacity` instead. Guarded per surface by `test/browser/kit.spec.mjs` (`KIT_BASE`).
- **Manager tabs keep the manager bar the same height between tab switches.** A ported tab is one `<CwaUiManagerTab>` row (Publish and Order are, [#459](https://github.com/components-web-app/cwa-nuxt-module/issues/459)). Every tab is one; the old `CwaUiForm*` controls are gone. Secondary text goes inline or behind an ⓘ (`info`), never on its own line. The bar's publish action lives in the pinned CTA (`admin/publish-state.ts`, shared with the Publish tab through stack state), not in the tab.
- **Manager tabs keep the manager bar the same height between tab switches.** The tab row is a `tablist` named "<name> settings" and the shown tab its `tabpanel`; the arrow keys select as they move, like `FormGroup`'s and `CwaUiDialog`'s tabs. A ported tab is one `<CwaUiManagerTab>` row (Publish and Order are, [#459](https://github.com/components-web-app/cwa-nuxt-module/issues/459)). Every tab is one; the old `CwaUiForm*` controls are gone. Secondary text goes inline or behind an ⓘ (`info`), never on its own line. The bar's publish action lives in the pinned CTA (`admin/publish-state.ts`, shared with the Publish tab through stack state), not in the tab.
- **A dialog's header line keeps the old modals' meanings** ([#461](https://github.com/components-web-app/cwa-nuxt-module/issues/461)): `CwaUiDialog`'s internal `kind` colours it, `static`/`dynamic` from the page's **local** `isTemplate` (it changes before Save), `success`/`warning` for page data that has a route or `isReachableWithoutRoute` or not, with the words beside the title; every other dialog gets the neutral `line`. Colour is never the only cue: the page type select names the type, page data says "Reachable"/"Not reachable".
- **Edit dialogs are right slide-overs; confirms and pickers are centred** (`CwaUiDialog` `placement="right"`, [#461](https://github.com/components-web-app/cwa-nuxt-module/issues/461)): a centred dialog moved its header and footer whenever tabs, sub-views or alerts changed its height. A field's static explanation is `info` (ⓘ), never `description`; inline text under a field is only for an error, `invalid` or a changing status.
- **Public without a route** (`isReachableWithoutRoute`, bundle#381) is for a page an app loads by reference behind its own Nuxt route; it has nothing to do with nesting. It lives on the Routes tab's no-route state only, and saves with the page's Save. A route an ancestor holds back reads Inherited scheduled or Inherited not live, never "Held back".
Expand All @@ -360,6 +360,7 @@ CSS-first config in `src/tailwind/tailwind-cwa.css`; every class uses the `cwa:`
- **Bar controls** ([#460](https://github.com/components-web-app/cwa-nuxt-module/issues/460)): `CwaUiSelect` (reka Select; replaced the Headless UI one), `CwaUiMultiSelect` and `CwaUiResourceSearch` (reka Combobox), `CwaUiSegmented` (ToggleGroup), `CwaUiFileUpload` (`useCwaResourceUpload`'s `state`/`retry`/`reset`) and `CwaUiDatePicker` bind like the fields above. A stored value shown differently (Style's names over `uiClassNames`) goes through the model's `get`/`set` mapping, never a watcher. **Either/or fields** (`CwaUiEitherOr` + `CwaUiEitherOrOption`, `CwaUiLinkInput`) come from `useCwaResourceFieldGroup`: switching option writes nothing; the first save of a set value clears the other option's fields in the same PATCH (`alsoSend`), and Undo on that field's line puts them back in one save. A model's `valid` is checked once, on its send path, so no send (debounce, Retry, Keep mine, a publish's flush) ever carries an invalid value; the Link URL shows its message only on blur or Enter. `alsoSend(value, iri)` is read before the equal-value skip, so a re-picked value still clears the other option. The group keys Undo by published IRI (a save turns a live link into a draft), records it only once the PATCH succeeds and only for the resource on screen, and resets the other options' models when one saves. Options register in setup and stay mounted, so their models outlive the swap. A select's portalled menu counts as inside its field for presence (the model's focus listeners follow `aria-controls`). The bundle growth is reka's `isEqual` (ohash) split into its own chunk once Combobox shared it (~108 B) and the new chunks' names in `__vite__mapDeps` (~174 B); `manualChunks` made it worse. A `@vueuse` import in an admin tab moves `@vueuse` out of the CwaRootLayout chunk (~372 B on visitors). **Below `sm` the tab row keeps its room**: the CTA's Publish now reads Publish (`CwaUiButton`'s `shortLabel`) and the usage badge is a share glyph and the count, its full text kept as the accessible name.
- **Date and time** ([#320](https://github.com/components-web-app/cwa-nuxt-module/issues/320)): `CwaUiCalendar` and `CwaUiInputDate` are ports of Nuxt UI's Calendar and InputDate; `CwaUiDatePicker` combines them and is the one to use in the admin. Its value is always a UTC ISO string or `null`; the editor picks on their computer's clock (`toLocalDateTime`/`fromLocalDateTime` in `resources/date-time-input.ts`), the zone and its offset **at the chosen date** are named in the calendar button's hover text — deliberately not in the field, where it took space and shifted width as the date changed, and nothing before `min` (rounded up to the minute step) is ever emitted. The dynamic single/range variants are typed as `Component`, because their props differ and Vue cannot check a union at one binding.
- **Two copies of `@internationalized/date` silently break the picker**: reka-ui checks values with `instanceof`, so a value built by another copy loses its time segments with no error. This repo's lockfile was deduped for it; an app can hit it when its lockfile already holds reka-ui (Nuxt UI apps) on an older copy. `CwaUiDatePicker` warns once, naming `pnpm dedupe`, by checking its value with reka-ui's own `isZonedDateTime`. Keep our range no higher than needed so it can share reka-ui's copy.
- **Keyboard selection** ([#461](https://github.com/components-web-app/cwa-nuxt-module/issues/461)): in edit mode `ManageableResource` gives a **component's** own elements `tabindex="0"` and `aria-label` "<name> component" (`role="group"` on a div or span), only attributes the element lacks, removed outside edit mode; never a position or group (they share the component's element, and would name it first) and never an element already focusable (a link keeps its name). Enter or Space on that element itself (never a key typed inside it) dispatches a click through `selectFromModule`; Shift+F10 or ContextMenu dispatches a `contextmenu` inside it. F6 (ResourceManager) moves between it and the bar's selected tab. Trap: a click inside now focuses that element, so anything that treated "focus is no longer on `<body>`" as focus taken elsewhere must ignore an ancestor (the TipTap reference's `focusTaken`, the field model's `focusMoved`), or selecting showed peers `selected` before `editing`.
- **In-page editing** ([#461](https://github.com/components-web-app/cwa-nuxt-module/issues/461)): `CwaRootLayout` decides whether a click is in the page in a **capture** listener: an editor's click handler swaps the clicked element out and Vue redraws before the root's bubble listener runs, so `contains(e.target)` there read it as a layout click ("Edit the shared layout?"). Not `composedPath()`: happy-dom computes it live, so no spec could hold it. an on-page editor registers with `useCwaInlineEditor(model, element)`, per `Cwa`, keyed by the model's `@internal` `editorKey` (IRI and root field, draft and published as one); `CwaUiInlineHandoff` offers Edit on page only while that editor is enabled and in the document, and Escape in the editor returns to the button; while `CwaUiInlineEdit`'s save has failed (model `state` `error`) Escape opens the bar status on Retry instead (`openBarStatus`, registered per `Cwa` by `BarSummary`). The bar status opens that error popover (`FieldStatusTitle` + `FieldStatusError`, shared with `FieldStatus`, calling the registered editor's model `retry`/`reset`) only for an error on a field an in-page editor holds; a conflict, or an error with no in-page editor, still shows the field in the bar. Every empty placeholder (`ComponentPlaceholder`, `ComponentGroup`'s empty and new-position states) renders only while `$cwa.admin.isEditing`, gated at the source: outside edit mode an admin sees what a visitor sees. A placeholder's explanation goes in `info` (an ⓘ with a hover/focus/tap `InfoPopover`), never inline. On a phone, in edit mode only, a touch long press (`admin/long-press.ts`) dispatches a synthetic `contextmenu`, so it takes the right-click path, and swallows the native menu and the click ending the press only when that `contextmenu` was `defaultPrevented` (a level was under it); a native `contextmenu` before 500 ms is the press's menu itself; below `sm` the resource stack is a modal bottom sheet that makes the app container `inert`. Trap: the long-press listeners are ref-counted per root, or every mounted manager opens its own stack.
- **Component styles**: `styles: { multiple?, classes: { name: string } }`; `uiClassNames` stores one class string per selected style (`mergeSelectedStyles` / `deriveSelectedStyles`). `useCwaAutoClass` removes only classes it added itself.
- **Updates are merge-patch with changed fields only** (`useItemPage.saveResource`). `localResourceData` is a shallow copy — replace nested values, never mutate in place. A not-yet-persisted component merges locally with the same semantics: arrays and `null` replace ([#319](https://github.com/components-web-app/cwa-nuxt-module/issues/319)).
Expand Down
25 changes: 25 additions & 0 deletions playground/app/components/TipTapHtmlEditor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,17 @@ describe('TipTapHtmlEditor: the co-editing reference editor (#429)', () => {
expect(editor().state.selection.from).toBe(end(editor()))
})

test('the editable editor is a multi-line textbox named for its field, and the read-only one is not (#461)', async () => {
const readOnly = await mountEditor('<p>Hello</p>', { disabled: true })
expect(readOnly.editor().view.dom.hasAttribute('aria-label')).toBe(false)
readOnly.wrapper.unmount()

const { editor } = await mountEditor('<p>Hello</p>')
await vi.waitFor(() => expect(editor().view.dom.getAttribute('aria-label')).toBe('Content'))
expect(editor().view.dom.getAttribute('role')).toBe('textbox')
expect(editor().view.dom.getAttribute('aria-multiline')).toBe('true')
})

test('saves what is typed through the resource model', async () => {
const { editor, stored } = await mountEditor('<p>Hello</p>')

Expand Down Expand Up @@ -729,6 +740,20 @@ describe('TipTapHtmlEditor: the caret when the editor is rebuilt (#435)', () =>
expect(keys.filter(key => /^(bubbleMenu|floatingMenu)\$/.test(key)).map(key => key.replace(/\$.*/, '')).sort()).toEqual(['bubbleMenu', 'floatingMenu'])
})

test('a click that focused the component around the editor, a tab stop in edit mode, still lets selecting focus the editor (#461)', async () => {
const { wrapper, editor } = await mountEditor('<p>Hello there</p>', { disabled: true })
const component = wrapper.element as HTMLElement
component.setAttribute('tabindex', '0')
document.getSelection()!.collapse(editor().view.dom.querySelector('p')!.firstChild!, 5)

await wrapper.setProps({ disabled: false })
component.focus()
await vi.waitFor(() => expect(editor().isEditable).toBe(true))

await vi.waitFor(() => expect(editor().isFocused).toBe(true))
component.removeAttribute('tabindex')
})

test('a menu opened after selecting keeps focus when the editor becomes editable, so it stays open', async () => {
const { wrapper, editor } = await mountEditor('<p>Hello there</p>', { disabled: true })
document.getSelection()!.collapse(editor().view.dom.querySelector('p')!.firstChild!, 5)
Expand Down
6 changes: 5 additions & 1 deletion playground/app/components/TipTapHtmlEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ const props = defineProps<{
field: string
disabled?: boolean
editorClasses?: string
label?: string
}>()

// Render the menus at the top level so they escape the editor's stacking context and clear the CWA
Expand Down Expand Up @@ -220,7 +221,9 @@ function caretIn(previous: Editor | undefined): Caret {
}

function focusTaken() {
return !!document.activeElement && document.activeElement !== document.body
const active = document.activeElement
const dom = editorElement()
return !!active && active !== document.body && !(dom && active.contains(dom))
}

function build(shared?: Shared, wantsFocus = false) {
Expand Down Expand Up @@ -312,6 +315,7 @@ function editorElement() {

useCwaInlineEditor(props.model, editorElement, {
enabled: () => !props.disabled,
label: props.label ?? 'Content',
focus: () => editor.value?.commands.focus('end'),
})

Expand Down
Loading