[docs] Domi UI: vendored at a tag, how to upgrade, the Nix hash still to paste

This commit is contained in:
2026-11-23 00:06:10 +01:00
parent b40e2d3b8e
commit f59f8e251d
3 changed files with 24 additions and 23 deletions
+5 -6
View File
@@ -171,18 +171,17 @@ Identity gate, tunnel, Domi templates, ACME server, HTTP/3, migrating public sit
(Rewritten at the end of every session: what changed, what was not verified, which build is deployed, the next step.)
**2026-11-22: the web UI on @domi/ui, the shared Domi design system (docs/domi-ui.md). Open as a PR, not merged.**
- **Changed:** `@domi/ui` v1.0.1 pinned by tag in apps/web and packages/ui; its fonts, roles (`data-domi-room="ianitor"`,
- **Changed:** `@domi/ui` v1.0.2 vendored in packages/domi-ui (domi-design tools/vendor.mjs; MPL-2.0) and used as `workspace:*`; its fonts, roles (`data-domi-room="ianitor"`,
the same hex) and controls replace Ianitor's copies. Buttons are its Button through Ianitor's adapter (desktop sizes
kept); every text field is its TextField with a seal; checkboxes, the secret picker and segmented controls are its
components. Ianitor's 22 role names are renamed to `--domi-*`; its own tokens and components stay in packages/ui.
Disabled buttons are natively disabled now (their reasons are visible text). A types-only shim covers
@domi/ui's Strike.svelte until it is fixed upstream.
Disabled buttons are natively disabled now (their reasons are visible text). apps/web's tsconfig sets `allowJs`
for @domi/ui's script-less Strike.svelte.
- **Tests:** vitest 21; svelte-check clean; Playwright web 6/6 (the Apply lookup is exact now), aula 5/5; 13 screens
compared before and after (in the PR). No Rust change.
- **Deployed:** nothing.
- **Blocker (Mark):** domi-design is private, and the Nix build fetches pnpm dependencies without credentials, so
`nix build .#ianitor` would fail. Either Gitea serves domi-design to anonymous readers (as domi-pki), or Ianitor
vendors the tagged files. Then update `fetchPnpmDeps`'s hash in deploy/nixos/web.nix and merge.
- **Before merging:** `fetchPnpmDeps`'s hash in deploy/nixos/web.nix is `lib.fakeHash` (no Nix here; the vendored
package means the Nix build needs no Gitea login). Paste the hash `nix build .#ianitor-web` reports, then merge.
- **Not verified:** the Nix build; Fabrica's runners installing @domi/ui; a phone (the 48 px touch sizes).