[web] Domi UI: the web UI on @domi/ui v1.0.3 (CPAL-1.0), vendored #14

Manually merged
mnovak merged 11 commits from feature/domi-ui into main 2026-11-23 00:52:51 +01:00
Owner

Update 2026-11-23 (Mark's decision):

  • Vendored copy: packages/domi-ui is now @domi/ui v1.0.3 (CPAL-1.0), vendored on top with tools/vendor.mjs. LICENSE, NOTICE and VERSION are unchanged.
  • Licence: main's CPAL-1.0 change (PR 15) is merged in.
  • The credit: <DomiCredit /> is the credit on every screen and in About, and the README says the repo contains @domi/ui (INTEGRATE.md §6a). Ianitor's own credit is the same Exhibit B text, and a unit test keeps the two equal.
  • The v1.0.2 MPL copy stays in this branch's history by Mark's choice. The PR is squash-merged, so main never holds it.
  • Nix: the hash in web.nix is the one the NixOS runner reported for this lockfile (run rp8rw56wvg5k2; v1.0.3 left the lockfile byte-identical). Run rpvk857jpfp9m checks the full build.
  • CPAL §15: About and the README say network use counts as distribution, next to the source link.
  • The credit on screen: the first screen (every desktop screen has it in the sidebar), and About with the credit, the §15 note and the source:

first screen

about

  • Also fixed: packages/ui Details' link still had the old domi-btn link class.
  • Tests on this head:
    • vitest 23 passed;
    • svelte-check clean;
    • vite build passes;
    • Playwright web 6/6 and aula 5/5, with the real-data check on every page.

The web UI on @domi/ui v1.0.2, the shared Domi design system (mnovak/domi-design, INTEGRATE.md §6a and MIGRATION.md), vendored in packages/domi-ui with domi-design's tools/vendor.mjs (MPL-2.0, unedited, VERSION = v1.0.2) and used as workspace:*. The lockfile names no Gitea repository, so the Nix build needs no login. The first pin was v1.0.0, then v1.0.1 (leaf hover contrast); v1.0.2 only changes the licence. The design doc is docs/domi-ui.md.

What changed

  • Fonts, roles, controls from @domi/ui. data-domi-room="ianitor" on <html> keeps Ianitor's own ground and murex accent, the same hex as before (§0.1 and §0.2 kept). Ianitor's 22 role names are renamed to --domi-*, with no legacy alias file. Ianitor's own tokens (status, washes, sizes, layout) and components (banners, dialogs, lists, menus) stay in packages/ui as ia-*.
  • Buttons are @domi/ui's Button, through Ianitor's Button.svelte. Desktop heights are kept: 44 px, primary 50 px, small 34 px (was 36). They get the asked-for states, press, glint, and 48 px on touch.
  • Every text field is a TextField with its seal:
    • The host form's fields use next; its last field applies the form.
    • The device name requests the certificate.
    • The share prefix and password remake the link.
    • The token name renames the token now.
    • The pasted certificate uses it (Enter makes a new line there).
  • Checkboxes, the secret picker and segmented controls are @domi/ui's. Ianitor's Segmented keeps its visible name.
  • The @fontsource packages are gone. The fonts come from @domi/ui.
  • Atrium: Ianitor has no room there (it runs on the server). If it ever gets one, it is free (docs/fabrica.md, docs/domi-ui.md).

Before and after (13 screens, demo data, fixed clock, 1440×900)

Main screens, taken on v1.0.0; v1.0.1 changes only the primary button on hover (hosts, add host, more options, share, new device, API settings):

main screens

Other screens (edit host, host error, engine, history, certificates, settings, renew by hand):

other screens

Tests

  • vitest 21 passed.
  • svelte-check: 0 errors, 0 warnings; the e2e tsc is clean.
  • Playwright web 6/6 (recorded flows) and aula 5/5.
  • vite build passes. No Rust change.

Before merging

  • fetchPnpmDeps' hash in deploy/nixos/web.nix is lib.fakeHash (no Nix on this PC). Fabrica run rp8rw56wvg5k2 (verify-nix on this branch) or any nix build .#ianitor-web prints the hash; paste it, build, then merge.

Adversarial self-review

  • Disabled buttons are natively disabled now (behaviour change). Before, they were aria-disabled and focusable, so a screen reader could reach the reason. Now Tab skips them. Every one with a reason (Apply, Restore, + Host while blocked) shows the reason as visible text beside it, which is @domi/ui's rule. Copy link is working (not disabled) while the link is made, so the share dialog still opens with the focus on it; the unit test caught this.
  • Visual changes beyond the controls, for Mark to accept:
    • Field labels are @domi/ui's (13 px, 600). Ianitor's group labels follow them so a form reads as one.
    • Segmented controls are as wide as their choices, not the panel.
    • The outline button's accent text is now the plate's.
  • allowJs in apps/web's tsconfig. @domi/ui's Strike.svelte has no <script lang="ts">; with the package in the workspace, allowJs (checkJs off, as in domi-design's own tsconfig) is enough. The earlier types-only shim is gone.
  • The vendored folder must not be edited here. Upgrades rerun tools/vendor.mjs with the next tag (docs/domi-ui.md).
  • The last field's seal moves. The host form's "last field" depends on what is shown (more options, rules); it is derived in lastField. A next seal on a field with nothing after it would do nothing, which is why the last one applies.
  • Validation on blur: it now runs when focus leaves the field and its seal, through a wrapper's focusout. It still validates only the field that was left.
  • Playwright's name match is a substring. The add-host flow now looks up "Apply" exactly, so it doesn't also match the seal "Apply this host".
  • Not verified: the Nix build (hash pending), a touch screen (the 48 px floor), and reduced motion by hand.
**Update 2026-11-23 (Mark's decision):** - **Vendored copy:** `packages/domi-ui` is now **@domi/ui v1.0.3 (CPAL-1.0)**, vendored on top with `tools/vendor.mjs`. LICENSE, NOTICE and VERSION are unchanged. - **Licence:** main's CPAL-1.0 change (PR 15) is merged in. - **The credit:** `<DomiCredit />` is the credit on every screen and in About, and the README says the repo contains @domi/ui (INTEGRATE.md §6a). Ianitor's own credit is the same Exhibit B text, and a unit test keeps the two equal. - **The v1.0.2 MPL copy** stays in this branch's history by Mark's choice. The PR is **squash-merged**, so main never holds it. - **Nix:** the hash in `web.nix` is the one the NixOS runner reported for this lockfile (run `rp8rw56wvg5k2`; v1.0.3 left the lockfile byte-identical). Run `rpvk857jpfp9m` checks the full build. - **CPAL §15:** About and the README say network use counts as distribution, next to the source link. - **The credit on screen:** the first screen (every desktop screen has it in the sidebar), and About with the credit, the §15 note and the source: ![first screen](https://gitea.marek-novak.cz/attachments/bb5ad270-f084-43e9-bc9a-d3bc4007e379) ![about](https://gitea.marek-novak.cz/attachments/5432bc20-0c03-46cd-a0ac-46156235000b) - **Also fixed:** `packages/ui` Details' link still had the old `domi-btn link` class. - **Tests on this head:** - vitest 23 passed; - svelte-check clean; - `vite build` passes; - Playwright `web` 6/6 and `aula` 5/5, with the real-data check on every page. --- The web UI on **@domi/ui v1.0.2**, the shared Domi design system (`mnovak/domi-design`, INTEGRATE.md §6a and MIGRATION.md), **vendored** in `packages/domi-ui` with domi-design's `tools/vendor.mjs` (MPL-2.0, unedited, `VERSION` = v1.0.2) and used as `workspace:*`. The lockfile names no Gitea repository, so the Nix build needs no login. The first pin was v1.0.0, then v1.0.1 (leaf hover contrast); v1.0.2 only changes the licence. The design doc is `docs/domi-ui.md`. ## What changed - **Fonts, roles, controls from @domi/ui.** `data-domi-room="ianitor"` on `<html>` keeps Ianitor's own ground and murex accent, the same hex as before (§0.1 and §0.2 kept). Ianitor's 22 role names are renamed to `--domi-*`, with no legacy alias file. Ianitor's own tokens (status, washes, sizes, layout) and components (banners, dialogs, lists, menus) stay in packages/ui as `ia-*`. - **Buttons** are @domi/ui's Button, through Ianitor's `Button.svelte`. Desktop heights are kept: 44 px, primary 50 px, small 34 px (was 36). They get the asked-for states, press, glint, and 48 px on touch. - **Every text field** is a TextField with its seal: - The host form's fields use `next`; its last field applies the form. - The device name requests the certificate. - The share prefix and password remake the link. - The token name renames the token now. - The pasted certificate uses it (Enter makes a new line there). - **Checkboxes, the secret picker and segmented controls** are @domi/ui's. Ianitor's Segmented keeps its visible name. - The `@fontsource` packages are gone. The fonts come from @domi/ui. - Atrium: Ianitor has no room there (it runs on the server). If it ever gets one, it is free (`docs/fabrica.md`, `docs/domi-ui.md`). ## Before and after (13 screens, demo data, fixed clock, 1440×900) **Main screens, taken on v1.0.0; v1.0.1 changes only the primary button on hover** (hosts, add host, more options, share, new device, API settings): ![main screens](https://gitea.marek-novak.cz/attachments/fad6ae05-08a3-448a-8c35-fb1c5b859238) **Other screens** (edit host, host error, engine, history, certificates, settings, renew by hand): ![other screens](https://gitea.marek-novak.cz/attachments/a4dec63c-6fbb-4143-b249-3019e715835e) ## Tests - vitest 21 passed. - svelte-check: 0 errors, 0 warnings; the e2e tsc is clean. - Playwright `web` 6/6 (recorded flows) and `aula` 5/5. - `vite build` passes. No Rust change. ## Before merging - `fetchPnpmDeps`' hash in `deploy/nixos/web.nix` is `lib.fakeHash` (no Nix on this PC). Fabrica run `rp8rw56wvg5k2` (verify-nix on this branch) or any `nix build .#ianitor-web` prints the hash; paste it, build, then merge. ## Adversarial self-review - **Disabled buttons are natively disabled now (behaviour change).** Before, they were `aria-disabled` and focusable, so a screen reader could reach the reason. Now Tab skips them. Every one with a reason (Apply, Restore, + Host while blocked) shows the reason as visible text beside it, which is @domi/ui's rule. Copy link is *working* (not disabled) while the link is made, so the share dialog still opens with the focus on it; the unit test caught this. - **Visual changes beyond the controls, for Mark to accept:** - Field labels are @domi/ui's (13 px, 600). Ianitor's group labels follow them so a form reads as one. - Segmented controls are as wide as their choices, not the panel. - The outline button's accent text is now the plate's. - **`allowJs` in apps/web's tsconfig.** @domi/ui's `Strike.svelte` has no `<script lang="ts">`; with the package in the workspace, `allowJs` (checkJs off, as in domi-design's own tsconfig) is enough. The earlier types-only shim is gone. - **The vendored folder must not be edited here.** Upgrades rerun `tools/vendor.mjs` with the next tag (docs/domi-ui.md). - **The last field's seal moves.** The host form's "last field" depends on what is shown (more options, rules); it is derived in `lastField`. A `next` seal on a field with nothing after it would do nothing, which is why the last one applies. - **Validation on blur:** it now runs when focus leaves the field *and* its seal, through a wrapper's `focusout`. It still validates only the field that was left. - **Playwright's name match is a substring.** The add-host flow now looks up "Apply" exactly, so it doesn't also match the seal "Apply this host". - **Not verified:** the Nix build (hash pending), a touch screen (the 48 px floor), and reduced motion by hand.
mnovak added 2 commits 2026-11-22 23:25:28 +01:00
mnovak changed title from [web] Domi UI: the web UI on @domi/ui v1.0.0 (do not merge: Nix fetch blocker) to [web] Domi UI: the web UI on @domi/ui v1.0.1 (do not merge: Nix fetch blocker) 2026-11-22 23:29:59 +01:00
mnovak added 1 commit 2026-11-22 23:29:59 +01:00
mnovak added 3 commits 2026-11-23 00:06:20 +01:00
mnovak changed title from [web] Domi UI: the web UI on @domi/ui v1.0.1 (do not merge: Nix fetch blocker) to [web] Domi UI: the web UI on @domi/ui v1.0.2, vendored (do not merge before the Nix hash) 2026-11-23 00:06:46 +01:00
mnovak added 2 commits 2026-11-23 00:31:16 +01:00
mnovak changed title from [web] Domi UI: the web UI on @domi/ui v1.0.2, vendored (do not merge before the Nix hash) to [web] Domi UI: the web UI on @domi/ui v1.0.3 (CPAL-1.0), vendored 2026-11-23 00:32:22 +01:00
mnovak added 1 commit 2026-11-23 00:36:39 +01:00
mnovak added 2 commits 2026-11-23 00:41:00 +01:00
mnovak manually merged commit c9aa55ec99 into main 2026-11-23 00:52:51 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mnovak/ianitor#14