7.8 KiB
Review: feature/domi-ui (2026-11-23)
Analysis: ../features/domi-ui.md. Rosea's buttons and her town search take @domi/ui's
look, from a vendored copy. The copy is v1.5.0, CPAL-1.0, made by the design system's tools/vendor.mjs into packages/domi-ui. Aula's
hold was lifted with that tag; v1.0.1, the copy first tried here, never left this machine.
Before and after
ROSEA_LOOK=before|after pnpm look:shots made the pictures: 28 of each (light and dark × phone and desktop × seven
screens), from the BUILT app, main 60a9f14 against this branch. They are in the PR, not in git.
What Mark should look at: where the carved look meets Rosea's art rules
Her art rules (docs/ART.md, art/STYLE.md) are not changed. These are the places where the new look and her old look differ, for him to judge:
- The rose colour leaves the buttons.
- Her ordinary buttons were outlined in
--rose. They are now @domi/ui's neutral plate: warm grey on parchment, dark stone at night. - Her quiet buttons were underlined words in
--rose. They are now plain words in--domi-fg-2, bold, with no underline. - Rose now shows only on focus, on the leaf (Done on the first screen), and on the search seal.
- Her ordinary buttons were outlined in
- A heavier, more formal type in the controls. The labels are bold (600) in her system face, where her text around them is regular. The field's label Town or city is bold too.
- Two control styles on the first screen. The gardener's choices stay her soft rose chips (D8). The Done below them is a gilded leaf.
- Taller rows on a phone. Every control is at least 48 px under a finger, so Change gardener now wraps to a line of its own under Her numbers and Keep her safe, with more air around it.
- Dusk. On the sunset scene the plate is recoloured locally to evening glass with the sunset's gold edge (D5). It is the one place with colours that are not @domi/ui's.
- The glint and the strike (a light sweep and a press ring) animate on press. With reduced motion on, Rosea's own rule turns every transition off, as before.
Findings
-
Buttondropsonkeydownandonblurpassed to it. Its own handlers come after{...rest}.- In Rosea that broke three things: the pour by a held Space, the stop on blur, and a held key is one touch. The unit tests caught all three.
- Fixed upstream: PR mnovak/domi-design#18 from here, reviewed and released in @domi/ui 1.4.0. Its two tests
fail on the old Button. Water and Touch her are
Buttonagain; until 1.4.0 they were markup (D3). Move the chair becameButtonwith 1.5.0'sbind:element. Without the binding, the focus test fails (drill).
-
Every
Buttoncarries its ownrole="status"region. Rosea's tests that asked for "the" status found several. Fixed in the tests (test/said.ts, and one e2e locator), not in the vendored code. Rosea never hands a button a Promise (D2), so these regions stay empty and say nothing. -
The design system's English ("Working", "Done", "Searched", "Could not search") would reach the player through a Promise or a search.
- Prevented by D2 and
sentText="". - The seal's name is Rosea's own copy: Search towns.
lint:copynow reads 46 files, including the vendored folder: 0 problems.
- Prevented by D2 and
-
A row of shared buttons does not wrap. Their words stay on one line, and Rosea's links row had no
flex-wrap, so on a 360 px phone it pushed the whole page sideways. The first after pictures showed it.- Fixed:
.more,.actionsand.choiceswrap.
- Fixed:
-
svelte-check could not type
Strike.sveltein v1.0.1, a component with no script. The first build here addedallowJs. v1.0.4 gives it a script upstream, soallowJsis gone again: no change to Rosea's tsconfigs. -
ESLint flagged three rules in the vendored
TextField.svelte. Skipped:packages/domi-uiis ignored, linted upstream, and never edited here. -
The licence.
- v1.0.1 was
UNLICENSEDand v1.0.2 MPL-2.0; neither left this machine. - The copy now is v1.5.0, made by the design system's own
tools/vendor.mjs. It refuses any tag before the CPAL-1.0 v1.0.3, and writesLICENSE,NOTICE,VERSIONand apackage.jsonwithout scripts. It lives inpackages/domi-uias@domi/ui(workspace:*). - The three font packages arrive as its npm dependencies (OFL). Rosea imports none, and
dist/has no font file (counted: 0).
- v1.0.1 was
-
The credit (D9) is
<DomiCredit link={false} />, added in 1.4.0 from this request. Without it, the web address is a link that opens a new window. A tap must not carry the player out of an offline garden; on Android, with no internet, it would lead into a page that never loads. Mark approved the line (via the Aula session): one quiet line on every launch, never a splash.- It stands at the foot of every screen: the first open, the garden and the Letter.
- A unit test holds the exact words and that no link to the address exists. The drill: without the line on the garden, that test failed.
- The tension with CLAUDE.md's Domi never appears alone is Mark's to reconcile in his file. The phrase is the licence's.
-
The README says what §6a asks: Contains @domi/ui (CPAL-1.0, …), in
packages/domi-ui. It now names the public-domain sources of the candidate sentences and the origin of the placeholder art, as the domi-licence session asked.tauri.conf.jsondeclares"license": "CPAL-1.0"for the bundles. -
Android's Autofill request. v1.1.0's
TextField as="auto"draws an editable box on Android, so focusing the town field no longer makes the WebView ask Google's Autofill service. That request is made by the system's service, not Rosea's process, so her missingINTERNETpermission never stopped it. Fixed (D10), with two unit tests (Android: no native field; elsewhere: the native search field), and the drill fails without it. The Aula pictures' phone uses an Android user agent, so they type into the editable box in a real browser. Not measured on the Wave 10: the release APK's next phone run should watch for the Autofill request.
Soul, privacy, reachability, offline
- Soul: no words changed except the seal's name, and no gesture changed. The look is Mark's call (above).
- Privacy: nothing new leaves the device. The vendored CSS is bundled, with no font files and no requests; the e2e suite fails on any request outside the origin.
- Reachability: none.
- Offline:
pnpm test:offline1 passed.
Gates (this branch, v1.5.0, 2026-11-23)
pnpm test: 646 passed. By package: cpu-guard 13, schema 19, identity 5, release 8, storage 70, content 88, art-prep 80, tauri 92, ui 92 (88 before, plus 2 credit tests and 2 Android-field tests), engine 179.pnpm lint,pnpm typecheck: clean.pnpm lint:copy: 30 files, 0 problems.pnpm validate:library: 13 of 13 fixtures rejected.pnpm test:e2e: 26 passed against the built app, axe included.pnpm test:offline: 1 passed. The Aula pictures: 2 passed; their phone has an Android user agent and types into the editable box.- No font file in
dist/.pnpm look:shots: 28 pictures after, compared with the 28 before. - v1.5.0 (Move the chair as
Button): the same counts again: 646 tests, e2e 26, offline 1. The pictures were not retaken: the button renders the same classes and label as the markup it replaces. - Drills, each restored after:
- without the credit on the garden, the credit test fails;
- with
DomiCredit's link back on, it fails; - with a native town field on Android, the Android test fails;
- domi-design's two Button tests fail on the old Button.
Not verified
- The Android and Windows apps: same game, same CSS. Not rebuilt.
- A screen reader. The roles and names are checked by the tests and axe, not heard.