[ui] DomiUi: @domi/ui v1.2.0; on Android the town field is an editable box, so focusing it sends no Autofill request (TextField as=auto)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# @domi/ui in Rosea: the shared buttons and the town search
|
||||
|
||||
Status: built on `feature/domi-ui`, 2026-11-23. The brief was Mark's, passed on by the Aula session: adopt `@domi/ui`,
|
||||
the Domi design system (`mnovak/domi-design`), at **v1.0.4** (CPAL-1.0 from v1.0.3). He chose **(a)**: Rosea may
|
||||
the Domi design system (`mnovak/domi-design`), at **v1.2.0** (CPAL-1.0 from v1.0.3). He chose **(a)**: Rosea may
|
||||
carry a public copy. Her buttons
|
||||
and her town search take the new look, and the search field gets *search*, never *send*. Review:
|
||||
[`feature-domi-ui.md`](../reviews/feature-domi-ui.md).
|
||||
@@ -23,7 +23,7 @@ plate in her own colours, and her town search becomes the shared field with a se
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
subgraph vendored["packages/domi-ui = @domi/ui v1.0.4 (vendored, never edited)"]
|
||||
subgraph vendored["packages/domi-ui = @domi/ui v1.2.0 (vendored, never edited)"]
|
||||
btn["components/Button.svelte"]
|
||||
tf["components/TextField.svelte"]
|
||||
css["css/tokens + base + components"]
|
||||
@@ -39,7 +39,7 @@ flowchart LR
|
||||
|
||||
| # | Decision | Why |
|
||||
|:--|:--|:--|
|
||||
| D1 | **A vendored copy as a workspace package**, `packages/domi-ui` (`"@domi/ui": "workspace:*"`). It is made only by the design system's own `node tools/vendor.mjs <rosea>/packages/domi-ui v1.0.4`, which writes `src/` (css, components, lib, index.ts, types.ts, tokens/generated.ts), a `package.json` with no scripts, `LICENSE` (CPAL-1.0), `NOTICE` (the credit), `CHANGELOG.md` and `VERSION`, and refuses a tag that is not CPAL-1.0 (INTEGRATE.md §6a). It is never edited here. ESLint skips the folder. The three `@fontsource-variable` fonts arrive as its npm dependencies (OFL); Rosea never imports them, so none is bundled. | Rosea's repository is public and the design system's is private, so a public build cannot fetch it. Mark allowed the copy, under CPAL-1.0 from v1.0.3 (v1.0.2 was MPL-2.0 and is never used). A bump reruns the tool with the next tag. |
|
||||
| D1 | **A vendored copy as a workspace package**, `packages/domi-ui` (`"@domi/ui": "workspace:*"`). It is made only by the design system's own `node tools/vendor.mjs <rosea>/packages/domi-ui v1.2.0`, which writes `src/` (css, components, lib, index.ts, types.ts, tokens/generated.ts), a `package.json` with no scripts, `LICENSE` (CPAL-1.0), `NOTICE` (the credit), `CHANGELOG.md` and `VERSION`, and refuses a tag that is not CPAL-1.0 (INTEGRATE.md §6a). It is never edited here. ESLint skips the folder. The three `@fontsource-variable` fonts arrive as its npm dependencies (OFL); Rosea never imports them, so none is bundled. | Rosea's repository is public and the design system's is private, so a public build cannot fetch it. Mark allowed the copy, under CPAL-1.0 from v1.0.3 (v1.0.2 was MPL-2.0 and is never used). A bump reruns the tool with the next tag. |
|
||||
| D2 | **Rosea's buttons never hand `Button` a Promise.** Async handlers are called as `() => void save()`. | A Promise would make the button announce "Working" and "Done", the design system's English, not Rosea's copy (CLAUDE.md §7). Rosea's own status lines already speak. Its hidden status regions stay empty. |
|
||||
| D3 | **Water, Touch her and *Move the chair* are the plate written as markup** (`class="domi-btn"`, `use:strike`), as INTEGRATE.md §3 allows. | `Button` sets its own `onkeydown` and `onblur` after the ones passed to it. That dropped the pour by a held Space and its stop on blur, and the rule that a held key is one touch (thorns.md T2); the unit tests caught it. *Move the chair* needs its element, so focus can come back after the sunset. |
|
||||
| D4 | **The town search is `TextField`, `action="search"`,** with Rosea's label, a new seal name *Search towns*, and `sentText=""`. The list follows the typing as before, so the seal and Enter only confirm it. | Nothing is sent anywhere, so the seal never says *send*. `sentText=""` keeps the design system's "Searched" unsaid; the line *One town* already speaks. |
|
||||
@@ -47,6 +47,7 @@ flowchart LR
|
||||
| D6 | **Her system faces stay**: `--domi-font-hand` and `--domi-font-book` point at Rosea's own stacks. No font files are copied. | INTEGRATE.md §0.4; the font is Mark's open question in PALETTE.md. |
|
||||
| D7 | `<html data-domi-room="rosea" data-domi-theme="auto">` | Her room's ground equals her current colours in both themes, and she follows the device, as before. |
|
||||
| D9 | **The licence's credit** (CPAL-1.0 Exhibit B, for Rosea and for the copy): `Built on Domi · https://aula.marek-novak.cz · Copyright (c) 2026 Marek Novák`, in `--ink-soft` at 0.8 rem at the foot of every screen, from the first open on (the gardener, the garden, the Letter). It is the exact text of `DOMI_ATTRIBUTION_TEXT`, as plain text, **not** `DomiCredit`'s link. | INTEGRATE.md §6a and Mark ask for it in the interface. The garden is offline: a link opening a web page would carry the player out of her, and on Android, which has no internet, into a page that never loads. The plain form is the one §6a gives for a native window. CLAUDE.md says *Domi* never appears alone in public; this phrase is the licence's and Mark's own (review finding). |
|
||||
| D10 | **On Android the town field is an editable box** (`TextField as="auto"`, v1.1.0): `contenteditable="plaintext-only"` with `role="textbox"`, the same look and keys. Elsewhere it stays the native search field. | Android's WebView asks Google's Autofill service, over the network, the moment a native text field gets focus. No attribute stops it, and Rosea's missing `INTERNET` permission does not either, because the system's Autofill service makes the request (found by Amicitia). A player typing their town would send a request they never asked for. A unit test holds it on an Android user agent, and the drill (`as="input"`) fails it. |
|
||||
| D8 | **Not converted:** the gardener's choices stay her own picture-chips, not `Radio`. The *Bring her back* file picker stays a `<label>` around the browser's own input, wearing the plate's classes. | The brief was her buttons and the search. A file input cannot be a `Button`. |
|
||||
|
||||
## 3. Risk analysis
|
||||
|
||||
Reference in New Issue
Block a user