2 Commits

9 changed files with 23 additions and 19 deletions
-2
View File
@@ -12,8 +12,6 @@
"verbatimModuleSyntax": true, "verbatimModuleSyntax": true,
"isolatedModules": true, "isolatedModules": true,
"skipLibCheck": true, "skipLibCheck": true,
"allowJs": true,
"checkJs": false,
"types": ["vite/client"], "types": ["vite/client"],
"lib": ["ES2022", "DOM", "DOM.Iterable"] "lib": ["ES2022", "DOM", "DOM.Iterable"]
}, },
+2 -3
View File
@@ -182,12 +182,11 @@ 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`). - **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.** **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.3 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 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 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 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. 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). apps/web's tsconfig sets `allowJs` Disabled buttons are natively disabled now (their reasons are visible text).
for @domi/ui's script-less Strike.svelte.
- **Tests:** vitest 23; svelte-check clean; Playwright web 6/6 (the Apply lookup is exact now), aula 5/5; 13 screens - **Tests:** vitest 23; 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. compared before and after (in the PR). No Rust change.
- **Deployed:** nothing. - **Deployed:** nothing.
+4 -9
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`, 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, 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.3; `LICENSE`, `NOTICE` and `VERSION` there stay unchanged) and used as a like Ianitor; `VERSION` names the tag, v1.0.4; `LICENSE`, `NOTICE` and `VERSION` there stay unchanged) and used as a
workspace package by `apps/web` and `packages/ui`: workspace package by `apps/web` and `packages/ui`:
```json ```json
@@ -66,12 +66,6 @@ share dialog still opens with the focus on it.
The host form still checks a field when the focus leaves it, now when it leaves the field and its seal. The host form still checks a field when the focus leaves it, now when it leaves the field and its seal.
## Type checking
@domi/ui's `Strike.svelte` has no `<script lang="ts">`, so TypeScript reads it as JavaScript. `apps/web/tsconfig.json`
sets `allowJs` (with `checkJs` off), as domi-design's own tsconfig does; without it a strict svelte-check refuses the
import (implicit any).
## The credit ## The credit
@domi/ui and Ianitor are both CPAL-1.0 with the same Exhibit B, so one credit covers both: `<DomiCredit />` renders @domi/ui and Ianitor are both CPAL-1.0 with the same Exhibit B, so one credit covers both: `<DomiCredit />` renders
@@ -81,12 +75,13 @@ 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). 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 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.3. 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).
## Risks ## Risks
- **The Nix hash** in `deploy/nixos/web.nix` is the one Fabrica's NixOS runner reported for this lockfile (run - **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 left the lockfile byte-identical. A verify-nix run on the branch confirms it. `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.
- A visual change Mark has not seen beyond the asked-for controls: the field labels are @domi/ui's (13 px, 600), - 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 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. segmented controls are as wide as their choices, not the panel.
+8
View File
@@ -1,5 +1,13 @@
# Changelog # Changelog
## 1.0.4 (2026-11-23)
- Fix: `Strike.svelte` had no `<script>` block, so a consumer whose tsconfig has `allowJs` off (Ludus) got "Could not
find a declaration file" from svelte-check for it and for Button, TextField and index.ts. It now has
`<script lang="ts">`. `pnpm check` also runs svelte-check the way a consumer does (`tsconfig.consumer.json`).
- Docs: the credit is for free and public apps and public repos carrying a copy; paid apps show none (Mark).
pnpm 9 and the `#` in a git dependency's store folder: `virtual-store-dir-max-length=60` (INTEGRATE.md §1).
## 1.0.3 (2026-11-23) ## 1.0.3 (2026-11-23)
- **Licence: CPAL-1.0** (Common Public Attribution License), Mark's licence for @domi/ui and every public Domi repo. - **Licence: CPAL-1.0** (Common Public Attribution License), Mark's licence for @domi/ui and every public Domi repo.
+1 -1
View File
@@ -1,4 +1,4 @@
This folder is @domi/ui v1.0.3, copied unchanged from domi-design by tools/vendor.mjs. This folder is @domi/ui v1.0.4, copied unchanged from domi-design by tools/vendor.mjs.
Licence: Common Public Attribution License 1.0 (LICENSE). Original Code: @domi/ui. Initial Developer: Marek Novák. Licence: Common Public Attribution License 1.0 (LICENSE). Original Code: @domi/ui. Initial Developer: Marek Novák.
Attribution Information (Exhibit B). Any app built with this code shows, prominently in its user interface when Attribution Information (Exhibit B). Any app built with this code shows, prominently in its user interface when
+1 -1
View File
@@ -1 +1 @@
v1.0.3 v1.0.4
+2 -2
View File
@@ -1,7 +1,7 @@
{ {
"name": "@domi/ui", "name": "@domi/ui",
"version": "1.0.3", "version": "1.0.4",
"description": "The Domi design system: tokens for every Domi app, struck buttons and fields with an integrated send button, Svelte 5 components. Vendored copy of v1.0.3: do not edit here; change domi-design and vendor the next tag.", "description": "The Domi design system: tokens for every Domi app, struck buttons and fields with an integrated send button, Svelte 5 components. Vendored copy of v1.0.4: do not edit here; change domi-design and vendor the next tag.",
"license": "CPAL-1.0", "license": "CPAL-1.0",
"type": "module", "type": "module",
"svelte": "./src/index.ts", "svelte": "./src/index.ts",
@@ -1,2 +1,6 @@
<script lang="ts">
// No props. The script block makes this a typed component for consumers whose tsconfig has allowJs off.
</script>
<!-- The loading mark: three Roman interpuncts struck in turn. Decorative; the state is announced in words. --> <!-- The loading mark: three Roman interpuncts struck in turn. Decorative; the state is announced in words. -->
<span class="domi-strike" aria-hidden="true"><i></i><i></i><i></i></span> <span class="domi-strike" aria-hidden="true"><i></i><i></i><i></i></span>
+1 -1
View File
@@ -2,7 +2,7 @@
/* eslint-disable */ /* eslint-disable */
export const tokens = { export const tokens = {
"name": "@domi/ui", "name": "@domi/ui",
"version": "1.0.3", "version": "1.0.4",
"note": "GENERATED by tools/build-tokens.mjs. Colours are sRGB hex. Use roles, never the hex in a component.", "note": "GENERATED by tools/build-tokens.mjs. Colours are sRGB hex. Use roles, never the hex in a component.",
"themes": { "themes": {
"dark": { "dark": {