[docs] Domi UI: v1.1.0, and why Ianitor keeps native text fields

This commit is contained in:
2026-11-23 01:00:45 +01:00
parent 43230be026
commit 525596a56c
2 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ Identity gate, tunnel, Domi templates, ACME server, HTTP/3, migrating public sit
- **Deployed:** nothing. **Not verified:** the phone layout of the credit by eye; the Nix build (`cpal10`).
**2026-11-23: the web UI on @domi/ui, the shared Domi design system (docs/domi-ui.md); PR 14, squash-merged.**
- **Changed:** `@domi/ui` v1.0.4 vendored in packages/domi-ui (domi-design tools/vendor.mjs; CPAL-1.0, unedited) and used as `workspace:*`; `<DomiCredit />` is the credit on every screen; its fonts, roles (`data-domi-room="ianitor"`,
- **Changed:** `@domi/ui` v1.0.4 (then v1.1.0) vendored in packages/domi-ui (domi-design tools/vendor.mjs; CPAL-1.0, unedited) and used as `workspace:*`; `<DomiCredit />` is the credit on every screen; 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.
+8 -4
View File
@@ -2,7 +2,7 @@
The web UI's controls and roles come from **@domi/ui**, the shared Domi design system (Gitea `mnovak/domi-design`,
its `docs/INTEGRATE.md` §6a and `docs/MIGRATION.md`). It is **vendored** at a tag in `packages/domi-ui` (CPAL-1.0,
like Ianitor; `VERSION` names the tag, v1.0.4; `LICENSE`, `NOTICE` and `VERSION` there stay unchanged) and used as a
like Ianitor; `VERSION` names the tag, v1.1.0; `LICENSE`, `NOTICE` and `VERSION` there stay unchanged) and used as a
workspace package by `apps/web` and `packages/ui`:
```json
@@ -75,13 +75,17 @@ plain data for the e2e real-data check, and a unit test keeps them equal to @dom
contains @domi/ui in `packages/domi-ui` (INTEGRATE.md §6a).
History: the first pins were v1.0.0 and v1.0.1 (a git dependency), then v1.0.2 was vendored (MPL-2.0). That copy
stays in this PR's branch history by Mark's choice; the PR is squash-merged, so main only ever holds v1.0.4
(v1.0.4 is v1.0.3 with a script block in `Strike.svelte`, so no tsconfig workaround is needed).
stays in this PR's branch history by Mark's choice; PR 14 was squash-merged with v1.0.4 (c9aa55e), so main never held it. v1.1.0 followed (2026-11-23).
v1.1.0 adds TextField `as="editable" | "auto"`, a contenteditable field, because an Android **WebView** sends an
Autofill request to Google whenever a native text field gets focus. Ianitor keeps the default native fields
(`as="input"`): it runs in a browser, not a WebView, and native fields keep the browser's own password and form
handling.
## Risks
- **The Nix hash** in `deploy/nixos/web.nix` is the one Fabrica's NixOS runner reported for this lockfile (run
`rp8rw56wvg5k2`, 2026-11-23); v1.0.3 and v1.0.4 left the lockfile byte-identical. A verify-nix run on the branch confirms it.
`rp8rw56wvg5k2`, 2026-11-23); v1.0.3, v1.0.4 and v1.1.0 left the lockfile byte-identical. A verify-nix run on the branch confirms it.
- A visual change Mark has not seen beyond the asked-for controls: the field labels are @domi/ui's (13 px, 600),
and Ianitor's group labels (Certificate, Visit log, What is it) follow them so a form reads as one; the
segmented controls are as wide as their choices, not the panel.