From 7d90493446d36f86ba5af0f946991cd71005deaf Mon Sep 17 00:00:00 2001 From: mnovak Date: Mon, 23 Nov 2026 00:31:01 +0100 Subject: [PATCH] [docs] Domi UI: v1.0.3 under CPAL, one credit for both, the Nix hash the NixOS runner reported --- deploy/nixos/web.nix | 3 +-- docs/domi-ui.md | 21 ++++++++++++++++----- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/deploy/nixos/web.nix b/deploy/nixos/web.nix index f62f89e..381acff 100644 --- a/deploy/nixos/web.nix +++ b/deploy/nixos/web.nix @@ -29,8 +29,7 @@ stdenv.mkDerivation (finalAttrs: { inherit (finalAttrs) pname version src; pnpm = pnpm_11; fetcherVersion = 4; - # lib.fakeHash until a machine with Nix reports the hash for this lockfile (docs/domi-ui.md). - hash = lib.fakeHash; + hash = "sha256-OqQxC6gewmnTxYD5jjDA6l8Lcm/JXxGmLQoyZcXpIh8="; }; buildPhase = '' diff --git a/docs/domi-ui.md b/docs/domi-ui.md index 42b2af8..9ebbfbb 100644 --- a/docs/domi-ui.md +++ b/docs/domi-ui.md @@ -1,8 +1,9 @@ # Ianitor on @domi/ui 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` (MPL-2.0, -like Ianitor; `VERSION` names the tag, v1.0.2) and used as a workspace package by `apps/web` and `packages/ui`: +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 +workspace package by `apps/web` and `packages/ui`: ```json "@domi/ui": "workspace:*" @@ -71,11 +72,21 @@ The host form still checks a field when the focus leaves it, now when it leaves 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 + +@domi/ui and Ianitor are both CPAL-1.0 with the same Exhibit B, so one credit covers both: `` renders +"Built on Domi · https://aula.marek-novak.cz · Copyright (c) 2026 Marek Novák" in the sidebar (every desktop screen), +at the foot of every page on a phone, and in Settings, About. `apps/web/src/lib/credit.ts` holds the same words as +plain data for the e2e real-data check, and a unit test keeps them equal to @domi/ui's. The README says the repo +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.3. + ## Risks -- **The Nix hash is not filled in yet.** `fetchPnpmDeps`'s hash in `deploy/nixos/web.nix` is `lib.fakeHash` because - no machine here has Nix. The first `nix build .#ianitor-web` fails and prints the hash to paste. **Do not merge - before it is pasted and the build passes.** +- **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. - 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.