Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a240d35ca2 | |||
| 87ca83cd1b | |||
| 7f8b6861f9 | |||
| 8018268821 | |||
| 295e6ba59a | |||
| 130e3a51a2 | |||
| 7dd291d730 | |||
| 0d5124d4a1 | |||
| 60a9f14d2c | |||
| 816b47b113 | |||
| f4efc9e27a | |||
| 4d18ea0afc | |||
| b3076553ef | |||
| 0ab845dcbb | |||
| f5d8d2c581 | |||
| 7cd7dda0c0 | |||
| 9b8eb7036d |
+4
-1
@@ -5,7 +5,10 @@ One row per feature, with its analysis document (CLAUDE.md §5.1). Gaps live in
|
||||
|
||||
| Feature | Phase | Status | Analysis | Review |
|
||||
|:--|:--|:--|:--|:--|
|
||||
| Released through Fabrica: `.fabrica/` (app, release and e2e pipelines, tests, Aula pictures), the Aula page's words, the version check, the APK signed in Custos, `domi-rosea://open` from the installer, the showcase pictures on demo data, the phone target | Platform track | On `feature/fabrica-release`. Not published: the first release waits for the author (G-F1, G6.1) | [fabrica-release.md](features/fabrica-release.md) | [feature-fabrica-release.md](reviews/feature-fabrica-release.md) |
|
||||
| Released through Fabrica: `.fabrica/` (app, release and e2e pipelines, tests, Aula pictures), the Aula page's words, the version check, the APK signed in Custos, `domi-rosea://open` from the installer, the showcase pictures on demo data, the phone target | Platform track | Merged to `main` (9b8eb70). Not published: the first release waits for the author (G-F1, G6.1) | [fabrica-release.md](features/fabrica-release.md) | [feature-fabrica-release.md](reviews/feature-fabrica-release.md) |
|
||||
| @domi/ui: the shared buttons and the town search field, vendored v1.5.0 (CPAL-1.0); the licence credit at the foot of every screen | Platform track | Built on `feature/domi-ui`; the look is Mark's to judge from the pictures | [domi-ui.md](features/domi-ui.md) | [feature-domi-ui.md](reviews/feature-domi-ui.md) |
|
||||
| Atrium Domi adoption: the inventory (Tauri calls, data, network, accent, icon) and the plan for steps 1–8 of Atrium's Appendix A | Platform track | Plan merged (f4efc9e); step 1 = `domi-app.toml` alone (`feature/atrium-door`), the door skipped by Mark's ruling | [atrium-adoption.md](features/atrium-adoption.md) | [docs-atrium-adoption.md](reviews/docs-atrium-adoption.md), [feature-atrium-door.md](reviews/feature-atrium-door.md) |
|
||||
| The APK for a release, tested on the Wave 10 through the phone queue: `reset: uninstall`, `maxMinutes`, the e2e pipeline's `phone` step, the release APK built and verified | Platform track | Merged (f5d8d2c); the phone test passed on the Wave 10 through the queue, 1 of 1 (2026-11-21). Blocked: `rosea-android` does not exist (G-F7); publication (G-F1) | [android-release-apk.md](features/android-release-apk.md) | [feature-android-release-apk.md](reviews/feature-android-release-apk.md) |
|
||||
| Keep her safe in the apps: true words, Android's own save screen, the page kept between the system bars | Platform track | Merged to `main` 2026-11-17; built on this machine, not distributed. Closes G-T4 and, on Android, G-T5 | [keep-her-safe-apps.md](features/keep-her-safe-apps.md) | [feature-keep-her-safe-apps.md](reviews/feature-keep-her-safe-apps.md) |
|
||||
| Four versions, one garden: the Tauri 2 shell (`apps/rosea-tauri`) for Android, iOS and desktop beside the PWA; a Windows build and an Android debug APK run on the tablet | Platform track | Merged to `main` 2026-11-17; built on this machine, not distributed. iOS needs a Mac (G-T1); *Keep her safe* in the apps is a release blocker (G-T4) | [tauri-platforms.md](features/tauri-platforms.md) | [feature-tauri-platforms.md](reviews/feature-tauri-platforms.md) |
|
||||
| Workspace, contracts, gates, PWA shell | 0 | Merged to `main` 2026-11-01 (`d11d242`); built, not deployed. Phase 0 gate still open | [phase0-workspace.md](features/phase0-workspace.md) | [feature-phase0-workspace.md](reviews/feature-phase0-workspace.md) |
|
||||
|
||||
@@ -77,7 +77,7 @@ Svelte codebase, the apps through a Tauri 2 shell. Analysis:
|
||||
| ~~G-T0~~ | ~~No shell, no app on any platform~~ | Closed 2026-11-17 on `feature/tauri-platforms`: `apps/rosea-tauri`; Windows `.exe` + NSIS installer built and checked (watered, closed, reopened, still watered); Android debug APK verified with `aapt2` (no permission, no backup) and checked on the WAVE 10C, Android 16, offline by construction. 40 shell tests; 14 of 14 drills caught. |
|
||||
| G-T1 | iOS | Open. Needs macOS + Xcode, the iOS Rust targets, an Apple developer account. `pnpm tauri:ios` refuses elsewhere. |
|
||||
| G-T2 | macOS and Linux desktop builds | Open. Each on its own system; macOS signing/notarisation. |
|
||||
| G-T3 | Release signing (Android keystore, Windows certificate); AAB; stores | Narrowed 2026-11-19 on `feature/fabrica-release`: the release pipeline signs the installer with Custos's `domi-code-signing` and the APK with `rosea-android` through `custos-sign` (Custos makes the key on the first release); no key in the repository (`fabrica-release.md` F4). **Still open:** no signature made yet (the first release waits, G-F1); AAB and stores (Phase 6). |
|
||||
| G-T3 | Release signing (Android keystore, Windows certificate); AAB; stores | Narrowed 2026-11-19 on `feature/fabrica-release`: the release pipeline signs the installer with Custos's `domi-code-signing` and the APK with `rosea-android` through `custos-sign`; no key in the repository (`fabrica-release.md` F4). **Still open:** `rosea-android` does not exist and Custos (0.22.0 here, 0.24.0 too) will not make it: it is not in Custos's `ANDROID_APPS` (`android-release-apk.md` A6, G-F7); no signature made yet (the first release waits, G-F1); AAB and stores (Phase 6). |
|
||||
| ~~G-T4~~ | ~~Keep her safe inside the apps — release blocker~~ | Closed 2026-11-17 on `feature/keep-her-safe-apps`: the apps say *She lives in this app, on this device, until the app is removed…* and ask no browser; Android saves through its own save screen by a narrow Kotlin bridge (no plugin, no IPC, no permission) and says *She is in that file now.*; Windows downloads. Seen on the tablet (2 of 2) and on Windows (3 of 3); 572 unit tests; every drill caught after one test was tightened. |
|
||||
| ~~G-T5~~ | ~~Bringing her back from a file inside the apps~~ | Closed on Android 2026-11-17: the round trip on the tablet, *Everything in that file is already here.* Windows not driven. |
|
||||
| G-T6 | WebView2's own traffic not measured for Rosea | Open. Flags from Amicitia's measurement are set; measure before a desktop release. |
|
||||
@@ -93,9 +93,16 @@ Svelte codebase, the apps through a Tauri 2 shell. Analysis:
|
||||
| G-F2 | Canalis Part B: no capability is served | Open by decision (F6): no capability found that neither writes into her nor reads her; Canalis keys need Custos, which a player does not have. |
|
||||
| G-F3 | No showcase videos | Open: Pensum `kkpy69`, once Fabrica docs/37 is on `main`. |
|
||||
| G-F4 | `domi-rosea://` not seen working | Open: the hook is tested as text; no installer was run on this PC (it writes the real registry). |
|
||||
| G-F5 | The `phone` target has not run | Open: it runs only through Fabrica's phone queue (CLAUDE.md for this brief); see the review. |
|
||||
| ~~G-F5~~ | ~~The `phone` target has not run~~ | **Closed 2026-11-21:** `fabrica tests run --target phone` through the hub's queue, run `20261121-101158-uckm` 1 passed 0 failed on the Wave 10 (debug APK `bd59ff908125…`, commit f5d8d2c); the planted-fault drill `20261121-102500-crkf` failed as it must. The e2e pipeline's `phone` step still waits for the hub's e2e runner (Mark). Earlier: narrowed 2026-11-21 (`android-release-apk.md`): `reset: uninstall`, `maxMinutes: 20`, and the e2e pipeline's `phone` step (`device: Wave 10`) puts it in the hub's queue. **Still open:** the Wave 10 is not paired in Fabrica (`fabrica devices list`: *connected (not paired in Fabrica)*), so the step cannot get its phone; pairing is the Fabrica session's. |
|
||||
| G-F7 | No key signs the APK | Open (`android-release-apk.md` A6): `rosea-android` is not in Custos's `ANDROID_APPS`, so the release's `apk` step stops at `no_key`. Custos's change (or Mark's *Create Android key*), then the release. The unsigned release APK builds and verifies. **Narrowed 2026-11-22:** Custos 0.25.0's table still has no Rosea row. Its *Android grant* makes the key on a release's first signature, from the repo's own `release` pipeline (signing.rs test `the_android_grant_makes_an_apps_key…`). Per the Aula session, Custos 0.25.2 is installed and Mark gave the grant for `mnovak/*`. This is unverified until the first signature. |
|
||||
| G-F6 | PWA updates have no host | Open with G0.13: the service worker and *Refresh* are built; nothing serves the PWA. |
|
||||
|
||||
## Atrium Domi — adoption (`atrium-adoption.md`)
|
||||
|
||||
| Id | Gap | Status / evidence |
|
||||
|:--|:--|:--|
|
||||
| G-AT1 | Rosea is not Atrium-ready (manifest, service door, hosted mode, backup snapshot, audit, export) | **Narrowed 2026-11-22** (`feature/atrium-door`): step 1 is the `domi-app.toml` alone (contract v0.1 §8 3e), and Atrium's own parser accepts it; 27 hostile fixtures are refused with the parser's codes. The door is skipped by Mark's ruling (manifest only, no rule changes). Earlier: open, **plan only** (2026-11-22). Inventory: no Tauri invoke or listen, one database (`rosea` IndexedDB), no outgoing request. Step 1 waits for Atrium's `APP_CONTRACT.md` v0, and the later steps wait for their Atrium Day. R1 (keep the origin) and R4 (Rust in the shell) are Mark's. |
|
||||
|
||||
## Phase 6 — Release
|
||||
|
||||
| Id | Gap | Status / evidence |
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
# The Android APK in a release, tested on the Wave 10 through Fabrica's phone queue
|
||||
|
||||
Branch `feature/android-release-apk`, 2026-11-21. Follows [`fabrica-release.md`](fabrica-release.md) (F1–F11), which
|
||||
made Rosea a Fabrica app with no release yet.
|
||||
|
||||
## 1. Why and what, in the player's terms
|
||||
|
||||
Mark asked for every Domi app to ship its APK, tested at least once on a real phone first: *install, open, the first
|
||||
screen shows, one real action*. For Rosea the real action is to water her, and the check that matters is that she is
|
||||
still watered after the app is closed and opened again. A rose that forgets her care on a phone is the cruellest bug
|
||||
this product could have (CLAUDE.md §8).
|
||||
|
||||
A player gets the APK from Rosea's Aula page once a release is published. Nothing about the game changes. This
|
||||
branch changes how the APK is built, tested and released.
|
||||
|
||||
## 2. Technical architecture
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
subgraph repo["Rosea (this repository)"]
|
||||
game["apps/rosea → dist-tauri/"] --> shell["apps/rosea-tauri: tauri android build"]
|
||||
shell --> debug["debug APK (WebView drivable)"]
|
||||
shell --> unsigned["release APK, unsigned<br/>android.ts verify: no permission, no backup"]
|
||||
spec["e2e/android/garden.android.ts"]
|
||||
end
|
||||
subgraph fabrica["Fabrica (Mark's PC and the hub)"]
|
||||
e2e["e2e pipeline, runner windows-e2e<br/>step phone: device Wave 10"] --> lease["hub: phone queue lease"]
|
||||
lease --> run["fabrica tests run --target phone<br/>reset uninstall, install, launch"]
|
||||
rel["release pipeline: android → approve → apk"]
|
||||
end
|
||||
debug --> e2e
|
||||
spec --> run
|
||||
run --> phone(("Wave 10"))
|
||||
unsigned --> rel
|
||||
rel --> custos["Custos: custos-sign apk, key rosea-android"]
|
||||
custos --> mini["minisign (domi-release), SHA256SUMS"]
|
||||
```
|
||||
|
||||
- **A1. Two APKs, one game.** The phone test drives the **debug** APK. Only a debug build's WebView can be reached
|
||||
over DevTools (Fabrica docs/22 part 5), and Tauri's `devtools` feature would make the *release* WebView drivable for
|
||||
anyone with a cable, so the shipped APK never gets it. The two APKs carry the same `dist-tauri/` game, the same
|
||||
manifest patch (no `INTERNET`, no backup) and the same `MainActivity`. They differ in the Rust profile and the
|
||||
signing key. What the phone test cannot prove about the release APK is listed in §5.
|
||||
- **A2. The phone only through the queue.** The `phone` step of `.fabrica/artifex/e2e.yaml` says `device: Wave 10`.
|
||||
The hub queues the run for the phone, the runner sets `ANDROID_SERIAL` and `FABRICA_PHONE_LEASED`, and the nested
|
||||
`fabrica tests run --target phone` uses that phone without a lease of its own (docs/35 part 4). The spec skips
|
||||
unless Fabrica's environment is there, so it never reaches for a phone by itself.
|
||||
- **A3. `reset: uninstall`, not the default `clear`.** The target installs the debug APK. A release build of Rosea
|
||||
on the phone has another key and would refuse the install. `clear` would wipe its data and then fail anyway;
|
||||
`uninstall` wipes the same data and installs fresh. The Wave 10 is the dedicated test phone (docs/35 part 5), and
|
||||
no player's rose lives on it.
|
||||
- **A4. `maxMinutes: 20`.** One test of about two minutes, plus install and launch. Twenty minutes frees the phone
|
||||
for the next app if the run hangs, well under the 60-minute default.
|
||||
- **A5. Caches off C:.** Both pipelines name `GRADLE_USER_HOME` on `D:\build\rosea\gradle` and the NDK
|
||||
(`NDK_HOME`, which the Tauri CLI needs and this PC does not set). A local build also puts Cargo's target folder,
|
||||
`TEMP` and `ANDROID_USER_HOME` under `D:\build\rosea`. The pipelines keep Cargo's target in the checkout, because
|
||||
the installer's artifact glob is there.
|
||||
- **A6. Signing: `rosea-android` does not exist, and Custos will not make it.** Custos creates an Android key on an
|
||||
app's first release only for the apps in its `ANDROID_APPS` table (`apps/desktop/src-tauri/src/signing.rs`). In
|
||||
0.24.0 that table holds Postea, Culina and Liber, and Mark's PC runs 0.22.0, which holds Postea only. Rosea's `apk`
|
||||
step would stop at `no_key`, as Culina's and Liber's did on 2026-11-20. Two fixes exist, and both belong to
|
||||
Custos and Mark, not to this repository: a Custos change that adds `rosea-android` (`CN=Rosea Domi`, only
|
||||
`mnovak/Rosea`, pipeline `release`) and its install on this PC, or Mark's *Create Android key* by hand.
|
||||
`fabrica-release.md` said "Custos makes the key on the first release". It was wrong, and is corrected here.
|
||||
- **A7. The certificate is forever.** Once a player installs an APK signed with `rosea-android`, every update must
|
||||
carry the same certificate (CLAUDE.md §8). The CN names the product, *Rosea Domi*, and the name is still provisional.
|
||||
The key outlives a rename: a renamed app keeps the old CN, and no player sees it.
|
||||
|
||||
## 3. Risk analysis
|
||||
|
||||
| Risk | Where | Answer |
|
||||
| :-- | :-- | :-- |
|
||||
| A player's rose lost on the test phone | `reset: uninstall` | The Wave 10 is Fabrica's dedicated test phone (docs/35 part 5). The memory rule stands: Fabrica stops the app after the run, and the spec force-stops it in `finally` as well. |
|
||||
| The release APK phones home | the APK | `android.ts verify` reads the built APK with `aapt2` and refuses any permission or backup flag. It runs in the release pipeline's `android` step and in every local build. |
|
||||
| Someone made reachable | none | No network feature. The APK asks for no `INTERNET` permission, so the kernel refuses every socket. |
|
||||
| A tester's place on the phone | the spec | The spec chooses *Not now*, so no town is ever chosen on the phone. |
|
||||
| A release signed with a stand-in key | signing | The `apk` step names `rosea-android` only, through Custos, and refuses `CUSTOS_PIPE` (sign-apk.ts). There is no fallback to a debug or local keystore. A missing key stops the release. |
|
||||
| An untested APK published | the release | The phone test is a pipeline of its own: phones are leased per run, and the release must not hold the phone for two hours. Until the e2e pipeline's `phone` step has passed on a commit, that commit is not tagged (process, §5). |
|
||||
|
||||
## 4. Gap analysis and the designed solution
|
||||
|
||||
| Gap | Solution here | Left open |
|
||||
| :-- | :-- | :-- |
|
||||
| The phone target did not say `reset` or `maxMinutes` (the old CLI refused them) | The installed CLI reads both now: a planted `reset: wipe-everything` is refused by `fabrica artifex check`. Written: `reset: uninstall`, `maxMinutes: 20`. | none |
|
||||
| No pipeline put the phone run in the queue | `e2e.yaml` gains `apk` (`pnpm tauri:android`) and `phone` (`device: Wave 10`). | It has not run: the Wave 10 is not paired in Fabrica (below). |
|
||||
| The release pipeline's Android step lacked the NDK and put Gradle on C: | `NDK_HOME` and `GRADLE_USER_HOME` in `release.yaml`'s env. | none |
|
||||
| The release APK was never built | Built here with caches on D:, then checked by `android.ts verify` (§5). | Not signed (A6). |
|
||||
| `rosea-android` | Named as Custos's change (A6). | **Custos's and Mark's.** |
|
||||
| The Wave 10 is not paired in Fabrica | `fabrica devices list` shows `WAVE 10C connected (not paired in Fabrica)`. `pass::resolve` then finds no phone named *Wave 10*, and the step fails before it runs. | **The Fabrica session's** (Pipelines → Workshop → Devices → Pair a phone). |
|
||||
| Publication | G6.1: the repository is public, so a release is public, and a legal check of the look comes first. | **Mark's** (`fabrica-release.md` F1). |
|
||||
|
||||
## 5. Verification matrix
|
||||
|
||||
| Case | Kind | How | Status |
|
||||
| :-- | :-- | :-- | :-- |
|
||||
| The release APK builds with every cache off C: | build | `pnpm tauri:android-release` | done 2026-11-21: 27 min from cold (Gradle 9.6.1 downloaded to D:), 5.60 MiB, arm64-v8a, versionCode 1000, sha256 4d52e9eca4cd2e56… (unsigned) |
|
||||
| The release APK asks for no permission and allows no backup | build check | `android.ts verify <unsigned apk>` (aapt2) | done: verified; `aapt2 dump badging` shows no `debuggable` and only androidx's own `DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION` (the app's own signature permission, not a capability) |
|
||||
| `reset` and `maxMinutes` are read, and a wrong `reset` is refused | config | `fabrica artifex check` with a planted value | done: refused with `targets[1].reset: clear, uninstall or keep` |
|
||||
| The pipelines are valid | config | `fabrica artifex check` | done: 0 problems |
|
||||
| Install, open, first screen, water, close, reopen, still watered | e2e, real phone | `fabrica tests run --target phone` through the hub's queue (the e2e runner is not yet added, so not the pipeline step) | done 2026-11-21: run `20261121-101158-uckm` **1 passed, 0 failed** (7.9 s; waited 12 s in the queue) on the Wave 10, Android 16, debug APK sha256 `bd59ff908125…`, commit f5d8d2c |
|
||||
| The phone test fails when persistence is wrong | e2e drill | planted `Days of care 2`, run through the queue, restored by copy | done: run `20261121-102500-crkf` **0 passed, 1 failed**, received `Days of care1` after the reopen |
|
||||
| The spec never reaches for a phone outside the queue | e2e | `test.skip` without `FABRICA_TESTS_PACKAGE` and `ANDROID_SERIAL` | by construction |
|
||||
| The signed APK verifies with `rosea-android`'s certificate | release | the `apk` step (custos-sign verifies with apksig) | **not run**: no key |
|
||||
| What the debug test cannot prove about the release APK | manual | install the signed release APK on the Wave 10 once, water, close, reopen | after the key exists |
|
||||
@@ -0,0 +1,256 @@
|
||||
# Atrium adoption: making Rosea Domi "Atrium-ready" (plan)
|
||||
|
||||
Status: the plan was merged as f4efc9e (PR mnovak/Rosea#4). **Step 1, part A is built** on `feature/atrium-door`, 2026-11-22: the `domi-app.toml` (§8). Part B, the door and the fallback, is skipped by Mark's ruling: manifest only, no rule changes. The brief is Mark's, passed on by the Aula
|
||||
session: prepare Rosea for Atrium Domi. The source is `F:\Akce\Atrium-plan\ROADMAP.md` §1–2 and Appendix A. Rules for when each step may start:
|
||||
|
||||
- Step 1 code waits for Atrium's `docs/APP_CONTRACT.md` v0 on its `main`.
|
||||
- Each later step waits until its Atrium Day lands.
|
||||
- Visual changes wait for `@domi/ui`.
|
||||
|
||||
This file is the inventory Appendix A asks for, plus the decisions those steps would force on Rosea. Its §6 lists the questions for Mark.
|
||||
|
||||
## 1. Why and what, in the player's terms
|
||||
|
||||
Atrium Domi is the single free thing a Domi user installs:
|
||||
|
||||
- a tray service that handles updates, licences, backup and the record of *What left this computer*;
|
||||
- a window whose rooms are the Domi apps.
|
||||
|
||||
For Rosea, three things matter to the player:
|
||||
|
||||
- **Backup.** Her rose is backed up with everything else, in one click, with no account. This is a stronger answer to
|
||||
the trap Rosea fears most, a player coming back to find her gone (CLAUDE.md §8), than *Keep her safe* alone.
|
||||
- **The record.** *What left this computer* shows Rosea as having sent nothing, which is the truth.
|
||||
- **Standalone.** The garden opens inside Atrium's window, and the app still opens on its own exactly as today.
|
||||
Atrium is the door, not a lock (ROADMAP §1).
|
||||
|
||||
Nothing about the game changes. The PWA and the Android app are not part of Atrium; Atrium is a Windows desktop
|
||||
service plus a NixOS server edition.
|
||||
|
||||
## 2. Inventory (what Appendix A asks for)
|
||||
|
||||
### 2.1 Direct Tauri invoke/listen in the UI (for `@domi/bridge`, step 2)
|
||||
|
||||
**None.** The shell is *a window and nothing else* (CLAUDE.md §2). Here is what was checked on `main` (b307655):
|
||||
|
||||
- **No Tauri JavaScript API.** No `@tauri-apps/api` dependency anywhere, and no `invoke(`, `listen(` or `__TAURI__`
|
||||
in `apps/rosea/src` or `packages/*/src`.
|
||||
- **No commands, no plugins, no IPC grant.** `apps/rosea-tauri/src-tauri/src/lib.rs` is a bare `tauri::Builder`, and
|
||||
`capabilities/` is absent on purpose, so the page has no IPC at all.
|
||||
- **The one native bridge is Android-only and not Tauri.** It is `window.roseaFile.save(name, text)`, registered
|
||||
with `addJavascriptInterface` in `apps/rosea-tauri/android/java/MainActivity.kt`. It is used by
|
||||
`apps/rosea/src/App.svelte` for *Keep her safe* (`keep-her-safe-apps.md`) and pinned by
|
||||
`apps/rosea-tauri/test/android-bridge.test.ts`. Atrium has no Android part, so it stays.
|
||||
- **The one shell switch is a build-time constant,** `__ROSEA_SHELL__`, read only in `App.svelte`.
|
||||
|
||||
So step 2 has nothing to replace. It becomes a guard: a test that the game still imports no `@tauri-apps/api`
|
||||
(added with step 1 or 3, whichever comes first).
|
||||
|
||||
### 2.2 Data folders and databases (for `rosea.backup.snapshot`, step 4)
|
||||
|
||||
**Rosea writes one thing: the IndexedDB database `rosea`**, through Dexie in `packages/storage` (schema version 2):
|
||||
|
||||
| Store | Contents | Can be remade? |
|
||||
|:--|:--|:--|
|
||||
| `profile` | the rose's name, the gardener, the chosen sunset town (or none), settings, `pastKeys` | the name, gardener and town take a tap each; `pastKeys` cannot be remade |
|
||||
| `events` | the append-only care log, *the truth* (CLAUDE.md §4) | **no** |
|
||||
| `keys` | the identity keypair; the private key is a **non-extractable** WebCrypto key | **no, and it cannot be read out at all** |
|
||||
|
||||
It sits in the webview's profile and is not a file of Rosea's own:
|
||||
|
||||
| Version | Folder |
|
||||
|:--|:--|
|
||||
| Windows (the only one Atrium sees) | `%LOCALAPPDATA%\cz.mareknovak.domi.rosea\EBWebView\` (WebView2's user data folder). The database is LevelDB under `Default\IndexedDB\https_tauri.localhost_0.indexeddb.leveldb` *(this exact path is predicted on Windows; it was seen on Android)* |
|
||||
| macOS, Linux | WKWebView / WebKitGTK data folders *(predicted)*, CLAUDE.md §4 |
|
||||
|
||||
The Rust side writes no file. There is no SQLite.
|
||||
|
||||
### 2.3 Every outgoing network request (for the audit, step 5)
|
||||
|
||||
**None from Rosea.** The evidence:
|
||||
|
||||
| Layer | What holds it |
|
||||
|:--|:--|
|
||||
| The game | no `fetch`, `XMLHttpRequest`, `WebSocket`, `sendBeacon`, `EventSource` or `RTCPeerConnection` in `apps/rosea/src` or `packages/*/src` (grep, b307655) |
|
||||
| The page's policy | CSP `connect-src 'self'` and `default-src 'self'`, from `tauri.conf.json` `app.security.csp`, held equal to the PWA's `<meta>` by the shell's test |
|
||||
| The WebView2 runtime | `additionalBrowserArgs` switches off its own calls home: DoH, SmartScreen, Autofill, Translate, background networking, component update and more (CLAUDE.md §8, *the webview phones home*). **Not yet measured on Windows** |
|
||||
| Android (not in Atrium) | no `INTERNET` permission, checked with `aapt2` on every build |
|
||||
|
||||
What could leave in future:
|
||||
|
||||
- the WebView2 runtime itself, if a runtime update breaks the switches;
|
||||
- Phase 3 friend sync (WebRTC);
|
||||
- Phase 4 `lucerna`.
|
||||
|
||||
Each of those gets its `fundamentum.audit.record` when it arrives. The step-5 test for Rosea is the reverse of the
|
||||
Appendix's: *any* request fails the suite. Today that means a built-app e2e that records every request and expects
|
||||
none outside the origin. The offline suite already comes close.
|
||||
|
||||
### 2.4 Accent and icon (for `domi-app.toml`, step 1)
|
||||
|
||||
| Field | Proposal | Source |
|
||||
|:--|:--|:--|
|
||||
| `id` | `rosea` | the `@rosea/*` scope, `domi-rosea://` |
|
||||
| `name` | `Rosea Domi` | `packages/schema/src/constants.ts`; *Domi* never alone |
|
||||
| `label` | `Rose` *(judgment: a plain word, as Appendix A asks)* | — |
|
||||
| `accent` | `#e8899b`: `--rose` on the dark theme. Atrium Domi's window is dark, and its catalogue already names this colour for Rosea (`atrium-registry` `catalogue.rs`). The light `--rose` is `#b4485e` | `packages/ui/src/tokens.css` |
|
||||
| `icon` | `domi-icon.png`: the shell's 256 px icon, `icons/128x128@2x.png`, made from `apps/rosea/public/icon.svg` at build time. A **placeholder** (form only); the real icon comes through `docs/ART.md` | `tauri.windows.conf.json` `bundle.resources` |
|
||||
| `ui_bundle` | `apps/rosea/dist-tauri/` (base `/`, no worker, no manifest) | §3, R1 |
|
||||
| `hostable` | `true`, with the origin rule in R1 | — |
|
||||
| `free` | `true`: Mark's rule, *`free = true` for all apps for now* (via the Aula session, 2026-11-22). Rosea needs no licence anyway (APP_CONTRACT §2.2) | — |
|
||||
| `capabilities` | `rosea.backup.snapshot`, `rosea.ui.*` (hosted), later `rosea.export.open`. **No** `rosea.atrium.badge` | §5 |
|
||||
|
||||
## 3. Technical architecture (as planned)
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
subgraph atrium["Atrium Domi (not in this repo)"]
|
||||
svc["atrium-service<br/>\\.\pipe\domi-atrium"]
|
||||
win["Atrium window"]
|
||||
end
|
||||
subgraph shell["apps/rosea-tauri (Rust)"]
|
||||
door["service door client<br/>(new, step 1)"]
|
||||
snap["rosea.backup.snapshot<br/>(new, step 4)"]
|
||||
end
|
||||
subgraph game["apps/rosea + packages/* (unchanged)"]
|
||||
store["packages/storage<br/>exportRose / importRose"]
|
||||
idb[("IndexedDB rosea<br/>in WebView2's folder")]
|
||||
end
|
||||
svc <--> door
|
||||
door --> snap
|
||||
snap -. "asks the page" .-> store --> idb
|
||||
win -. "hosts rosea.ui.* (step 3)" .-> shell
|
||||
game -. "imports nothing of Atrium's" .- atrium
|
||||
```
|
||||
|
||||
**The seam stays where it is.** The game never learns Atrium exists, just as it never learns which shell it is in
|
||||
except through `__ROSEA_SHELL__`. Everything Atrium needs lives in `apps/rosea-tauri`. That shell stays deletable,
|
||||
and the PWA stays whole without it.
|
||||
|
||||
### Decisions this forces (proposed; Mark decides those marked so)
|
||||
|
||||
| # | Proposal | Why |
|
||||
|:--|:--|:--|
|
||||
| R1 | **Hosted mode keeps Rosea's own webview and origin.** Atrium shows Rosea's window as a room (`--hosted` = Rosea's process, its WebView2 folder, `https://tauri.localhost`). Atrium does not load `ui_bundle` in a webview of its own. | IndexedDB is per origin and per profile. A bundle loaded by Atrium's webview opens an **empty** database, and the player meets a new rose with hers apparently gone: the cruellest bug this product could have (CLAUDE.md §8, *the origin is forever*). If Atrium can only host by loading the bundle, Rosea is `hostable = false` until a migration is designed. |
|
||||
| R2 | **The snapshot is the care log, taken by the game**: `exportRose`'s `rosea-rose` file (`keep-her-safe.md` K1: keys + events, never the private key, never the town). The shell asks the page for it and writes it into the folder the service gives. | Copying LevelDB from under a running webview is not consistent, and the private key cannot be copied at all. The `rosea-rose` file is the one format already tested to restore additively (K3, K4). |
|
||||
| R3 | **Restore is *bring her back*,** not a byte copy. It goes through `importRose`, which only appends. The restored rose lives under a new key with her old care intact (K2). | Contributions only add, and the log is never rewritten (CLAUDE.md §1, §6.2). |
|
||||
| R4 | **Mark decides:** the shell gains Rust code and a local named-pipe client, the first code beyond *a window*. Step 4 needs one page↔shell channel: one Tauri command, or `eval` plus an event, granted only to Rosea's own origin. | This changes CLAUDE.md §2 (*no Tauri command, no plugin*). The pipe is local, not a network, but it is new surface. It is reviewed like a plugin, for network access. |
|
||||
| R5 | **No badge, and *today* only if Mark wants it.** If there is a `rosea.atrium.today` at all, it is the real sunset time (*points beyond the screen*). It never mentions the rose's state. | A badge is a count, and a count about her waiting is guilt with a ribbon (CLAUDE.md §8). |
|
||||
| R6 | **Export (step 7) is the `rosea-rose` JSON**, an open format, with a README line. | It exists already. |
|
||||
| R7 | **The name gains no new place.** `domi-app.toml` is made before each desktop build from `PRODUCT_NAME`, `PRODUCT_SHORT_NAME` and the game's version (`scripts/domi-app.ts`), and it is never committed. | Renaming stays one commit (CLAUDE.md, header), and Fabrica's four version files stay four. |
|
||||
|
||||
## 4. Risk analysis
|
||||
|
||||
| Risk (a person feeling worse, a location, someone reachable) | Where | Answer |
|
||||
|:--|:--|:--|
|
||||
| Her rose seems gone inside Atrium | hosted mode | R1: same origin and profile, or not hostable; an e2e that opens her in both and sees the same days of care |
|
||||
| A restore takes care away | backup | R3: additive import only, property-tested already (K3) |
|
||||
| The town leaves the device in a backup | snapshot | it is not in the file (K1). Backups are encrypted by Atrium, and the target is the player's |
|
||||
| A badge or a *today* line that blames | Atrium Home | R5 |
|
||||
| The pipe becomes a way in | step 1 | Canalis's Noise handshake with Tessera keys (ROADMAP §2); Rosea serves only `rosea.*` to Atrium |
|
||||
| Atrium not running pulls the player away from her | step 1 | the wait and the *Atrium Domi is not running* card must never stand between a cold open and the garden. Rosea opens first, and the card is a quiet line, never a blocker (*three taps to action, one preferred*) |
|
||||
|
||||
## 5. Gap analysis and steps
|
||||
|
||||
Only the steps whose Atrium Day has landed may start, and Aula says when.
|
||||
|
||||
| Step | Atrium Day | Rosea's work | State |
|
||||
|:--|:--|:--|:--|
|
||||
| 1 Manifest + service door | Day 1 + `APP_CONTRACT.md` v0 | A: `domi-app.toml` (§2.4, §8). B: the door client and the fallback | **A built** (`feature/atrium-door`); **B skipped** by Mark's ruling (§8) |
|
||||
| 2 Bridge | Day 4 | nothing to replace (§2.1); a guard test | waits |
|
||||
| 3 Hosted mode | Day 4 | `--hosted`, `rosea.ui.*`, R1 | waits; R1 needs Atrium's answer |
|
||||
| 4 Backup snapshot | Day 3 | R2, R3, R4; a test: a snapshot taken while she is watered restores to a consistent, additive state | waits; R4 is Mark's |
|
||||
| 5 Audit | Day 2 | no request to record; a test that none is made (§2.3) | waits |
|
||||
| 6 Today/search | Day 6 (optional) | R5 | Mark's choice |
|
||||
| 7 Export | Day 8 | R6 | waits |
|
||||
| 8 Release | — | through Fabrica, as today | waits for G6.1 and G-F1 |
|
||||
|
||||
Visual changes (the room's look, `@domi/ui`) wait for `@domi/ui`.
|
||||
|
||||
## 6. Questions for Mark (through Aula)
|
||||
|
||||
1. **R4:** may the shell gain Rust code, a local pipe client and one page↔shell channel? This amends CLAUDE.md §2.
|
||||
2. **R1:** can Atrium host a room as the app's own window, keeping its origin? If not, Rosea is `hostable = false` for now.
|
||||
3. Is Rosea **free**?
|
||||
4. **R5:** should Rosea have a *today* line at all, with the sunset time only?
|
||||
|
||||
## 7. Verification matrix (for when the steps are built)
|
||||
|
||||
| Case | Kind |
|
||||
|:--|:--|
|
||||
| The garden opens standalone exactly as before, with Atrium absent and with it present | e2e (built `.exe`) |
|
||||
| A cold open is never blocked by a missing service | e2e |
|
||||
| The hosted room shows the same days of care as the standalone app | e2e, manual |
|
||||
| A snapshot taken mid-watering restores without losing or doubling an act | integration |
|
||||
| A restore of yesterday's snapshot adds, never removes | integration (K3's property test reused) |
|
||||
| `domi-app.toml`'s name equals the constants | unit |
|
||||
| The game imports no `@tauri-apps/api` | unit |
|
||||
| No request leaves the origin | e2e on the built app |
|
||||
| The pipe client refuses a peer without Atrium's key | integration (`canalis-testkit`) |
|
||||
|
||||
## 8. Step 1 (APP_CONTRACT v0.1, Atrium main 25bed39)
|
||||
|
||||
Contract v0.1 §2.4 gives Rosea `id = "rosea"`, `label = "Rose"`, `accent = "#e8899b"`, and the file uses exactly these.
|
||||
§8 point 3e makes the manifest alone *the lightest step 1* for an app with no IPC, and point 5 records that
|
||||
players without Custos skip the door. Mark approved a public mirror of `atrium-door`'s client side (via the Aula
|
||||
session), so a later door would not need the private repository.
|
||||
|
||||
### A, built: `domi-app.toml`
|
||||
|
||||
- `apps/rosea-tauri/scripts/domi-app.ts` writes `src-tauri/atrium/domi-app.toml` (git-ignored) before `tauri dev` and
|
||||
`tauri build`. `ATRIUM` holds what APP_CONTRACT §7 says may move (`needs`, the icon).
|
||||
- `tauri.windows.conf.json` `bundle.resources` puts it and `domi-icon.png` next to `rosea-shell.exe`, in the folder
|
||||
that the per-user uninstall entry's `DisplayIcon` names (NSIS `installMode: currentUser`). It is Windows only:
|
||||
the shared config does not carry it, so it is not in the APK.
|
||||
- `test/domi-app.test.ts` checks the file against `test/domi-app-rules.ts`, which holds §2's rules in the parser's
|
||||
order, with 27 hostile fixtures in `test/fixtures/domi-app/`, each named `<field>.<reason>`.
|
||||
- The real parser (`atrium_registry::parse_manifest`, Fundamentum main) was run once over the shipped file and
|
||||
every fixture. See the review for the result.
|
||||
|
||||
### B, skipped: the door and the fallback (R4)
|
||||
|
||||
**Mark's ruling (via the Aula session, 2026-11-22):** *manifest only for now, no rule changes.* CLAUDE.md §2 and
|
||||
§4 stay as they are, and the door is skipped. R1, the no-Custos players and the public-repo/private-crates
|
||||
question are with the Atrium session for its contract. What follows is the reason, kept for when he reopens it.
|
||||
|
||||
APP_CONTRACT §4–5, read against Rosea's CLAUDE.md:
|
||||
|
||||
| The contract asks | Rosea's CLAUDE.md says |
|
||||
|:--|:--|
|
||||
| Rust code in the shell: `atrium_door::DoorClient`, `canalis` and `atrium-door` from Git (`canalis-v1.2.0`), from the **private** Fundamentum repo | §2: the shell is *a window and nothing else*. The repo is **public**, and a public checkout could no longer build the desktop app |
|
||||
| the app publishes its signed Canalis manifest to `%LOCALAPPDATA%\Domi\canalis\manifests\rosea.json` at every start | §4: *the Rust side writes no file of its own* |
|
||||
| a Tessera subkey and a Canalis key from Custos | §1: *identity is a locally generated keypair*. Players have no Custos, so the door is skipped for every player (the contract's *NoCustos* path). Only the author's PC would ever say hello |
|
||||
| *"Atrium Domi is not running"* with **Start**, shown in the app | §2: no Tauri command and no `@tauri-apps/api` in the game. Showing it in the garden needs a shell→page channel. Starting another program from Rosea is new too |
|
||||
|
||||
So B is a decision for the author, made in this repository's own session, as with G6.1. Once he decides, B is one
|
||||
module in the shell (`src-tauri/src/atrium.rs`): the hello off the UI thread, and the `NotInstalled` and
|
||||
`NoCustos` paths saying nothing. The fallback would be a quiet line, never a wait before the garden.
|
||||
|
||||
|
||||
## 9. What each later Day will ask (APP_CONTRACT v0.3 §9, Atrium main c778678)
|
||||
|
||||
The prepared answers, from the inventory in §2. Nothing here is built: **Rosea stays manifest-only** (Mark), so any
|
||||
step that needs the door is answered "not while she has no door", and each Day asks again when it lands. Rosea is
|
||||
`free = true`, named *Rosea Domi*, label *Rose*, accent `#e8899b`, as in contract §2.4.
|
||||
|
||||
| Day | What it asks | Rosea's answer |
|
||||
|:--|:--|:--|
|
||||
| 2 Audit | every network destination: host, reason, how often, session or requests, bytes | **None.** Rosea's code makes no request (§2.3). The CSP is `connect-src 'self'`, and the Android app has no `INTERNET` permission. The WebView2 runtime's own calls are switched off by `additionalBrowserArgs` and **not yet measured on Windows**; measuring them is the test plan (below). With no request, there is nothing to record. The audit test would be the reverse: any request outside the origin fails, as the e2e suite already does for the PWA |
|
||||
| 2 Updates | where the updater lives, how it stands down | **There is none in the apps.** A new desktop version comes only as a new installer from Fabrica, so there is nothing to stand down. The PWA's service worker and *Refresh* belong to the web build only; the shell has no worker (CLAUDE.md §8) |
|
||||
| 2 Close | where it can save and close on request | **At any moment.** Every act of care is appended to IndexedDB when it is given, and nothing is kept unsaved. The only thing in flight is a pour still being held, and closing drops just that pour: nothing is written until the finger lifts, and nothing written is lost. Serving `rosea.ui.close` needs the door |
|
||||
| 3 Data map | data, cache, sync state, sizes, keys | **Data:** the IndexedDB database `rosea` (§2.2): `events`, the append-only care log (a few hundred bytes per act); `profile` (her name, the gardener, the chosen town or none, past keys); `keys`. **Cache:** none of Rosea's own; WebView2's caches in the same profile folder are the webview's. **Sync state:** none (friends arrive in Phase 3). **Keys:** the identity keypair. Its private half is a **non-extractable** WebCrypto key, bound to this webview by design. It protects no data; it names who gave the care. So there is nothing to move into `app_secret`, and a player has no Custos. A restore on a new PC is *Keep her safe*'s: her care comes back under a new key, additively (keep-her-safe.md K2, K3) |
|
||||
| 3 Snapshot | `rosea.backup.snapshot { folder }`, consistent, without caches or sync state | Plan R2: the snapshot is the `rosea-rose` file (`exportRose`): public keys and the whole care log, never the private key, never the town. It is taken by the game, because LevelDB under a running webview cannot be copied consistently. **Needs the door and a page↔shell channel (R4), both outside Mark's ruling for now** |
|
||||
| 4 Commands | every `invoke`/`listen`, payloads, native dialogs; where the UI keeps state | **No `invoke`, no `listen`, no Tauri JavaScript API** (§2.1). Two native dialogs, both the webview's own: the file picker of *Bring her back* (`<input type=file>`, one JSON file, about 1 KB per day of care) and the save of *Save her to a file*. On Windows that save is a WebView2 download; on Android it is `roseaFile.save` and the system's save screen. **State:** IndexedDB under WebView2's profile, `%LOCALAPPDATA%\cz.mareknovak.domi.rosea\EBWebView\`, origin `https://tauri.localhost`; no `localStorage`. Contract row 3 (a hosted room uses the app's own profile) answers R1: **no migration** |
|
||||
| 5 Household | react when a device is removed | Nothing: no Tabellarius, no sync |
|
||||
| 6 Today, search, badge | ≤ 5 cards, search results, a badge | **Today: at most one card,** and only if Mark wants it: tonight's real sunset time in the chosen town (*points beyond the screen*). Never her water or her needs: a card about her waiting is guilt (R5). **Search:** nothing to find. **Badge:** never: a count about her waiting is exactly what Rosea refuses (CLAUDE.md §8). **Notifications:** Phase 6's sunset invitation, which never mentions neglect |
|
||||
| 8 Export | an open format per kind of record | `rose.json`, the `rosea-rose` file (JSON: format, version, public keys, care events). `profile.json` (JSON: her name, the gardener's look, the chosen town if any: the player's own data, so the town *is* in their own export, unlike the shareable rose file). A README line for each. The day's sentences are references into the public-domain library, not the player's data |
|
||||
| 8 Android | the package, `domi-rosea://open` | Package `cz.mareknovak.domi.rosea`. Android has **no** `domi-rosea://` intent filter yet; only the Windows installer registers the scheme (fabrica-release.md). Adding one is a change to `MainActivity`'s manifest patch, for Day 8 |
|
||||
|
||||
**Test plans, for when a Day lands:**
|
||||
|
||||
- **Day 2:** run the built `.exe` under a request capture and expect nothing outside `tauri.localhost`. This also
|
||||
closes CLAUDE.md §8's "Windows unmeasured" line.
|
||||
- **Day 3:** a snapshot taken mid-watering restores with no act lost or doubled. K3's additive property test is
|
||||
reused.
|
||||
- **Day 4:** the hosted room shows the same days of care as the standalone app.
|
||||
- **Day 8:** the export's `rose.json` passes `asRoseFile`, and `profile.json` round-trips.
|
||||
@@ -0,0 +1,80 @@
|
||||
# @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.5.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).
|
||||
|
||||
## 1. Why and what, in the player's terms
|
||||
|
||||
Every Domi app now shares one set of controls:
|
||||
- a struck plate for an ordinary action, and a gilded leaf for the one main action of a screen;
|
||||
- a glint when pressed;
|
||||
- at least 48 px under a finger.
|
||||
|
||||
Rosea's buttons were her own: rounded outlines, plus underlined words for the quiet ones. They now wear the shared
|
||||
plate in her own colours, and her town search becomes the shared field with a search seal. Nothing else changes:
|
||||
- her colours, her system fonts, her art and her layout stay;
|
||||
- what each button does stays;
|
||||
- what she says stays.
|
||||
|
||||
## 2. Technical architecture
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
subgraph vendored["packages/domi-ui = @domi/ui v1.5.0 (vendored, never edited)"]
|
||||
btn["components/Button.svelte"]
|
||||
tf["components/TextField.svelte"]
|
||||
css["css/tokens + base + components"]
|
||||
lib["lib/strike, keys, icons"]
|
||||
end
|
||||
script["domi-design tools/vendor.mjs"] -->|copies a CPAL tag| vendored
|
||||
tokens["packages/ui/src/tokens.css"] -->|@import| css
|
||||
rose["rose/*, scene/*, sunset/*, Shell"] --> btn & tf & lib
|
||||
html["apps/rosea/index.html<br/>data-domi-room=rosea, theme auto"] --> css
|
||||
```
|
||||
|
||||
### Decisions
|
||||
|
||||
| # | 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.5.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 | **Every button is `Button`.** *Move the chair* binds its element (`bind:element`, 1.5.0), so focus comes back to it after the sunset. Only the *Bring her back* file picker wears the plate's classes on a `<label>` (D8). | Up to 1.3.x, `Button` set its own `onkeydown` and `onblur` after the ones passed to it. That dropped the pour by a held Space, its stop on blur, and *a held key is one touch* (thorns.md T2); the unit tests caught it. The fix went from here to domi-design (PR mnovak/domi-design#18, released in 1.4.0), and `bind:element` came in 1.5.0 at this request. Until then these buttons were markup. |
|
||||
| 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. |
|
||||
| D5 | **On the dusk scene the plate is recoloured locally**: evening glass, with the sunset's gold edge that Rosea's button had. | That scene is dusk in either theme. The room's light plate would be parchment on a night sky. |
|
||||
| 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): `<DomiCredit link={false} />`, the exact words `Built on Domi · https://aula.marek-novak.cz · Copyright (c) 2026 Marek Novák`, with the address as plain text. One quiet line at the foot of every screen, from the first open on (the gardener, the garden, the Letter), never a splash. Mark approved it (via the Aula session). | INTEGRATE.md §6a asks 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. `link={false}` came into 1.4.0 from this request. 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
|
||||
|
||||
| Risk | Answer |
|
||||
|:--|:--|
|
||||
| A care gesture stops working (the pour by keyboard, blur, a held key) | D3, and the unit tests that caught it run on every commit |
|
||||
| The design system's English reaches the player | D2, D4. `lint:copy` also reads the vendored folder now (46 files) |
|
||||
| A carved, metallic look makes her garden feel colder | listed for Mark in the review with the pictures; her art rules are not changed |
|
||||
| A copy of private code in a public repository | Mark's decision (a). The Aula session told the design system session so that it can add a licence. `VENDORED.md` says so |
|
||||
| CSP | the vendored CSS is bundled into Rosea's own file. The one inline style (`style:` on a multi-line field) is set through the CSSOM and Rosea does not use it. Checked by the e2e suite, which fails on any CSP violation |
|
||||
|
||||
## 4. Gap analysis
|
||||
|
||||
- **Fixed by this:** Rosea's controls now meet the 48 px touch floor.
|
||||
- **Still open:**
|
||||
- the struck plate's look under docs/ART.md (review);
|
||||
- `Button`'s handler order, reported to the design system (D3);
|
||||
- a licence for the copy (the design system's).
|
||||
|
||||
## 5. Verification matrix
|
||||
|
||||
| Case | Kind | Where |
|
||||
|:--|:--|:--|
|
||||
| every button keeps its name, role and action | unit | `packages/ui/test/*` (88) |
|
||||
| the pour by a held Space and the stop on blur | unit | `rose.test.ts`, `planet.test.ts` |
|
||||
| a held key is one touch | unit | `touch.test.ts` |
|
||||
| Rosea's status line is still the one that speaks | unit | `test/said.ts` |
|
||||
| the built app: care, the town, the sunset, offline | e2e, offline | `pnpm test:e2e`, `pnpm test:offline` |
|
||||
| how it looks, light and dark, phone and desktop | pictures | `pnpm look:shots` (`ROSEA_LOOK=before|after`), in the PR |
|
||||
@@ -93,8 +93,8 @@ nothing of Fabrica's.
|
||||
| iOS | Not built (G-T1: needs a Mac). | — |
|
||||
|
||||
- **F4 — Signing through Custos only.** Authenticode with `domi-code-signing` for the installer;
|
||||
the APK with `rosea-android` through `custos-sign apk` (Custos makes the key on the first release,
|
||||
Mark's first-signature card; a `run` step that names it in `keys:` so preflight checks it);
|
||||
the APK with `rosea-android` through `custos-sign apk` (corrected 2026-11-21, `android-release-apk.md` A6:
|
||||
Custos does NOT make this key; it must be added to Custos's `ANDROID_APPS` or made by hand; a `run` step that names it in `keys:` so preflight checks it);
|
||||
`domi-release` signs each file's minisign signature and `SHA256SUMS`. No key, password or token is
|
||||
in the repository, a pipeline file or a log (G-T3). Each key's scope must name `mnovak/Rosea` exactly:
|
||||
Mark's step in Custos, which `fabrica preflight rosea` names when it is missing.
|
||||
|
||||
@@ -14,7 +14,7 @@ and **how to apply it**.
|
||||
| [`technical.md`](technical.md) | 10 | The browser and the build as platforms. |
|
||||
| [`testing.md`](testing.md) | 16 | What makes a test worth having, and how a passing test lies. |
|
||||
| `privacy.md` | none yet | What could leave the device or make a person findable. (The geocell finding is in the review, not here: it was caught before it cost anything.) |
|
||||
| [`process.md`](process.md) | 5 | Workflow, commits, credentials, honesty about what shipped. |
|
||||
| [`process.md`](process.md) | 6 | Workflow, commits, credentials, honesty about what shipped. |
|
||||
|
||||
A file is created with its first real entry. An empty lessons file only looks like
|
||||
knowledge.
|
||||
|
||||
@@ -81,3 +81,17 @@ uncommitted change in it (the release notes' entry). The diff showed it at once;
|
||||
|
||||
**How to apply it.** Commit before drilling, or copy the file aside and copy it back. Check
|
||||
`git diff --stat` after every drill.
|
||||
|
||||
## A claim about another system's behaviour, written from its docs' general rule, was wrong for us
|
||||
|
||||
**What happened.** On 2026-11-19 `fabrica-release.md` F4 said "Custos makes `rosea-android` on the
|
||||
first release". Custos does that only for the apps in its `ANDROID_APPS` table, and Rosea was never in
|
||||
it (`apps/desktop/src-tauri/src/signing.rs`, read on 2026-11-21). The release would have stopped at
|
||||
`no_key` after Mark's approval card. Culina and Liber hit exactly that on 2026-11-20.
|
||||
|
||||
**Why it bit.** The doc described what Custos does for Postea, and it read like a rule for every app.
|
||||
Nothing in Rosea could test the claim: the step that would have failed runs only after a human approves.
|
||||
|
||||
**How to apply it.** When a step depends on another system doing something for us, find the line in
|
||||
that system's source or config that names us, and cite it in the analysis. If no line names us,
|
||||
write the claim as a gap, not as a fact.
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
# Review: `docs/atrium-adoption` (2026-11-22)
|
||||
|
||||
Analysis: [`../features/atrium-adoption.md`](../features/atrium-adoption.md). This branch is a plan only. It changes no
|
||||
code, no config and no player-facing words.
|
||||
|
||||
## What changed
|
||||
|
||||
- New: `.agents/features/atrium-adoption.md`, which holds the inventory, decisions R1–R7, the risks, the steps and
|
||||
four questions for Mark.
|
||||
- `.agents/FEATURES.md`: a new row.
|
||||
- `.agents/GAP_ANALYSIS.md`:
|
||||
- new section G-AT1;
|
||||
- G-F7 narrowed: Custos 0.25.0's Android grant can make `rosea-android`.
|
||||
|
||||
## How the inventory was made
|
||||
|
||||
Everything was checked on `main` b307655.
|
||||
|
||||
- **Tauri calls:** a search of `apps/`, `packages/`, `e2e/`, `scripts/` and `tools/` for `@tauri-apps`,
|
||||
`__TAURI`, `invoke(`, `.listen(`, `addJavascriptInterface` and `__ROSEA_SHELL__`.
|
||||
- Found only `__ROSEA_SHELL__`, the Android `roseaFile` interface and the Tauri CLI dependency.
|
||||
- The only `.listen(` is the e2e static server's.
|
||||
- **Network:** a search of `apps/rosea/src` and `packages/*/src` for `fetch(`, XHR, `WebSocket`, `sendBeacon`,
|
||||
`EventSource`, `RTCPeerConnection` and absolute URLs. It found nothing.
|
||||
- **Accent and icon:** read from `packages/ui/src/tokens.css`, the web manifest in `vite.config.ts` and
|
||||
`apps/rosea/public/icon.svg`.
|
||||
- **Custos 0.25.0:** `git show v0.25.0:apps/desktop/src-tauri/src/signing.rs` in `F:\Akce\Custos`. Read only.
|
||||
|
||||
## Findings
|
||||
|
||||
1. **The Windows path of the database is predicted, not seen.** The `…\Default\IndexedDB\…leveldb` part was seen
|
||||
on Android only. *Marked (predicted)* in §2.2. Measure it when step 4 is built.
|
||||
2. **"No outgoing request" covers Rosea's code, not the WebView2 runtime.** The switches that silence the runtime
|
||||
are undocumented feature names, and they have never been measured on Windows (CLAUDE.md §8). *Stated* in §2.3.
|
||||
A request capture on the built `.exe` belongs in step 5.
|
||||
3. **Appendix A's hosted mode, read literally, could lose her rose.** If Atrium loads `ui_bundle` into its own
|
||||
webview, it opens another origin and profile, and so an empty database. *R1 written as a condition of
|
||||
`hostable = true`*, and asked of Mark and Atrium (§6 Q2). This is the most important line in the plan.
|
||||
4. **The backup snapshot cannot be a file copy.** LevelDB is live under a running webview, and the private key is
|
||||
non-extractable. *R2 and R3:* the snapshot is the tested `rosea-rose` file, and a restore only adds. The cost:
|
||||
a restored rose lives under a new key, as one brought back by *Keep her safe* does. That is said plainly in R3.
|
||||
5. **Steps 1 and 4 change CLAUDE.md §2's *a window and nothing else*.** *Not decided here.* R4 asks Mark. This
|
||||
branch does not touch CLAUDE.md.
|
||||
6. **A badge would be a count about her waiting.** *R5: no badge.* The *today* line is optional and holds only
|
||||
the sunset time.
|
||||
7. **The *Atrium Domi is not running* card could stand between a cold open and the garden.** *§4: Rosea opens
|
||||
first*, and the card is a line, never a wait.
|
||||
8. **G-F7's narrowing rests on the Aula session's word** that 0.25.2 is installed and the grant is given. *Marked
|
||||
unverified* until the first signature.
|
||||
9. **`label = Rose` is a guess.** It is *marked (judgment)*.
|
||||
|
||||
## Soul, privacy, reachability, offline
|
||||
|
||||
- **Soul:** no change ships. The plan guards against two ways a player could feel worse: R1 (her rose seeming
|
||||
gone) and R5 (a count that blames).
|
||||
- **Privacy:** the snapshot file holds no town (K1). Atrium encrypts the backup, and the target is the player's.
|
||||
- **Reachability:** none. The pipe is local, and Rosea serves only `rosea.*` to Atrium.
|
||||
- **Offline:** unchanged.
|
||||
|
||||
## Gates
|
||||
|
||||
This branch is docs only, and no gate covers its files. `pnpm lint:copy` reads player copy and the Letter, neither
|
||||
of which changed. Not rerun: `pnpm test`, e2e, offline. The bundle was not rebuilt, and this change is invisible to
|
||||
the player by design.
|
||||
|
||||
## Not verified
|
||||
|
||||
- Atrium's `APP_CONTRACT.md` does not exist yet. The field names in §2.4 follow ROADMAP Appendix A and may change.
|
||||
- Whether Atrium can host a room as the app's own window (R1).
|
||||
@@ -0,0 +1,50 @@
|
||||
# Review: `docs/licence` (2026-11-23)
|
||||
|
||||
The brief was Mark's decision, passed on by the Aula session: every public Domi repository goes to the **Common
|
||||
Public Attribution License 1.0** (SPDX `CPAL-1.0`), Rosea included. Followed `F:\Akce\domi-licence\README.md`.
|
||||
|
||||
## What changed
|
||||
|
||||
- `LICENSE` (new): `LICENSE.template` with only `{ORIGINAL_CODE}` replaced by `Rosea Domi`.
|
||||
- The template's sha256 is `8035b912…4021f1`, as the kit states.
|
||||
- `diff` of LICENSE, with the name put back, against the template: identical.
|
||||
- LF and UTF-8, no BOM.
|
||||
- `"license": "CPAL-1.0"` in all 12 `package.json` files. `license = "CPAL-1.0"` in
|
||||
`apps/rosea-tauri/src-tauri/Cargo.toml`.
|
||||
- `README.md` (new; Rosea had none): what the repository is, the licence, the Exhibit B credit, and the works
|
||||
that keep their own terms.
|
||||
|
||||
No code, no player-facing words, no art.
|
||||
|
||||
## Findings
|
||||
|
||||
1. **Step 4 of the kit does not fit Rosea.** It says earlier versions stay under MPL-2.0. Rosea never had a licence.
|
||||
*Written as it is:* "Earlier commits carried no licence."
|
||||
2. **The in-app credit (CPAL §14) is not added.** It is proposed for Mark instead, for two reasons:
|
||||
- CLAUDE.md says *Domi* never appears alone in public, and the Attribution Phrase is *Built on Domi*.
|
||||
- *Silence is a feature* (CLAUDE.md §7), so where a line sits in a quiet garden is an art decision.
|
||||
|
||||
**Proposed spot:** one line in `--ink-soft`, under the *A letter from the gardener* link at the foot of the
|
||||
garden: `Built on Domi · aula.marek-novak.cz · © 2026 Marek Novák`. The URL is plain text, not a link, so the
|
||||
offline game never sends the player anywhere unasked. It is shown on every launch, never as a splash that
|
||||
delays her.
|
||||
|
||||
§14 binds those who redistribute; the original developer is not bound by his own licence. Rosea's own builds
|
||||
can therefore wait for his answer.
|
||||
3. **Works not written by Mark keep their terms.** The README names them:
|
||||
- the public-domain hope sentences, each with its source;
|
||||
- the town list from Natural Earth and the IANA tzdb;
|
||||
- the U.S. Naval Observatory's sun tables in the tests.
|
||||
|
||||
The art in `art/placeholders/` was made in this repository. No third-party art is in it.
|
||||
4. **`@domi/ui` is not part of this branch.** Its vendored copy waits on `feature/domi-ui`, unpushed, for the
|
||||
design system's CPAL-1.0 tag v1.0.3 (Aula's hold).
|
||||
5. **The name gains two places, `LICENSE` and `README.md`.** *Accepted:* they are documents, not source
|
||||
(CLAUDE.md's three places are "in source"), and a rename edits them in the same commit.
|
||||
|
||||
## Gates
|
||||
|
||||
- `node scripts/check-version.mjs 0.1.0`: the four version files agree. Adding `license` beside `version` changed
|
||||
no version.
|
||||
- The lockfile does not record a workspace package's licence, so nothing else moves.
|
||||
- `pnpm test` was not rerun: no code changed.
|
||||
@@ -0,0 +1,110 @@
|
||||
# Review: `feature/android-release-apk` (2026-11-21)
|
||||
|
||||
Analysis: [`../features/android-release-apk.md`](../features/android-release-apk.md). The brief was Mark's, relayed by
|
||||
the Aula session: release each app's APK after the most basic e2e on the Wave 10, through Fabrica's phone queue.
|
||||
|
||||
## What changed
|
||||
|
||||
- `.fabrica/tests.yaml`: the `phone` target says `reset: uninstall` and `maxMinutes: 20`.
|
||||
- `.fabrica/artifex/e2e.yaml`: new steps `apk` (`pnpm tauri:android`) and `phone` (`device: Wave 10`,
|
||||
`fabrica tests run --target phone`); `GRADLE_USER_HOME` on D:, `NDK_HOME` named.
|
||||
- `.fabrica/artifex/release.yaml`: the same two variables, and the header no longer claims Custos makes `rosea-android`.
|
||||
- `e2e/android/garden.android.ts`: force-stops the app in `finally`.
|
||||
- Docs: the analysis, G-T3 and G-F5 narrowed, G-F7 new, `fabrica-release.md` F4 corrected, the handover.
|
||||
|
||||
## Gates
|
||||
|
||||
See *Counts* at the end (filled in from the run of this branch).
|
||||
|
||||
Also run:
|
||||
|
||||
- `fabrica artifex check`: 2 pipelines, app.yaml, aula.yaml, tests.yaml and brief.md, 0 problems.
|
||||
- **Drill:** `reset: wipe-everything` planted in tests.yaml was refused with
|
||||
`targets[1].reset: clear (the app's data), uninstall or keep`, then restored by copy, not `git checkout`
|
||||
(lessons/process.md).
|
||||
- `fabrica tests list --target phone`: 1 test in 1 file.
|
||||
- **The release APK:**
|
||||
- `pnpm tauri:android-release` with Gradle, Cargo's target, TEMP and ANDROID_USER_HOME under `D:\build\rosea`: exit 0 in 27 min.
|
||||
- `android.ts verify`: no permission asked, no backup, metrics and Safe Browsing off.
|
||||
- `aapt2 dump badging`: `cz.mareknovak.domi.rosea`, versionCode 1000, versionName 0.1.0, arm64-v8a, not debuggable, 5.60 MiB, sha256 `4d52e9eca4cd2e56…`, unsigned.
|
||||
|
||||
## Findings
|
||||
|
||||
1. **The release pipeline does not require the phone test.** A tag can be released whose debug APK never passed on
|
||||
the Wave 10. *Deferred, with the reason.* A `device:` step in `release` would queue the whole release for the
|
||||
phone from the start, and the release runs on `windows`, not `windows-e2e` (docs/35 part 2). The gate is
|
||||
process for now: no tag on a commit until the e2e pipeline's `phone` step has passed on it (analysis §3). A
|
||||
pipeline `needs:` across pipelines would close it; Artifex has none today.
|
||||
2. **The phone tests a debug APK, and the release is a different build.** *Accepted, and stated (A1).* Only a debug
|
||||
WebView can be driven. The game bytes, the manifest patch and `MainActivity` are the same; the Rust profile and
|
||||
the key differ. A manual check of the signed release APK on the phone is in the matrix, for after the key exists.
|
||||
3. **`reset: uninstall` instead of the asked-for `clear`.** *Kept, with the reason (A3):* a release build on the
|
||||
phone would otherwise block every debug run. It loses nothing more than `clear` would.
|
||||
4. **`fabrica-release.md` F4 was wrong.** It said Custos makes `rosea-android` on the first release. Custos's
|
||||
`ANDROID_APPS` table never named Rosea (0.22.0: Postea; 0.24.0: Postea, Culina, Liber). *Fixed* in F4, G-T3 and
|
||||
the release.yaml header, and a lesson added (process.md). The release would have stopped at `no_key` after Mark's
|
||||
card, as Culina's and Liber's did.
|
||||
5. **The debug build in the e2e pipeline uses the default `ANDROID_USER_HOME`** (`%USERPROFILE%\.android` on C:).
|
||||
Gradle writes `debug.keystore` there if it is missing. *Accepted:* adb's pairing keys live in that folder too
|
||||
(docs/35 part 2), and moving it for the step could cut the runner off from the phone. It is one small file,
|
||||
and it is already there.
|
||||
6. **The pipelines keep Cargo's target in the checkout** (on F:, which is nearly full). *Accepted:* the
|
||||
installer's artifact glob is relative to it. Only the local build here used D:.
|
||||
7. **The new `finally` line was never run.** No run of the spec is possible outside the queue. *Not verified*:
|
||||
typecheck and lint only.
|
||||
8. **`fabrica devices list` did one reconnect pass** (adb `devices`, mDNS, `adb connect`), and `fabrica devices queue`
|
||||
asked again for the pending Custos card 836209. Neither installs, starts or taps anything on the phone. Both are
|
||||
stated here, so nobody reads "nothing touched the phone" as stronger than it is.
|
||||
9. **The proposed certificate CN *Rosea Domi* outlives the working name** (A7). *For Mark and Custos to decide.*
|
||||
|
||||
## Soul, privacy, reachability, offline
|
||||
|
||||
- **Soul:** no player-facing change. Nothing can make a person feel worse.
|
||||
- **Privacy:** the release APK asks for no `INTERNET` permission, has no backup, and has the WebView's metrics off
|
||||
(verified on the built file). The phone spec chooses *Not now*, so no town is set on the phone.
|
||||
- **Reachability:** none; there is no network.
|
||||
- **Offline:** unchanged; the APK cannot reach a network at all.
|
||||
|
||||
## Not verified
|
||||
|
||||
- The `phone` step and the phone target never ran. The Wave 10 is `connected (not paired in Fabrica)`, and
|
||||
pairing belongs to the Fabrica session.
|
||||
- No signature was made. `rosea-android` does not exist (G-F7).
|
||||
- No release, by G6.1 (G-F1).
|
||||
- The e2e pipeline was never started on the hub.
|
||||
|
||||
## Counts (this branch, 2026-11-21)
|
||||
|
||||
- `pnpm test`: **608 passed** (cpu-guard 13, identity 5, schema 19, content 88, storage 70, art-prep 80, release 8,
|
||||
engine 179, tauri 58, ui 88).
|
||||
- `pnpm lint`, `pnpm typecheck`: clean. `pnpm lint:copy`: 30 files, 0 problems.
|
||||
`pnpm validate:library`: 13 of 13 fixtures rejected.
|
||||
- `pnpm test:e2e` and `test:offline` were **not rerun**. Nothing the browser runs changed: the only code change is
|
||||
one line in the Android spec, which those suites do not include. Their last counts (26 and 1) are from
|
||||
`feature/fabrica-release`, on the same game.
|
||||
|
||||
## Addendum, 2026-11-21 (`fix/phone-target-run`): the phone target ran through the queue
|
||||
|
||||
The Fabrica session got the queue working on the Wave 10. The hub's e2e runner is not added yet, so the target
|
||||
ran from this session with `fabrica tests run --target phone --as claude`, which takes the phone through the
|
||||
hub's queue.
|
||||
|
||||
| Run | What | Result |
|
||||
| :-- | :-- | :-- |
|
||||
| `20261121-101158-uckm` | the spec as merged (f5d8d2c), debug APK sha256 `bd59ff908125…` | **1 passed, 0 failed** (7.9 s). Waited 12 s behind Culina's run. Fabrica uninstalled, installed, started; the WebView was drivable. |
|
||||
| `20261121-101303-zvve` | drill: `Days of care 2` planted | **error, 0 run.** Waited 424 s behind Postea and Culina, then `adb install failed` with an empty reason. Not the planted fault. |
|
||||
| `20261121-102500-crkf` | the same drill, once more | **0 passed, 1 failed.** Received `Days of care1` after the close and reopen, so the test checks persistence for real. |
|
||||
|
||||
The spec was restored by copy after each drill, and `git status` was checked after.
|
||||
|
||||
Findings:
|
||||
|
||||
10. **One `adb install` failed with no reason**, on a phone that two other apps' runs had just used. The next
|
||||
run's `pm uninstall` answered `DELETE_FAILED_INTERNAL_ERROR (not installed)`, so nothing was left behind.
|
||||
*Not reproduced; not Rosea's code.* For the Fabrica session: the CLI could print adb's stderr when stdout ends
|
||||
with `:`.
|
||||
11. **The Aula session's interim rule 2 says `reset: keep`** unless the app's data may be wiped. Rosea's data on the
|
||||
test phone may be wiped (CLAUDE.md §3: `check-garden.ts android` already `pm clear`s the test app), and the
|
||||
test needs a first open. *`uninstall` kept* (A3).
|
||||
12. **The drill ran on the Wi-Fi line** (`192.168.100.127:5555`, rule 1 of the same message) and the passing run on
|
||||
USB. Both are the same phone. Nothing to fix.
|
||||
@@ -0,0 +1,98 @@
|
||||
# Review: `feature/atrium-door` (2026-11-22)
|
||||
|
||||
Analysis: [`../features/atrium-adoption.md`](../features/atrium-adoption.md) §8. This branch implements step 1 part
|
||||
A of Atrium's Appendix A, the static `domi-app.toml`, under Atrium docs/APP_CONTRACT.md v0.1. Part B, the door, is
|
||||
skipped by Mark's ruling: *manifest only for now, no rule changes* (via the Aula session).
|
||||
|
||||
## What changed
|
||||
|
||||
- `apps/rosea-tauri/scripts/domi-app.ts` (new): builds the manifest from `PRODUCT_NAME`, `PRODUCT_SHORT_NAME` and
|
||||
the game's version, and writes `src-tauri/atrium/domi-app.toml`. The file is git-ignored.
|
||||
- `apps/rosea-tauri/package.json`: `dev` and `build:desktop` run it before Tauri.
|
||||
- `apps/rosea-tauri/src-tauri/tauri.windows.conf.json`: `bundle.resources` places `domi-app.toml` and
|
||||
`domi-icon.png` next to the `.exe`.
|
||||
- `apps/rosea-tauri/test/domi-app-rules.ts`, `domi-app.test.ts` and 27 fixtures in `test/fixtures/domi-app/`
|
||||
(all new).
|
||||
- `.gitignore`, and the docs: the plan's §8, G-AT1, FEATURES and the handover.
|
||||
|
||||
No game code, no Rust and no CLAUDE.md change. The PWA and the APK are unchanged: the resources are Windows only.
|
||||
|
||||
## Evidence
|
||||
|
||||
- **The shipped file is valid and agrees with Atrium's own parser.** Fundamentum `origin/main` (fbafd7a) was
|
||||
exported with `git archive` to `D:\build\rosea\atrium-check`. Nothing in Fundamentum was touched. A throwaway
|
||||
crate there ran `atrium_registry::parse_manifest` over Rosea's file and the 27 fixtures:
|
||||
- the shipped file: `ok`;
|
||||
- every fixture: refused with the same `field.reason` that its name and Rosea's test expect (28 of 28 agree).
|
||||
- **The test is honest.** Drill: with the `..` rule removed from `domi-app-rules.ts`, exactly
|
||||
`icon.path_dotdot.toml` failed (33 passed, 1 failed). The file was restored by copy, and `git status` was checked.
|
||||
- **Placement:** see *Installer* below.
|
||||
|
||||
## Findings
|
||||
|
||||
1. **The rules are a second copy of the parser's.** A change in Atrium's parser would not fail Rosea's test.
|
||||
*Accepted, with a guard:* the agreement was measured against the real parser, and every fixture is named by the
|
||||
parser's reason code. The contract now offers `atrium-registry` at the tag `atrium-v0.1.0` as a dev dependency.
|
||||
That would be a Rust test reaching the private repository from a public one, so it is not taken while Mark's
|
||||
ruling holds.
|
||||
2. **The TOML reader is narrower than TOML.** A valid file using, for example, a quoted key would be
|
||||
`not_toml` here and accepted by the parser. *Accepted:* it only ever reads Rosea's own file and these fixtures,
|
||||
which are within its subset. Being stricter is the safe direction.
|
||||
3. **`domi-app.toml` must not add a place for the name** (CLAUDE.md header). *Fixed by design:* the file is built
|
||||
from the constants and never committed, so a rename changes no extra file.
|
||||
4. **The version must track Fabrica's bump.** It is read from `apps/rosea/package.json` at build time, which is one
|
||||
of the four files `check-version.mjs` names. No fifth version file was added.
|
||||
5. **A value could break out of its string.** *Fixed:* quotes, backslashes and control characters are escaped.
|
||||
A test plants a label carrying a line break and `free = false`, and gets `label control_char` with `free` still
|
||||
`true`.
|
||||
6. **The accent is the dark-theme `--rose`, `#e8899b`, not the light `#b4485e`.** *Kept:* contract v0.1 §2.4 gives
|
||||
Rosea this colour, and Atrium's window is dark.
|
||||
7. **The catalogue calls her `Rosea`, but the product is always *Rosea Domi* in public** (CLAUDE.md, header).
|
||||
The manifest says `Rosea Domi`, and an accepted manifest's name wins in the grid. *For the Atrium session:* the
|
||||
catalogue's name shows only when the manifest is missing.
|
||||
8. **No door means later Days ask again** (contract §8 3e). *Stated* in the handover, as 3e asks.
|
||||
9. **The icon is the placeholder.** *Unchanged* (G-T9). The real one comes through `docs/ART.md`.
|
||||
|
||||
## Soul, privacy, reachability, offline
|
||||
|
||||
- **Soul:** nothing the player sees changes. Atrium's grid shows a name, a label and a colour.
|
||||
- **Privacy:** the file holds the product's name and version only. It names no person, no town and no key. Rosea
|
||||
reads nothing of Atrium's and sends nothing.
|
||||
- **Reachability:** none. No IPC was added.
|
||||
- **Offline:** unchanged.
|
||||
|
||||
## Installer
|
||||
|
||||
- `pnpm tauri:build` was run with Cargo's target and TEMP under `D:\build\rosea`. It produced
|
||||
`Rosea Domi_0.1.0_x64-setup.exe` (1.31 MiB, sha256 `63856129ea0a69f1…`).
|
||||
- The wrapper script reported exit 1, because PowerShell's `ErrorActionPreference = Stop` treats Tauri's first
|
||||
stderr `Info` line as an error.
|
||||
- The build itself finished: the installer and `rosea-shell.exe` both date from 23:09.
|
||||
- The generated `installer.nsi` writes, in `Section Install` with `SetOutPath $INSTDIR`:
|
||||
- `File "/oname=domi-app.toml"` and `File "/oname=domi-icon.png"`, beside `File "${MAINBINARYSRCPATH}"`
|
||||
(`MAINBINARYNAME` is `rosea-shell`);
|
||||
- `DisplayIcon` = `$INSTDIR\rosea-shell.exe` under the per-user key (`INSTALLMODE currentUser`). So the manifest
|
||||
sits exactly in the folder that APP_CONTRACT §3 says Atrium reads.
|
||||
- The uninstaller deletes both files.
|
||||
- `7z l` on the installer lists `rosea-shell.exe`, `domi-app.toml` (189 bytes) and `domi-icon.png`, and nothing
|
||||
else of Rosea's.
|
||||
- Extracted with `7z e` into the scratchpad, never installed:
|
||||
- the shipped `domi-app.toml` is the file above, and Atrium's parser says `ok`;
|
||||
- `domi-icon.png` starts with the PNG signature and is 4,698 bytes, under the 1 MiB cap.
|
||||
|
||||
## Gates (this branch, 2026-11-22)
|
||||
|
||||
- `pnpm test`: **642 passed**. By package: cpu-guard 13, identity 5, schema 19, content 88, storage 70,
|
||||
art-prep 80, release 8, engine 179, tauri 92 (58 before + 34 new), ui 88.
|
||||
- The first full run had `@rosea/tauri` fail under turbo, though all its files reported passing. It did not
|
||||
happen again: the package's own run and a second full run were both green. *Not explained*, and stated here.
|
||||
- `pnpm lint`: clean, after adding `.fabrica/runs/**` to the ESLint ignores. Fabrica's git-ignored run records
|
||||
carry its own `reporter.cjs`, which ESLint was reading (six errors, none in Rosea's code).
|
||||
- `pnpm typecheck`: clean. `pnpm lint:copy`: 30 files, 0 problems. `pnpm validate:library`: 13 of 13 fixtures rejected.
|
||||
- **Not rerun:** `test:e2e` and `test:offline`. Nothing the browser runs changed: the game is the same, and only
|
||||
the Windows bundle gains two files. `fabrica artifex check` was also not rerun, since `.fabrica/` is unchanged.
|
||||
|
||||
## Not verified
|
||||
|
||||
- Atrium Domi showing Rosea in its grid: that needs an installed Rosea and an installed Atrium Domi on this PC. The
|
||||
installer writes the real HKCU uninstall entry (as G-F4), so it was not run.
|
||||
@@ -0,0 +1,112 @@
|
||||
# Review: `feature/domi-ui` (2026-11-23)
|
||||
|
||||
Analysis: [`../features/domi-ui.md`](../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:
|
||||
|
||||
1. **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.
|
||||
2. **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.
|
||||
3. **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.
|
||||
4. **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.
|
||||
5. **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.
|
||||
6. **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
|
||||
|
||||
1. **`Button` drops `onkeydown` and `onblur` passed 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 `Button` again; until 1.4.0 they were markup (D3). *Move the
|
||||
chair* became `Button` with 1.5.0's `bind:element`. Without the binding, the focus test fails (drill).
|
||||
2. **Every `Button` carries its own `role="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.
|
||||
3. **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:copy` now reads 46 files, including the vendored folder: 0 problems.
|
||||
4. **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`, `.actions` and `.choices` wrap.
|
||||
5. **svelte-check could not type `Strike.svelte`** in v1.0.1, a component with no script. The first build here
|
||||
added `allowJs`. v1.0.4 gives it a script upstream, so `allowJs` is gone again: no change to Rosea's tsconfigs.
|
||||
6. **ESLint flagged three rules in the vendored `TextField.svelte`.** *Skipped:* `packages/domi-ui` is ignored,
|
||||
linted upstream, and never edited here.
|
||||
7. **The licence.**
|
||||
- v1.0.1 was `UNLICENSED` and 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 writes `LICENSE`, `NOTICE`, `VERSION` and a `package.json` without scripts. It lives in
|
||||
`packages/domi-ui` as `@domi/ui` (`workspace:*`).
|
||||
- The three font packages arrive as its npm dependencies (OFL). Rosea imports none, and `dist/` has no font
|
||||
file (counted: 0).
|
||||
8. **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.
|
||||
9. **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.json` declares `"license": "CPAL-1.0"` for the bundles.
|
||||
|
||||
10. **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 missing `INTERNET` permission 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:offline` 1 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.
|
||||
@@ -1,14 +1,19 @@
|
||||
# Rosea Domi: the web e2e suite on this PC's e2e runner (fabrica-release.md F9; Fabrica docs/20_tests.md,
|
||||
# docs/31_runners_here.md): the PWA built, then `fabrica tests run --target web` (Playwright headless against the
|
||||
# BUILT bundle under /Rosea/), the records, traces and screenshots kept with the run. Manual: no push webhook
|
||||
# reaches the hub yet. The phone target is not here: it runs through the phone queue with
|
||||
# `fabrica tests run --target phone`.
|
||||
# Rosea Domi: the e2e suites on this PC's e2e runner (fabrica-release.md F9, android-release-apk.md; Fabrica
|
||||
# docs/20_tests.md, docs/31_runners_here.md, docs/35_phone_queue.md).
|
||||
# web: the PWA built, then `fabrica tests run --target web` (Playwright headless against the BUILT bundle under
|
||||
# /Rosea/), the records, traces and screenshots kept with the run.
|
||||
# phone: the debug APK built, then `fabrica tests run --target phone` on the Wave 10. The step says `device:`, so
|
||||
# the hub queues this run for the phone and the nested run uses the run's phone (FABRICA_PHONE_LEASED);
|
||||
# no adb reaches the phone outside the queue. The run waits in the queue without holding a runner.
|
||||
# Manual: no push webhook reaches the hub yet. Gradle's cache is on D: (never C:; F: is the crowded workspace).
|
||||
name: e2e
|
||||
on:
|
||||
manual: true
|
||||
runner: windows-e2e
|
||||
env:
|
||||
PLAYWRIGHT_BROWSERS_PATH: 'F:\ms-playwright'
|
||||
GRADLE_USER_HOME: 'D:\build\rosea\gradle'
|
||||
NDK_HOME: 'F:\Tools\Android\Sdk\ndk\27.1.12297006'
|
||||
steps:
|
||||
- id: install
|
||||
run: pnpm install --frozen-lockfile
|
||||
@@ -19,3 +24,11 @@ steps:
|
||||
needs: [build]
|
||||
run: fabrica tests run --target web
|
||||
artifacts: [".fabrica/runs/tests/**"]
|
||||
- id: apk
|
||||
needs: [install]
|
||||
run: pnpm tauri:android
|
||||
- id: phone
|
||||
needs: [apk]
|
||||
device: Wave 10
|
||||
run: fabrica tests run --target phone
|
||||
artifacts: [".fabrica/runs/tests/**"]
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# CLI) runs every gate of CLAUDE.md §5.5 on a clean checkout, the e2e and offline suites against the BUILT PWA,
|
||||
# takes the Aula pictures on demo data (e2e/aula.spec.ts), and builds the Windows installer and the Android APK.
|
||||
# Nothing is signed before Mark's card. Then: Authenticode on the installer (domi-code-signing); the APK through
|
||||
# custos-sign with rosea-android (Custos makes that key on the first release: a first-signature card); a minisign
|
||||
# custos-sign with rosea-android (NOT made by Custos on its own: android-release-apk.md A6, until then `no_key`); a minisign
|
||||
# signature for each (domi-release); the release with SHA256SUMS signed by domi-release.
|
||||
# No updater and no latest.json: the apps make no network call of their own (CLAUDE.md §2). Mark's PC updates
|
||||
# through Fabrica's Update all; a player installs the next file over the old one (F3).
|
||||
@@ -18,6 +18,9 @@ runner: windows
|
||||
env:
|
||||
PLAYWRIGHT_BROWSERS_PATH: 'F:\ms-playwright'
|
||||
CUSTOS_SIGN_EXE: 'F:\Apps\Custos\custos-sign.exe'
|
||||
# The Android build (android-release-apk.md): the Tauri CLI needs the NDK named; Gradle's cache on D:, never C:.
|
||||
GRADLE_USER_HOME: 'D:\build\rosea\gradle'
|
||||
NDK_HOME: 'F:\Tools\Android\Sdk\ndk\27.1.12297006'
|
||||
steps:
|
||||
- id: version
|
||||
run: node scripts/check-version.mjs ${{ version }}
|
||||
|
||||
+9
-7
@@ -1,11 +1,11 @@
|
||||
# Rosea Domi's Playwright targets (fabrica-release.md F9; Fabrica docs/20_tests.md, docs/22_devices.md,
|
||||
# docs/35_phone_queue.md). `fabrica tests run --target <name>`, or Tests in Fabrica.
|
||||
# Rosea Domi's Playwright targets (fabrica-release.md F9, android-release-apk.md; Fabrica docs/20_tests.md,
|
||||
# docs/22_devices.md, docs/35_phone_queue.md). `fabrica tests run --target <name>`, or Tests in Fabrica.
|
||||
# web: the BUILT PWA (build it first: `pnpm build`) in headless Chromium: the specs of `pnpm test:e2e`.
|
||||
# phone: the Android debug APK on the Wave 10 test phone, only through Fabrica's phone queue. Build it first
|
||||
# (`pnpm tauri:android`). The queue clears this app's data before the run (docs/35 `reset: clear`, its
|
||||
# default); `reset` and `maxMinutes` are not written here because the installed Fabrica (CLI 0.14.0)
|
||||
# does not know them yet. A release build on the phone blocks the debug one (another key): uninstall it
|
||||
# there first.
|
||||
# phone: the Android debug APK on the Wave 10 test phone, only through Fabrica's phone queue (the e2e pipeline's
|
||||
# `phone` step, or `fabrica tests run --target phone`). Build it first (`pnpm tauri:android`). A debug APK,
|
||||
# because only a debug build's WebView can be driven (docs/22 part 5); the release APK is the same game.
|
||||
# `reset: uninstall`: the app is installed fresh, so a release build of Rosea on the phone (another key)
|
||||
# cannot block the run. Nothing of Rosea's on the test phone is kept: it holds no rose of anyone's.
|
||||
dir: .
|
||||
config: e2e/playwright.fabrica.config.ts
|
||||
targets:
|
||||
@@ -19,4 +19,6 @@ targets:
|
||||
project: android
|
||||
device: Wave 10
|
||||
package: cz.mareknovak.domi.rosea
|
||||
reset: uninstall
|
||||
maxMinutes: 20
|
||||
apk: apps/rosea-tauri/src-tauri/gen/android/app/build/outputs/apk/universal/debug/app-universal-debug.apk
|
||||
|
||||
@@ -37,6 +37,12 @@ packages/schema/src/generated/
|
||||
dist-tauri/
|
||||
apps/rosea-tauri/src-tauri/gen/
|
||||
apps/rosea-tauri/src-tauri/icons/
|
||||
# The domi-app.toml for Atrium Domi, made from the name and version before each desktop build (atrium-adoption.md)
|
||||
apps/rosea-tauri/src-tauri/atrium/
|
||||
|
||||
# The Aula pictures, taken by `pnpm aula:shots` (e2e/aula.spec.ts) and published by Fabrica, never committed
|
||||
e2e/aula/
|
||||
# Before-and-after pictures of a change of look (`pnpm look:shots`), never committed
|
||||
e2e/look/
|
||||
# Fabrica's records of `fabrica tests run` (run.json, traces): local evidence, quoted in the reviews, never committed
|
||||
.fabrica/runs/
|
||||
|
||||
+69
-1
@@ -2,7 +2,75 @@
|
||||
|
||||
Rewritten at the end of each session (CLAUDE.md §5.1).
|
||||
|
||||
## Latest — 2026-11-19: released through Fabrica (built, not published)
|
||||
## Latest — 2026-11-23: @domi/ui, the shared look, and the credit
|
||||
|
||||
- **`feature/domi-ui`**: Rosea's buttons and her town search wear @domi/ui v1.5.0 (CPAL-1.0). On Android the town field is an editable box, so no Autofill request goes to Google.
|
||||
- It is vendored unchanged into `packages/domi-ui` by the design system's `tools/vendor.mjs`.
|
||||
- Her colours, system fonts, art and layout stay.
|
||||
- The licence credit stands at the foot of every screen, in its exact words, as plain text.
|
||||
- Analysis: [`.agents/features/domi-ui.md`](.agents/features/domi-ui.md). Review:
|
||||
[`.agents/reviews/feature-domi-ui.md`](.agents/reviews/feature-domi-ui.md), which lists where the new look
|
||||
meets her art rules, for Mark.
|
||||
- Before and after pictures: `ROSEA_LOOK=before|after pnpm look:shots`.
|
||||
- **To upgrade @domi/ui:** from a domi-design clone, `node tools/vendor.mjs <rosea>/packages/domi-ui <tag>`.
|
||||
- **The Button fix** went from here to domi-design (PR mnovak/domi-design#18, released in 1.4.0): Water and Touch her
|
||||
are `Button` again, and *Move the chair* too, with 1.5.0's `bind:element`.
|
||||
|
||||
## Earlier — 2026-11-23: the licence
|
||||
|
||||
- **`docs/licence`**: Rosea Domi is under **CPAL-1.0** from this commit; earlier commits carried no licence.
|
||||
- `LICENSE` is the Domi template with the name filled in; `CPAL-1.0` is set in every `package.json` and in
|
||||
`Cargo.toml`.
|
||||
- A new `README.md` carries the Exhibit B credit (*Built on Domi* · https://aula.marek-novak.cz · Copyright (c)
|
||||
2026 Marek Novák).
|
||||
- Review: [`.agents/reviews/docs-licence.md`](.agents/reviews/docs-licence.md).
|
||||
- **Mark's:** the in-app credit. It is proposed as one quiet line under the Letter's link and is not built, because
|
||||
CLAUDE.md says *Domi* never appears alone in public.
|
||||
- **`feature/domi-ui`** is local and unpushed, waiting for `@domi/ui` v1.0.3 under CPAL-1.0.
|
||||
|
||||
## Earlier — 2026-11-22: Atrium step 1, the manifest alone
|
||||
|
||||
- **`feature/atrium-door`** ships a `domi-app.toml` next to `rosea-shell.exe` (Windows only):
|
||||
- the values are `id rosea`, `name Rosea Domi`, `label Rose`, accent `#e8899b`, `free = true`, `hostable = false`;
|
||||
- it is built from the name constants and the game's version, and never committed;
|
||||
- Atrium's own parser accepts it, and refuses 27 hostile fixtures with the same codes as Rosea's test.
|
||||
- Review: [`.agents/reviews/feature-atrium-door.md`](.agents/reviews/feature-atrium-door.md).
|
||||
- **No door** (contract v0.1 §8 3e). By Mark's ruling, CLAUDE.md §2 (*a window and nothing else*) and §4 (*the Rust
|
||||
side writes no file*) stand. Rosea makes no Canalis call, and Atrium Domi finds her by her uninstall entry and
|
||||
this file. Later Atrium Days (audit, updates, backup, today) will ask again for the door.
|
||||
|
||||
## Earlier — 2026-11-22: the Atrium Domi adoption plan (plan only)
|
||||
|
||||
- **`docs/atrium-adoption`**: [`.agents/features/atrium-adoption.md`](.agents/features/atrium-adoption.md) has the
|
||||
inventory Atrium's Appendix A asks for:
|
||||
- no Tauri invoke or listen;
|
||||
- one database, `rosea` IndexedDB in WebView2's folder;
|
||||
- no outgoing request;
|
||||
- accent `#b4485e` / `#e8899b`; the icon is the placeholder `icon.svg`.
|
||||
- **The plan's decisions:** R1 keep Rosea's own origin when hosted, or her rose seems gone; R2/R3 snapshot and
|
||||
restore as the `rosea-rose` file, additive only. R4 (Rust in the shell) and R1 are Mark's, along with *free* and
|
||||
*today* (G-AT1).
|
||||
- **Code waits** for Atrium's `docs/APP_CONTRACT.md` v0 (the Aula session says when). Visual changes wait for `@domi/ui`.
|
||||
- **The key:** Custos 0.25's *Android grant* (Mark, `mnovak/*`, per Aula) should make `rosea-android` at the first
|
||||
signature (G-F7, unverified).
|
||||
- **The release:** still waits for Mark's own yes in this session to remove G6.1 from CLAUDE.md. The request
|
||||
reached this session only through the Aula session, and CLAUDE.md is not edited on a relayed request.
|
||||
|
||||
## Earlier — 2026-11-21: the APK for a release, tested through the phone queue (blocked twice)
|
||||
|
||||
- **`feature/android-release-apk`**: the phone target says `reset: uninstall` and `maxMinutes: 20`; the e2e
|
||||
pipeline gains `apk` and `phone` (`device: Wave 10`, so the hub queues it); both pipelines name the NDK and put
|
||||
Gradle's cache on D:. Analysis: [`.agents/features/android-release-apk.md`](.agents/features/android-release-apk.md).
|
||||
Review: [`.agents/reviews/feature-android-release-apk.md`](.agents/reviews/feature-android-release-apk.md).
|
||||
- **The phone test passed** through the hub's queue (`fabrica tests run --target phone`): run
|
||||
`20261121-101158-uckm`, 1 passed, 0 failed, on the Wave 10. A planted fault failed as it must. The e2e pipeline's
|
||||
`phone` step still waits for the hub's e2e runner (Mark).
|
||||
- **Blocked on the key:** `rosea-android` does not exist, and Custos will not make it, because it is not in Custos's
|
||||
`ANDROID_APPS` (0.22.0 here, 0.24.0 too). This corrects `fabrica-release.md` F4. It needs a Custos change or
|
||||
Mark's *Create Android key* (G-F7).
|
||||
- **Still the author's:** publication (G6.1, G-F1).
|
||||
|
||||
## Earlier — 2026-11-19: released through Fabrica (built, not published)
|
||||
|
||||
- **Rosea is a Fabrica app** (`feature/fabrica-release`, PR mnovak/Rosea#1): `.fabrica/` (app, the
|
||||
`release` and `e2e` pipelines, `tests.yaml` with `web` and `phone`, `aula.yaml`), `AULA.md`, the brief
|
||||
|
||||
@@ -0,0 +1,168 @@
|
||||
Common Public Attribution License Version 1.0 (CPAL)
|
||||
|
||||
1. “Definitions”
|
||||
|
||||
1.0.1 “Commercial Use” means distribution or otherwise making the Covered Code available to a third party.
|
||||
|
||||
1.1 “Contributor” means each entity that creates or contributes to the creation of Modifications.
|
||||
|
||||
1.2 “Contributor Version” means the combination of the Original Code, prior Modifications used by a Contributor, and the Modifications made by that particular Contributor.
|
||||
|
||||
1.3 “Covered Code” means the Original Code or Modifications or the combination of the Original Code and Modifications, in each case including portions thereof.
|
||||
|
||||
1.4 “Electronic Distribution Mechanism” means a mechanism generally accepted in the software development community for the electronic transfer of data.
|
||||
|
||||
1.5 “Executable” means Covered Code in any form other than Source Code.
|
||||
|
||||
1.6 “Initial Developer” means the individual or entity identified as the Initial Developer in the Source Code notice required by Exhibit A.
|
||||
|
||||
1.7 “Larger Work” means a work which combines Covered Code or portions thereof with code not governed by the terms of this License.
|
||||
|
||||
1.8 “License” means this document.
|
||||
|
||||
1.8.1 “Licensable” means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently acquired, any and all of the rights conveyed herein.
|
||||
|
||||
1.9 “Modifications” means any addition to or deletion from the substance or structure of either the Original Code or any previous Modifications. When Covered Code is released as a series of files, a Modification is:
|
||||
|
||||
A. Any addition to or deletion from the contents of a file containing Original Code or previous Modifications.
|
||||
|
||||
B. Any new file that contains any part of the Original Code or previous Modifications.
|
||||
|
||||
1.10 “Original Code” means Source Code of computer software code which is described in the Source Code notice required by Exhibit A as Original Code, and which, at the time of its release under this License is not already Covered Code governed by this License.
|
||||
|
||||
1.10.1 “Patent Claims” means any patent claim(s), now owned or hereafter acquired, including without limitation, method, process, and apparatus claims, in any patent Licensable by grantor.
|
||||
|
||||
1.11 “Source Code” means the preferred form of the Covered Code for making modifications to it, including all modules it contains, plus any associated interface definition files, scripts used to control compilation and installation of an Executable, or source code differential comparisons against either the Original Code or another well known, available Covered Code of the Contributor’s choice. The Source Code can be in a compressed or archival form, provided the appropriate decompression or de-archiving software is widely available for no charge.
|
||||
|
||||
1.12 “You” (or “Your”) means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License or a future version of this License issued under Section 6.1. For legal entities, “You” includes any entity which controls, is controlled by, or is under common control with You. For purposes of this definition, “control” means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity.
|
||||
|
||||
2. Source Code License.
|
||||
|
||||
2.1 The Initial Developer Grant.
|
||||
The Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license, subject to third party intellectual property claims:
|
||||
|
||||
(a) under intellectual property rights (other than patent or trademark) Licensable by Initial Developer to use, reproduce, modify, display, perform, sublicense and distribute the Original Code (or portions thereof) with or without Modifications, and/or as part of a Larger Work; and
|
||||
|
||||
(b) under Patents Claims infringed by the making, using or selling of Original Code, to make, have made, use, practice, sell, and offer for sale, and/or otherwise dispose of the Original Code (or portions thereof).
|
||||
|
||||
(c) the licenses granted in this Section 2.1(a) and (b) are effective on the date Initial Developer first distributes Original Code under the terms of this License.
|
||||
|
||||
(d) Notwithstanding Section 2.1(b) above, no patent license is granted: 1) for code that You delete from the Original Code; 2) separate from the Original Code; or 3) for infringements caused by: i) the modification of the Original Code or ii) the combination of the Original Code with other software or devices.
|
||||
|
||||
2.2 Contributor Grant.
|
||||
Subject to third party intellectual property claims, each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license
|
||||
|
||||
(a) under intellectual property rights (other than patent or trademark) Licensable by Contributor, to use, reproduce, modify, display, perform, sublicense and distribute the Modifications created by such Contributor (or portions thereof) either on an unmodified basis, with other Modifications, as Covered Code and/or as part of a Larger Work; and
|
||||
|
||||
(b) under Patent Claims infringed by the making, using, or selling of Modifications made by that Contributor either alone and/or in combination with its Contributor Version (or portions of such combination), to make, use, sell, offer for sale, have made, and/or otherwise dispose of: 1) Modifications made by that Contributor (or portions thereof); and 2) the combination of Modifications made by that Contributor with its Contributor Version (or portions of such combination).
|
||||
|
||||
(c) the licenses granted in Sections 2.2(a) and 2.2(b) are effective on the date Contributor first makes Commercial Use of the Covered Code.
|
||||
|
||||
(d) Notwithstanding Section 2.2(b) above, no patent license is granted: 1) for any code that Contributor has deleted from the Contributor Version; 2) separate from the Contributor Version; 3) for infringements caused by: i) third party modifications of Contributor Version or ii) the combination of Modifications made by that Contributor with other software (except as part of the Contributor Version) or other devices; or 4) under Patent Claims infringed by Covered Code in the absence of Modifications made by that Contributor.
|
||||
|
||||
3. Distribution Obligations.
|
||||
|
||||
3.1 Application of License.
|
||||
The Modifications which You create or to which You contribute are governed by the terms of this License, including without limitation Section 2.2. The Source Code version of Covered Code may be distributed only under the terms of this License or a future version of this License released under Section 6.1, and You must include a copy of this License with every copy of the Source Code You distribute. You may not offer or impose any terms on any Source Code version that alters or restricts the applicable version of this License or the recipients’ rights hereunder. However, You may include an additional document offering the additional rights described in Section 3.5.
|
||||
|
||||
3.2 Availability of Source Code.
|
||||
Any Modification which You create or to which You contribute must be made available in Source Code form under the terms of this License either on the same media as an Executable version or via an accepted Electronic Distribution Mechanism to anyone to whom you made an Executable version available; and if made available via Electronic Distribution Mechanism, must remain available for at least twelve (12) months after the date it initially became available, or at least six (6) months after a subsequent version of that particular Modification has been made available to such recipients. You are responsible for ensuring that the Source Code version remains available even if the Electronic Distribution Mechanism is maintained by a third party.
|
||||
|
||||
3.3 Description of Modifications.
|
||||
You must cause all Covered Code to which You contribute to contain a file documenting the changes You made to create that Covered Code and the date of any change. You must include a prominent statement that the Modification is derived, directly or indirectly, from Original Code provided by the Initial Developer and including the name of the Initial Developer in (a) the Source Code, and (b) in any notice in an Executable version or related documentation in which You describe the origin or ownership of the Covered Code.
|
||||
|
||||
3.4 Intellectual Property Matters
|
||||
|
||||
(a) Third Party Claims. If Contributor has knowledge that a license under a third party’s intellectual property rights is required to exercise the rights granted by such Contributor under Sections 2.1 or 2.2, Contributor must include a text file with the Source Code distribution titled “LEGAL” which describes the claim and the party making the claim in sufficient detail that a recipient will know whom to contact. If Contributor obtains such knowledge after the Modification is made available as described in Section 3.2, Contributor shall promptly modify the LEGAL file in all copies Contributor makes available thereafter and shall take other steps (such as notifying appropriate mailing lists or newsgroups) reasonably calculated to inform those who received the Covered Code that new knowledge has been obtained.
|
||||
|
||||
(b) Contributor APIs. If Contributor’s Modifications include an application programming interface and Contributor has knowledge of patent licenses which are reasonably necessary to implement that API, Contributor must also include this information in the LEGAL file.
|
||||
|
||||
(c) Representations. Contributor represents that, except as disclosed pursuant to Section 3.4(a) above, Contributor believes that Contributor’s Modifications are Contributor’s original creation(s) and/or Contributor has sufficient rights to grant the rights conveyed by this License.
|
||||
|
||||
3.5 Required Notices.
|
||||
You must duplicate the notice in Exhibit A in each file of the Source Code. If it is not possible to put such notice in a particular Source Code file due to its structure, then You must include such notice in a location (such as a relevant directory) where a user would be likely to look for such a notice. If You created one or more Modification(s) You may add your name as a Contributor to the notice described in Exhibit A. You must also duplicate this License in any documentation for the Source Code where You describe recipients’ rights or ownership rights relating to Covered Code. You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Code. However, You may do so only on Your own behalf, and not on behalf of the Initial Developer or any Contributor. You must make it absolutely clear than any such warranty, support, indemnity or liability obligation is offered by You alone, and You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of warranty, support, indemnity or liability terms You offer.
|
||||
|
||||
3.6 Distribution of Executable Versions.
|
||||
You may distribute Covered Code in Executable form only if the requirements of Section 3.1-3.5 have been met for that Covered Code, and if You include a notice stating that the Source Code version of the Covered Code is available under the terms of this License, including a description of how and where You have fulfilled the obligations of Section 3.2. The notice must be conspicuously included in any notice in an Executable version, related documentation or collateral in which You describe recipients’ rights relating to the Covered Code. You may distribute the Executable version of Covered Code or ownership rights under a license of Your choice, which may contain terms different from this License, provided that You are in compliance with the terms of this License and that the license for the Executable version does not attempt to limit or alter the recipient’s rights in the Source Code version from the rights set forth in this License. If You distribute the Executable version under a different license You must make it absolutely clear that any terms which differ from this License are offered by You alone, not by the Initial Developer, Original Developer or any Contributor. You hereby agree to indemnify the Initial Developer, Original Developer and every Contributor for any liability incurred by the Initial Developer, Original Developer or such Contributor as a result of any such terms You offer.
|
||||
|
||||
3.7 Larger Works.
|
||||
You may create a Larger Work by combining Covered Code with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Code.
|
||||
|
||||
4. Inability to Comply Due to Statute or Regulation.
|
||||
If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Code due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be included in the LEGAL file described in Section 3.4 and must be included with all distributions of the Source Code. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it.
|
||||
|
||||
5. Application of this License.
|
||||
This License applies to code to which the Initial Developer has attached the notice in Exhibit A and to related Covered Code.
|
||||
|
||||
6. Versions of the License.
|
||||
|
||||
6.1 New Versions.
|
||||
Socialtext, Inc. (“Socialtext”) may publish revised and/or new versions of the License from time to time. Each version will be given a distinguishing version number.
|
||||
|
||||
6.2 Effect of New Versions.
|
||||
Once Covered Code has been published under a particular version of the License, You may always continue to use it under the terms of that version. You may also choose to use such Covered Code under the terms of any subsequent version of the License published by Socialtext. No one other than Socialtext has the right to modify the terms applicable to Covered Code created under this License.
|
||||
|
||||
6.3 Derivative Works.
|
||||
If You create or use a modified version of this License (which you may only do in order to apply it to code which is not already Covered Code governed by this License), You must (a) rename Your license so that the phrases “Socialtext”, “CPAL” or any confusingly similar phrase do not appear in your license (except to note that your license differs from this License) and (b) otherwise make it clear that Your version of the license contains terms which differ from the CPAL. (Filling in the name of the Initial Developer, Original Developer, Original Code or Contributor in the notice described in Exhibit A shall not of themselves be deemed to be modifications of this License.)
|
||||
|
||||
7. DISCLAIMER OF WARRANTY.
|
||||
COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN “AS IS” BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER, ORIGINAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
|
||||
|
||||
8. TERMINATION.
|
||||
|
||||
8.1 This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. All sublicenses to the Covered Code which are properly granted shall survive any termination of this License. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive.
|
||||
|
||||
8.2 If You initiate litigation by asserting a patent infringement claim (excluding declatory judgment actions) against Initial Developer, Original Developer or a Contributor (the Initial Developer, Original Developer or Contributor against whom You file such action is referred to as “Participant”) alleging that:
|
||||
|
||||
(a) such Participant’s Contributor Version directly or indirectly infringes any patent, then any and all rights granted by such Participant to You under Sections 2.1 and/or 2.2 of this License shall, upon 60 days notice from Participant terminate prospectively, unless if within 60 days after receipt of notice You either: (i) agree in writing to pay Participant a mutually agreeable reasonable royalty for Your past and future use of Modifications made by such Participant, or (ii) withdraw Your litigation claim with respect to the Contributor Version against such Participant. If within 60 days of notice, a reasonable royalty and payment arrangement are not mutually agreed upon in writing by the parties or the litigation claim is not withdrawn, the rights granted by Participant to You under Sections 2.1 and/or 2.2 automatically terminate at the expiration of the 60 day notice period specified above.
|
||||
|
||||
(b) any software, hardware, or device, other than such Participant’s Contributor Version, directly or indirectly infringes any patent, then any rights granted to You by such Participant under Sections 2.1(b) and 2.2(b) are revoked effective as of the date You first made, used, sold, distributed, or had made, Modifications made by that Participant.
|
||||
|
||||
8.3 If You assert a patent infringement claim against Participant alleging that such Participant’s Contributor Version directly or indirectly infringes any patent where such claim is resolved (such as by license or settlement) prior to the initiation of patent infringement litigation, then the reasonable value of the licenses granted by such Participant under Sections 2.1 or 2.2 shall be taken into account in determining the amount or value of any payment or license.
|
||||
|
||||
8.4 In the event of termination under Sections 8.1 or 8.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or any distributor hereunder prior to termination shall survive termination.
|
||||
|
||||
9. LIMITATION OF LIABILITY.
|
||||
UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ORIGINAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH PARTY’S NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
|
||||
|
||||
10. U.S. GOVERNMENT END USERS.
|
||||
The Covered Code is a “commercial item,” as that term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of “commercial computer software” and “commercial computer software documentation,” as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered Code with only those rights set forth herein.
|
||||
|
||||
11. MISCELLANEOUS.
|
||||
This License represents the complete agreement concerning subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. This License shall be governed by California law provisions (except to the extent applicable law, if any, provides otherwise), excluding its conflict-of-law provisions. With respect to disputes in which at least one party is a citizen of, or an entity chartered or registered to do business in the United States of America, any litigation relating to this License shall be subject to the jurisdiction of the Federal Courts of the Northern District of California, with venue lying in Santa Clara County, California, with the losing party responsible for costs, including without limitation, court costs and reasonable attorneys’ fees and expenses. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not apply to this License.
|
||||
|
||||
12. RESPONSIBILITY FOR CLAIMS.
|
||||
As between Initial Developer, Original Developer and the Contributors, each party is responsible for claims and damages arising, directly or indirectly, out of its utilization of rights under this License and You agree to work with Initial Developer, Original Developer and Contributors to distribute such responsibility on an equitable basis. Nothing herein is intended or shall be deemed to constitute any admission of liability.
|
||||
|
||||
13. MULTIPLE-LICENSED CODE.
|
||||
Initial Developer may designate portions of the Covered Code as Multiple-Licensed. Multiple-Licensed means that the Initial Developer permits you to utilize portions of the Covered Code under Your choice of the CPAL or the alternative licenses, if any, specified by the Initial Developer in the file described in Exhibit A.
|
||||
|
||||
14. ADDITIONAL TERM: ATTRIBUTION
|
||||
|
||||
(a) As a modest attribution to the organizer of the development of the Original Code (“Original Developer”), in the hope that its promotional value may help justify the time, money and effort invested in writing the Original Code, the Original Developer may include in Exhibit B (“Attribution Information”) a requirement that each time an Executable and Source Code or a Larger Work is launched or initially run (which includes initiating a session), a prominent display of the Original Developer’s Attribution Information (as defined below) must occur on the graphic user interface employed by the end user to access such Covered Code (which may include display on a splash screen), if any. The size of the graphic image should be consistent with the size of the other elements of the Attribution Information. If the access by the end user to the Executable and Source Code does not create a graphic user interface for access to the Covered Code, this obligation shall not apply. If the Original Code displays such Attribution Information in a particular form (such as in the form of a splash screen, notice at login, an “about” display, or dedicated attribution area on user interface screens), continued use of such form for that Attribution Information is one way of meeting this requirement for notice.
|
||||
|
||||
(b) Attribution information may only include a copyright notice, a brief phrase, graphic image and a URL (“Attribution Information”) and is subject to the Attribution Limits as defined below. For these purposes, prominent shall mean display for sufficient duration to give reasonable notice to the user of the identity of the Original Developer and that if You include Attribution Information or similar information for other parties, You must ensure that the Attribution Information for the Original Developer shall be no less prominent than such Attribution Information or similar information for the other party. For greater certainty, the Original Developer may choose to specify in Exhibit B below that the above attribution requirement only applies to an Executable and Source Code resulting from the Original Code or any Modification, but not a Larger Work. The intent is to provide for reasonably modest attribution, therefore the Original Developer cannot require that You display, at any time, more than the following information as Attribution Information: (a) a copyright notice including the name of the Original Developer; (b) a word or one phrase (not exceeding 10 words); (c) one graphic image provided by the Original Developer; and (d) a URL (collectively, the “Attribution Limits”).
|
||||
|
||||
(c) If Exhibit B does not include any Attribution Information, then there are no requirements for You to display any Attribution Information of the Original Developer.
|
||||
|
||||
(d) You acknowledge that all trademarks, service marks and/or trade names contained within the Attribution Information distributed with the Covered Code are the exclusive property of their owners and may only be used with the permission of their owners, or under circumstances otherwise permitted by law or as expressly set out in this License.
|
||||
|
||||
15. ADDITIONAL TERM: NETWORK USE.
|
||||
The term “External Deployment” means the use, distribution, or communication of the Original Code or Modifications in any way such that the Original Code or Modifications may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Code or Modifications as a distribution under section 3.1 and make Source Code available under Section 3.2.
|
||||
|
||||
EXHIBIT A. Common Public Attribution License Version 1.0.
|
||||
|
||||
"The contents of this file are subject to the Common Public Attribution License Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://opensource.org/license/cpal_1-0. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
||||
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
||||
The Original Code is Rosea Domi.
|
||||
The Original Developer is the Initial Developer.
|
||||
The Initial Developer of the Original Code is Marek Novák. All portions of the code written by Marek Novák are Copyright (c) 2026. All Rights Reserved.
|
||||
Contributor: none."
|
||||
|
||||
EXHIBIT B. Attribution Information
|
||||
|
||||
Attribution Copyright Notice: Copyright (c) 2026 Marek Novák
|
||||
Attribution Phrase (not exceeding 10 words): Built on Domi
|
||||
Attribution URL: https://aula.marek-novak.cz
|
||||
Graphic Image as provided in the Covered Code, if any: none.
|
||||
Display of Attribution Information is required in Larger Works which are defined in the CPAL as a work which combines Covered Code or portions thereof with code not governed by the terms of the CPAL.
|
||||
@@ -0,0 +1,40 @@
|
||||
# Rosea Domi
|
||||
|
||||
A small game about a living rose, a fox, and the time we give to people. It ships from one Svelte codebase as four
|
||||
versions: a web app (PWA), and apps for Android, Windows and, later, iOS. What the player sees is described in
|
||||
[`AULA.md`](AULA.md). How the repository works is described in [`CLAUDE.md`](CLAUDE.md) and [`HANDOVER.md`](HANDOVER.md).
|
||||
|
||||
```bash
|
||||
pnpm install --frozen-lockfile
|
||||
pnpm --filter @rosea/app dev # 127.0.0.1:5173
|
||||
pnpm test # every package; quote the counts
|
||||
```
|
||||
|
||||
## Licence
|
||||
|
||||
Rosea Domi is licensed under the **Common Public Attribution License 1.0** (SPDX `CPAL-1.0`). The full text, with
|
||||
Exhibits A and B, is in [`LICENSE`](LICENSE). The code is under CPAL-1.0 from the commit that added that file.
|
||||
Earlier commits carried no licence.
|
||||
|
||||
Anyone who distributes Rosea Domi or a work built from it must show this credit, as section 14 and Exhibit B
|
||||
require:
|
||||
|
||||
> Built on Domi · https://aula.marek-novak.cz · Copyright (c) 2026 Marek Novák
|
||||
|
||||
Contains @domi/ui (CPAL-1.0, Copyright (c) 2026 Marek Novák), in `packages/domi-ui`; the rest of this repo is under
|
||||
its own licence. The copy is unchanged, made by the design system's `tools/vendor.mjs` from its tag; its `NOTICE` and
|
||||
`VERSION` say which. The game shows the credit above at the foot of every screen.
|
||||
|
||||
The licence does not cover what Marek Novák did not write. Those works keep their own terms:
|
||||
|
||||
- **The hope sentences** quote public-domain works. They sit in `content/candidates/` until the author verifies each
|
||||
one into `content/library/`, and every entry names its work, author, translation and public-domain status. The
|
||||
sources include the King James Bible; Cicero (tr. Shuckburgh, 1900, and Peabody, 1887); Marcus Aurelius (tr. Long, 1862); Seneca (tr.
|
||||
Stewart, 1889); Laozi (tr. Legge, 1891); the Dhammapada (tr. Müller, 1881); Sa'di (tr. Ross, 1823); Julian of
|
||||
Norwich (ed. Warrack, 1901); Kahlil Gibran; Rabindranath Tagore (his own English, 1912); Thoreau, Muir, Emerson,
|
||||
Dickinson, Whitman, Wordsworth, Rossetti and Stevenson.
|
||||
- **The town list** (`packages/content/src/places/`) is made from Natural Earth and the IANA time zone database,
|
||||
both in the public domain (`scripts/build-places.ts`).
|
||||
- **The sun's reference tables** used by the tests come from the U.S. Naval Observatory and name it in the fixture.
|
||||
- **The pictures** in `art/placeholders/` are stand-ins drawn in code by this repository's `tools/art-prep`, under
|
||||
its licence. There is no third-party art.
|
||||
@@ -2,11 +2,12 @@
|
||||
"name": "@rosea/tauri",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"license": "CPAL-1.0",
|
||||
"type": "module",
|
||||
"description": "The Tauri 2 shell: the Android, iOS and desktop apps around apps/rosea's built game (dist-tauri/). Imports no package.",
|
||||
"scripts": {
|
||||
"dev": "tsx scripts/icons.ts && tauri dev",
|
||||
"build:desktop": "tsx scripts/icons.ts && tauri build",
|
||||
"dev": "tsx scripts/icons.ts && tsx scripts/domi-app.ts && tauri dev",
|
||||
"build:desktop": "tsx scripts/icons.ts && tsx scripts/domi-app.ts && tauri build",
|
||||
"build:android": "tsx scripts/android.ts prepare && tauri android build --debug --apk --target aarch64 && tsx scripts/android.ts verify",
|
||||
"build:android-release": "tsx scripts/android.ts prepare && tauri android build --apk --target aarch64 && tsx scripts/android.ts verify src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-unsigned.apk",
|
||||
"sign:apk": "tsx scripts/sign-apk.ts",
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
/**
|
||||
* The `domi-app.toml` that lets Atrium Domi show Rosea Domi in its grid (Atrium docs/APP_CONTRACT.md v0, §2–3;
|
||||
* .agents/features/atrium-adoption.md). It is made before every desktop build from the name constants and the game's
|
||||
* version, so the name stays in its three places (CLAUDE.md, header) and the version in Fabrica's four files
|
||||
* (scripts/check-version.mjs). It is build output, never committed. `tauri.windows.conf.json` puts it next to the
|
||||
* `.exe`, with the icon it names.
|
||||
*
|
||||
* tsx scripts/domi-app.ts writes src-tauri/atrium/domi-app.toml
|
||||
*
|
||||
* This is a static file only. Rosea reads nothing of Atrium's and calls nothing; the door (APP_CONTRACT §4–5) waits
|
||||
* on the author (atrium-adoption.md R4). What APP_CONTRACT §7 says may still change is kept here, in `ATRIUM`.
|
||||
*/
|
||||
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
||||
import { join, resolve } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { PRODUCT_NAME, PRODUCT_SHORT_NAME } from '../../../packages/schema/src/constants.js';
|
||||
import { PACKAGE, SRC_TAURI } from './tauri.js';
|
||||
|
||||
/** What the Atrium contract fixes today and may move before its v1 (APP_CONTRACT §2.2, §7). */
|
||||
export const ATRIUM = {
|
||||
needs: { fundamentum: '>=0.7', atrium: '>=0.1' },
|
||||
/** The icon, beside the `.exe`: the shell's own 256 px icon, made from apps/rosea/public/icon.svg (a placeholder). */
|
||||
icon: { file: 'domi-icon.png', from: 'icons/128x128@2x.png' }
|
||||
} as const;
|
||||
|
||||
/** The file, relative to src-tauri/, that `tauri.windows.conf.json` bundles. */
|
||||
export const MANIFEST = 'atrium/domi-app.toml';
|
||||
|
||||
export interface DomiApp {
|
||||
readonly id: string;
|
||||
readonly name: string;
|
||||
readonly label: string;
|
||||
readonly version: string;
|
||||
readonly accent: string;
|
||||
readonly icon: string;
|
||||
readonly hostable: boolean;
|
||||
readonly free: boolean;
|
||||
readonly needs: { readonly fundamentum: string; readonly atrium: string };
|
||||
}
|
||||
|
||||
export function domiApp(version: string): DomiApp {
|
||||
return {
|
||||
// The Aula project and the Canalis id; it changes with the name, in the same commit.
|
||||
id: PRODUCT_SHORT_NAME.toLowerCase(),
|
||||
name: PRODUCT_NAME,
|
||||
// One plain word for what she is (atrium-adoption.md §2.4, a judgment).
|
||||
label: 'Rose',
|
||||
version,
|
||||
// --rose on the dark theme (packages/ui/src/tokens.css): Atrium Domi's window is dark, and its catalogue names
|
||||
// the same colour for Rosea (Fundamentum crates/atrium-registry/src/catalogue.rs).
|
||||
accent: '#e8899b',
|
||||
icon: ATRIUM.icon.file,
|
||||
// Day 4 waits on R1: hosted, she must keep her own window and origin, or her rose seems gone.
|
||||
hostable: false,
|
||||
// Rosea needs no licence (APP_CONTRACT §2.2: "true if your app needs no licence").
|
||||
free: true,
|
||||
needs: ATRIUM.needs
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* A TOML basic string. Every value here is ours; the escape keeps a later one honest: a quote, a backslash or a
|
||||
* line break can never end the string and start a key.
|
||||
*/
|
||||
const str = (s: string): string =>
|
||||
// eslint-disable-next-line no-control-regex -- finding control characters is the point
|
||||
`"${s.replace(/[\\"\u0000-\u001f\u007f]/g, (c) =>
|
||||
c === '\\' || c === '"' ? `\\${c}` : `\\u${c.charCodeAt(0).toString(16).padStart(4, '0')}`
|
||||
)}"`;
|
||||
|
||||
export function toToml(m: DomiApp): string {
|
||||
return [
|
||||
`id = ${str(m.id)}`,
|
||||
`name = ${str(m.name)}`,
|
||||
`label = ${str(m.label)}`,
|
||||
`version = ${str(m.version)}`,
|
||||
`accent = ${str(m.accent)}`,
|
||||
`icon = ${str(m.icon)}`,
|
||||
`hostable = ${String(m.hostable)}`,
|
||||
`free = ${String(m.free)}`,
|
||||
`needs = { fundamentum = ${str(m.needs.fundamentum)}, atrium = ${str(m.needs.atrium)} }`,
|
||||
''
|
||||
].join('\n');
|
||||
}
|
||||
|
||||
/** The game's version: the installer's own (tauri.conf.json reads the same file). */
|
||||
export function gameVersion(): string {
|
||||
const pkg = JSON.parse(readFileSync(join(PACKAGE, '..', 'rosea', 'package.json'), 'utf8')) as { version: string };
|
||||
return pkg.version;
|
||||
}
|
||||
|
||||
if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
|
||||
mkdirSync(join(SRC_TAURI, 'atrium'), { recursive: true });
|
||||
writeFileSync(join(SRC_TAURI, MANIFEST), toToml(domiApp(gameVersion())), 'utf8');
|
||||
console.log(`domi-app.toml: written for Atrium Domi (${MANIFEST})`);
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
[package]
|
||||
name = "rosea-shell"
|
||||
version = "0.1.0"
|
||||
license = "CPAL-1.0"
|
||||
description = "The Tauri 2 shell of Rosea Domi: a window around the built game, and nothing else."
|
||||
edition = "2024"
|
||||
publish = false
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
"active": true,
|
||||
"icon": ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico"],
|
||||
"category": "Game",
|
||||
"license": "CPAL-1.0",
|
||||
"shortDescription": "A rose to tend, a fox to befriend, and the time we give to people.",
|
||||
"windows": { "nsis": { "installMode": "currentUser" } }
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"bundle": {
|
||||
"targets": ["nsis"],
|
||||
"resources": { "atrium/domi-app.toml": "domi-app.toml", "icons/128x128@2x.png": "domi-icon.png" },
|
||||
"windows": { "nsis": { "installerHooks": "./windows/hooks.nsh" } }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,235 @@
|
||||
/**
|
||||
* Atrium Domi's rules for a `domi-app.toml` (Atrium docs/APP_CONTRACT.md v0 §2), as a test helper. The real parser is
|
||||
* Rust (`atrium_registry::parse_manifest`, Fundamentum). APP_CONTRACT §6 asks an app that cannot use it "at least" to
|
||||
* check its file against §2. The rules are checked in the parser's order, so a hostile file gets the reason code
|
||||
* the parser gives. That agreement was measured once against the parser itself (review of `feature/atrium-door`).
|
||||
*
|
||||
* The TOML reader takes only what a manifest needs: `key = value` lines, comments, basic strings, booleans, decimal
|
||||
* integers (so `format = 2` is `unknown_key`, as in the parser), one-line inline tables and arrays of strings. Anything else is `not_toml`. That is stricter than TOML, which is safe for
|
||||
* Rosea's own file; `toml` 1.x would accept some files this refuses.
|
||||
*/
|
||||
export interface Refusal {
|
||||
readonly field: string | null;
|
||||
readonly reason: string;
|
||||
}
|
||||
|
||||
type Value = string | boolean | number | readonly string[] | { readonly [k: string]: Value };
|
||||
|
||||
const MAX_MANIFEST = 16_384;
|
||||
|
||||
class NotToml extends Error {}
|
||||
|
||||
function readString(s: string, at: number): [string, number] {
|
||||
if (s[at] !== '"') throw new NotToml();
|
||||
let out = '';
|
||||
let i = at + 1;
|
||||
while (i < s.length) {
|
||||
const c = s[i]!;
|
||||
if (c === '"') return [out, i + 1];
|
||||
if (c === '\\') {
|
||||
const e = s[i + 1];
|
||||
const simple: Record<string, string> = { '"': '"', '\\': '\\', n: '\n', t: '\t', r: '\r', b: '\b', f: '\f' };
|
||||
if (e && e in simple) {
|
||||
out += simple[e];
|
||||
i += 2;
|
||||
} else if (e === 'u' || e === 'U') {
|
||||
const len = e === 'u' ? 4 : 8;
|
||||
const hex = s.slice(i + 2, i + 2 + len);
|
||||
if (!/^[0-9a-fA-F]+$/.test(hex) || hex.length !== len) throw new NotToml();
|
||||
out += String.fromCodePoint(parseInt(hex, 16));
|
||||
i += 2 + len;
|
||||
} else throw new NotToml();
|
||||
} else if (c === '\n' || (c.charCodeAt(0) < 0x20 && c !== '\t') || c === '\x7f') {
|
||||
throw new NotToml();
|
||||
} else {
|
||||
out += c;
|
||||
i += 1;
|
||||
}
|
||||
}
|
||||
throw new NotToml();
|
||||
}
|
||||
|
||||
const skip = (s: string, at: number): number => {
|
||||
let i = at;
|
||||
while (s[i] === ' ' || s[i] === '\t') i += 1;
|
||||
return i;
|
||||
};
|
||||
|
||||
function readValue(s: string, at: number): [Value, number] {
|
||||
const i = skip(s, at);
|
||||
if (s[i] === '"') return readString(s, i);
|
||||
if (s.startsWith('true', i)) return [true, i + 4];
|
||||
if (s.startsWith('false', i)) return [false, i + 5];
|
||||
const int = /^[+-]?(0|[1-9][0-9]*)(?![0-9A-Za-z._:])/.exec(s.slice(i));
|
||||
if (int) return [Number(int[0]), i + int[0].length];
|
||||
if (s[i] === '[') {
|
||||
const items: string[] = [];
|
||||
let j = skip(s, i + 1);
|
||||
if (s[j] === ']') return [items, j + 1];
|
||||
for (;;) {
|
||||
const [v, k] = readString(s, skip(s, j));
|
||||
items.push(v);
|
||||
j = skip(s, k);
|
||||
if (s[j] === ']') return [items, j + 1];
|
||||
if (s[j] !== ',') throw new NotToml();
|
||||
j += 1;
|
||||
}
|
||||
}
|
||||
if (s[i] === '{') {
|
||||
const table: Record<string, Value> = {};
|
||||
let j = skip(s, i + 1);
|
||||
if (s[j] === '}') return [table, j + 1];
|
||||
for (;;) {
|
||||
const key = /^[A-Za-z0-9_-]+/.exec(s.slice(skip(s, j)))?.[0];
|
||||
if (!key) throw new NotToml();
|
||||
j = skip(s, skip(s, j) + key.length);
|
||||
if (s[j] !== '=') throw new NotToml();
|
||||
const [v, k] = readValue(s, j + 1);
|
||||
if (key in table) throw new NotToml();
|
||||
table[key] = v;
|
||||
j = skip(s, k);
|
||||
if (s[j] === '}') return [table, j + 1];
|
||||
if (s[j] !== ',') throw new NotToml();
|
||||
j += 1;
|
||||
}
|
||||
}
|
||||
throw new NotToml();
|
||||
}
|
||||
|
||||
function readToml(text: string): Record<string, Value> {
|
||||
const table: Record<string, Value> = {};
|
||||
for (const raw of text.split('\n')) {
|
||||
const line = raw.endsWith('\r') ? raw.slice(0, -1) : raw;
|
||||
const start = skip(line, 0);
|
||||
if (start === line.length || line[start] === '#') continue;
|
||||
const key = /^[A-Za-z0-9_-]+/.exec(line.slice(start))?.[0];
|
||||
if (!key) throw new NotToml();
|
||||
let i = skip(line, start + key.length);
|
||||
if (line[i] !== '=') throw new NotToml();
|
||||
const [v, end] = readValue(line, i + 1);
|
||||
i = skip(line, end);
|
||||
if (i !== line.length && line[i] !== '#') throw new NotToml();
|
||||
if (key in table) throw new NotToml();
|
||||
table[key] = v;
|
||||
}
|
||||
return table;
|
||||
}
|
||||
|
||||
type Kind = 'str' | 'bool' | 'table' | 'array' | 'other';
|
||||
const KEYS: readonly (readonly [string, Kind, boolean])[] = [
|
||||
['id', 'str', true],
|
||||
['name', 'str', true],
|
||||
['label', 'str', true],
|
||||
['version', 'str', true],
|
||||
['accent', 'str', true],
|
||||
['icon', 'str', false],
|
||||
['ui_bundle', 'str', false],
|
||||
['hostable', 'bool', true],
|
||||
['free', 'bool', true],
|
||||
['needs', 'table', true],
|
||||
['capabilities', 'array', false]
|
||||
];
|
||||
const kindOf = (v: Value): Kind =>
|
||||
typeof v === 'string' ? 'str' : typeof v === 'boolean' ? 'bool' : typeof v === 'number' ? 'other' : Array.isArray(v) ? 'array' : 'table';
|
||||
|
||||
// SemVer 2.0 (semver.org's regular expression).
|
||||
const SEMVER =
|
||||
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;
|
||||
// The part of Cargo's requirement syntax this file uses: comparators like `>=0.7`, comma-separated.
|
||||
const SEMVER_REQ = /^\s*(?:[=><~^]|>=|<=)?\s*\d+(?:\.\d+){0,2}(?:\s*,\s*(?:[=><~^]|>=|<=)?\s*\d+(?:\.\d+){0,2})*\s*$/;
|
||||
// eslint-disable-next-line no-control-regex -- APP_CONTRACT §2.2's control characters, on purpose
|
||||
const CONTROL = /[\u0000-\u001f\u007f-\u009f]/;
|
||||
const BIDI = /[--]/;
|
||||
const DEVICE = /^(con|prn|aux|nul|com[0-9]|lpt[0-9]|conin\$|conout\$)$/i;
|
||||
|
||||
function text(field: string, value: string, max: number): Refusal | null {
|
||||
const chars = [...value].length;
|
||||
if (chars === 0) return { field, reason: 'empty' };
|
||||
if (chars > max) return { field, reason: 'too_long' };
|
||||
if (CONTROL.test(value)) return { field, reason: 'control_char' };
|
||||
if (BIDI.test(value)) return { field, reason: 'bidi_char' };
|
||||
if (value.trim() !== value) return { field, reason: 'edge_space' };
|
||||
return null;
|
||||
}
|
||||
|
||||
function relPath(p: string): string | null {
|
||||
if (p.length === 0) return 'path_empty';
|
||||
if (new TextEncoder().encode(p).length > 255) return 'path_too_long';
|
||||
if (p.includes('\0')) return 'path_nul';
|
||||
if (p.includes('\\')) return 'path_backslash';
|
||||
if (p.startsWith('/')) return 'path_absolute';
|
||||
if (p.includes(':')) return 'path_colon';
|
||||
if (p.includes('..')) return 'path_dotdot';
|
||||
const parts = p.split('/');
|
||||
if (parts.some((c) => c === '' || c === '.')) return 'path_component';
|
||||
if (parts.some((c) => c.endsWith('.') || c.endsWith(' '))) return 'path_trailing';
|
||||
if (parts.some((c) => DEVICE.test(c.split('.')[0]!))) return 'path_reserved';
|
||||
if (!/^[A-Za-z0-9\-_./ %+()]+$/.test(p)) return 'path_char';
|
||||
return null;
|
||||
}
|
||||
|
||||
/** `null` when Atrium Domi would accept the file, else the first rule it breaks. */
|
||||
export function checkManifest(bytes: Uint8Array): Refusal | null {
|
||||
if (bytes.length > MAX_MANIFEST) return { field: null, reason: 'too_large' };
|
||||
let source: string;
|
||||
try {
|
||||
source = new TextDecoder('utf-8', { fatal: true }).decode(bytes);
|
||||
} catch {
|
||||
// Invalid UTF-8 is the answer itself, not an error to report.
|
||||
return { field: null, reason: 'not_utf8' };
|
||||
}
|
||||
let t: Record<string, Value>;
|
||||
try {
|
||||
t = readToml(source);
|
||||
} catch (e) {
|
||||
if (e instanceof NotToml) return { field: null, reason: 'not_toml' };
|
||||
throw e;
|
||||
}
|
||||
if (Object.keys(t).some((k) => !KEYS.some(([name]) => name === k))) return { field: null, reason: 'unknown_key' };
|
||||
for (const [key, kind, required] of KEYS) {
|
||||
const v = t[key];
|
||||
if (v === undefined) {
|
||||
if (required) return { field: key, reason: 'missing' };
|
||||
} else if (kindOf(v) !== kind) return { field: key, reason: 'wrong_type' };
|
||||
}
|
||||
const needs = t['needs'] as Record<string, Value>;
|
||||
if (Object.keys(needs).some((k) => k !== 'fundamentum' && k !== 'atrium')) return { field: 'needs', reason: 'unknown_key' };
|
||||
for (const k of ['fundamentum', 'atrium']) {
|
||||
if (needs[k] === undefined) return { field: 'needs', reason: 'missing' };
|
||||
if (typeof needs[k] !== 'string') return { field: 'needs', reason: 'wrong_type' };
|
||||
}
|
||||
const caps = (t['capabilities'] ?? []) as readonly Value[];
|
||||
if (caps.length > 64) return { field: 'capabilities', reason: 'too_many' };
|
||||
if (caps.some((c) => typeof c !== 'string')) return { field: 'capabilities', reason: 'wrong_type' };
|
||||
|
||||
const id = t['id'] as string;
|
||||
if (!/^[a-z0-9-]{1,32}$/.test(id) || id.startsWith('-') || id.endsWith('-')) return { field: 'id', reason: 'bad_id' };
|
||||
const named = text('name', t['name'] as string, 64) ?? text('label', t['label'] as string, 32);
|
||||
if (named) return named;
|
||||
const version = t['version'] as string;
|
||||
if (version.length > 64 || !SEMVER.test(version)) return { field: 'version', reason: 'not_semver' };
|
||||
if (!/^#[0-9a-fA-F]{6}$/.test(t['accent'] as string)) return { field: 'accent', reason: 'not_rgb' };
|
||||
if (typeof t['icon'] === 'string') {
|
||||
const bad = relPath(t['icon']);
|
||||
if (bad) return { field: 'icon', reason: bad };
|
||||
const last = t['icon'].split('/').pop()!;
|
||||
const dot = last.lastIndexOf('.');
|
||||
if (dot <= 0 || !['png', 'svg', 'ico'].includes(last.slice(dot + 1).toLowerCase())) return { field: 'icon', reason: 'icon_type' };
|
||||
}
|
||||
if (typeof t['ui_bundle'] === 'string') {
|
||||
const bad = relPath(t['ui_bundle']);
|
||||
if (bad) return { field: 'ui_bundle', reason: bad };
|
||||
} else if (t['hostable'] === true) return { field: 'ui_bundle', reason: 'required' };
|
||||
for (const k of ['fundamentum', 'atrium']) {
|
||||
const req = needs[k] as string;
|
||||
if (req.length > 64 || !SEMVER_REQ.test(req)) return { field: 'needs', reason: 'not_semver_req' };
|
||||
}
|
||||
const seen = new Set<string>();
|
||||
for (const c of caps as readonly string[]) {
|
||||
if (!/^[a-z0-9-]+\.[a-z0-9-]+\.[a-z0-9-]+$/.test(c)) return { field: 'capabilities', reason: 'bad_name' };
|
||||
if (!c.startsWith(`${id}.`)) return { field: 'capabilities', reason: 'foreign_prefix' };
|
||||
if (seen.has(c)) return { field: 'capabilities', reason: 'duplicate' };
|
||||
seen.add(c);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
/**
|
||||
* The `domi-app.toml` Rosea ships for Atrium Domi (atrium-adoption.md; Atrium docs/APP_CONTRACT.md v0). Rosea ships
|
||||
* a file Atrium accepts, ships it next to the `.exe` with the icon it names, and keeps her name, version and
|
||||
* identity in the places they already live. The hostile fixtures prove that the check refuses what Atrium refuses,
|
||||
* and refuses it for Atrium's reason.
|
||||
*/
|
||||
import { readdirSync, readFileSync } from 'node:fs';
|
||||
import { dirname, join } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { PRODUCT_NAME } from '../../../packages/schema/src/constants.js';
|
||||
import { ATRIUM, MANIFEST, domiApp, gameVersion, toToml } from '../scripts/domi-app.js';
|
||||
import { checkManifest } from './domi-app-rules.js';
|
||||
|
||||
const HERE = dirname(fileURLToPath(import.meta.url));
|
||||
const SRC_TAURI = join(HERE, '..', 'src-tauri');
|
||||
const FIXTURES = join(HERE, 'fixtures', 'domi-app');
|
||||
const shipped = toToml(domiApp(gameVersion()));
|
||||
const bytes = (s: string): Uint8Array => new TextEncoder().encode(s);
|
||||
|
||||
describe('domi-app.toml', () => {
|
||||
it('is accepted by the rules of APP_CONTRACT §2', () => {
|
||||
expect(checkManifest(bytes(shipped))).toBeNull();
|
||||
});
|
||||
|
||||
it("names her as the product does, at the game's version, with her Aula id", () => {
|
||||
const m = domiApp(gameVersion());
|
||||
expect(m.name).toBe(PRODUCT_NAME);
|
||||
expect(m.version).toBe(JSON.parse(readFileSync(join(HERE, '..', '..', 'rosea', 'package.json'), 'utf8')).version);
|
||||
expect(m.id).toBe('rosea');
|
||||
expect(shipped).toContain(`name = "${PRODUCT_NAME}"`);
|
||||
});
|
||||
|
||||
it('is not hostable until her own window and origin are kept (R1), and asks for nothing', () => {
|
||||
const m = domiApp('0.1.0');
|
||||
expect(m.hostable).toBe(false);
|
||||
expect(shipped).not.toContain('ui_bundle');
|
||||
expect(shipped).not.toContain('capabilities');
|
||||
});
|
||||
|
||||
it('is shipped next to the .exe on Windows only, with the icon it names', () => {
|
||||
const win = JSON.parse(readFileSync(join(SRC_TAURI, 'tauri.windows.conf.json'), 'utf8')) as {
|
||||
bundle: { resources: Record<string, string> };
|
||||
};
|
||||
expect(win.bundle.resources).toEqual({ [MANIFEST]: 'domi-app.toml', [ATRIUM.icon.from]: ATRIUM.icon.file });
|
||||
expect(domiApp('0.1.0').icon).toBe(ATRIUM.icon.file);
|
||||
// The shared config would put it into the Android and macOS packages too.
|
||||
const shared = JSON.parse(readFileSync(join(SRC_TAURI, 'tauri.conf.json'), 'utf8')) as { bundle: Record<string, unknown> };
|
||||
expect(shared.bundle['resources']).toBeUndefined();
|
||||
});
|
||||
|
||||
it('is made before every desktop build and never committed', () => {
|
||||
const pkg = JSON.parse(readFileSync(join(HERE, '..', 'package.json'), 'utf8')) as { scripts: Record<string, string> };
|
||||
expect(pkg.scripts['build:desktop']).toMatch(/tsx scripts\/domi-app\.ts && tauri build$/);
|
||||
expect(pkg.scripts['dev']).toContain('tsx scripts/domi-app.ts');
|
||||
const ignore = readFileSync(join(HERE, '..', '..', '..', '.gitignore'), 'utf8');
|
||||
expect(ignore).toContain('apps/rosea-tauri/src-tauri/atrium/');
|
||||
});
|
||||
|
||||
it('escapes a quote or a backslash, so no value can add a key', () => {
|
||||
const hostile = toToml({ ...domiApp('0.1.0'), label: 'Rose"\nfree = false\n#\\' });
|
||||
expect(checkManifest(bytes(hostile))).toEqual({ field: 'label', reason: 'control_char' });
|
||||
expect(hostile.split('\n').filter((l) => l.startsWith('free'))).toEqual(['free = true']);
|
||||
});
|
||||
});
|
||||
|
||||
describe('a hostile domi-app.toml is refused, with the reason Atrium Domi logs', () => {
|
||||
const files = readdirSync(FIXTURES).filter((f) => f.endsWith('.toml'));
|
||||
|
||||
it('has one fixture for each rule it claims', () => {
|
||||
expect(files.length).toBeGreaterThanOrEqual(27);
|
||||
});
|
||||
|
||||
for (const file of files) {
|
||||
const [field, reason] = file.replace(/(-\d+)?\.toml$/, '').split('.') as [string, string];
|
||||
it(`${file}: ${field === 'file' ? '' : `${field} `}${reason}`, () => {
|
||||
const refusal = checkManifest(new Uint8Array(readFileSync(join(FIXTURES, file))));
|
||||
expect(refusal).toEqual({ field: field === 'file' ? null : field, reason });
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "rose"
|
||||
icon = "domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
@@ -0,0 +1,10 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
capabilities = ["rosea.rose.read", "rosea.rose.read"]
|
||||
@@ -0,0 +1,10 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
capabilities = ["culina.recipe.read"]
|
||||
@@ -0,0 +1,10 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
id = "rosea"
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "rosea"
|
||||
name = "Rosea ÿ Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,10 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
format = 2
|
||||
@@ -0,0 +1,8 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "domi-icon.png"
|
||||
hostable = false
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "domi-icon.png"
|
||||
hostable = "false"
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "domi-icon.gif"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "/domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "icons\\domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "domi*icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "C:domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "../domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "CON.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "-rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "Rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = " Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = ""
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "rosea"
|
||||
name = "Rosea\u0007Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "rosea"
|
||||
name = "RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = "newest", atrium = ">=0.1" }
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1", lector = ">=1" }
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1.0"
|
||||
accent = "#b4485e"
|
||||
icon = "domi-icon.png"
|
||||
hostable = true
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
@@ -0,0 +1,9 @@
|
||||
id = "rosea"
|
||||
name = "Rosea Domi"
|
||||
label = "Rose"
|
||||
version = "0.1"
|
||||
accent = "#b4485e"
|
||||
icon = "domi-icon.png"
|
||||
hostable = false
|
||||
free = true
|
||||
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
|
||||
@@ -1,5 +1,5 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<html lang="en" data-domi-room="rosea" data-domi-theme="auto">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"name": "@rosea/app",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"license": "CPAL-1.0",
|
||||
"type": "module",
|
||||
"description": "The PWA. Renders what the engine returns; contains no growth, taming or sky logic.",
|
||||
"scripts": {
|
||||
|
||||
@@ -49,6 +49,8 @@ test('the garden opens on the phone; she is watered, and still watered after the
|
||||
await page.getByRole('button', { name: en.rose.numbers }).click();
|
||||
await expect(page.locator('#rose-numbers')).toContainText(`${en.rose.daysOfCare}1`);
|
||||
} finally {
|
||||
// Fabrica stops the app after the run too; the phone is never left with Rosea open (memory rule, 2026-11-17).
|
||||
await device?.shell(`am force-stop ${PKG!}`).catch((e: unknown) => console.warn(`force-stop: ${String(e)}`));
|
||||
await device?.close();
|
||||
}
|
||||
});
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ function watch(page: Page): string[] {
|
||||
|
||||
async function chooseGardenerAndTown(page: Page): Promise<void> {
|
||||
await pastGardener(page);
|
||||
await page.getByRole('searchbox', { name: en.sunset.searchLabel }).fill('prague');
|
||||
await page.getByLabel(en.sunset.searchLabel).fill('prague');
|
||||
await page.getByRole('button', { name: /^Prague/ }).first().click();
|
||||
await storedTown(page, 'Prague');
|
||||
}
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
import { mkdirSync } from 'node:fs';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { expect, test, type Browser, type Page } from '@playwright/test';
|
||||
import { en } from '@rosea/ui/copy';
|
||||
import { openRing, pastGardener } from './garden.js';
|
||||
import { startStaticServer, type StaticServer } from './static-server.js';
|
||||
|
||||
/**
|
||||
* Every screen with a control, photographed from the BUILT PWA in the light and the dark, on a phone and a desktop:
|
||||
* the before-and-after pictures a change of look needs (domi-ui.md; @domi/ui docs/INTEGRATE.md §0). This makes
|
||||
* pictures, not assertions, so it has its own config and `pnpm test:e2e` never runs it.
|
||||
*
|
||||
* ROSEA_LOOK=before pnpm look:shots writes e2e/look/before/<theme>-<device>-<screen>.png (git-ignored)
|
||||
*
|
||||
* Nothing is read from a player: a fresh garden, no town until the search is shown, a fixed day in March.
|
||||
*/
|
||||
const LABEL = process.env['ROSEA_LOOK'] ?? 'now';
|
||||
const OUT = fileURLToPath(new URL(`./look/${LABEL}/`, import.meta.url));
|
||||
const ZONE = 'Europe/Prague';
|
||||
const DAY = Date.parse('2026-03-10T08:00:00+01:00');
|
||||
|
||||
let server: StaticServer;
|
||||
test.beforeAll(async () => {
|
||||
mkdirSync(OUT, { recursive: true });
|
||||
server = await startStaticServer();
|
||||
});
|
||||
test.afterAll(async () => {
|
||||
await server.close();
|
||||
});
|
||||
|
||||
test.describe.configure({ mode: 'serial', timeout: 240_000 });
|
||||
|
||||
async function photograph(browser: Browser, theme: 'light' | 'dark', phone: boolean): Promise<void> {
|
||||
const device = phone ? 'phone' : 'desktop';
|
||||
const context = await browser.newContext({
|
||||
timezoneId: ZONE,
|
||||
locale: 'en-US',
|
||||
colorScheme: theme,
|
||||
reducedMotion: 'reduce',
|
||||
...(phone
|
||||
? { viewport: { width: 360, height: 800 }, deviceScaleFactor: 2, isMobile: true, hasTouch: true }
|
||||
: { viewport: { width: 1280, height: 800 }, deviceScaleFactor: 1 })
|
||||
});
|
||||
const shot = (page: Page, screen: string): Promise<Buffer> =>
|
||||
page.screenshot({ path: `${OUT}${theme}-${device}-${screen}.png`, animations: 'disabled', caret: 'hide' });
|
||||
try {
|
||||
const page = await context.newPage();
|
||||
await page.clock.install({ time: DAY });
|
||||
await page.goto(server.url);
|
||||
await expect(page.getByRole('heading', { level: 2, name: en.gardener.question })).toBeVisible({ timeout: 20_000 });
|
||||
await shot(page, '1-gardener');
|
||||
await pastGardener(page);
|
||||
|
||||
const search = page.getByLabel(en.sunset.searchLabel);
|
||||
await expect(search).toBeVisible();
|
||||
await shot(page, '2-town-empty');
|
||||
await search.fill('prague');
|
||||
await expect(page.getByRole('button', { name: /^Prague/ }).first()).toBeVisible();
|
||||
await shot(page, '3-town-results');
|
||||
await page.getByRole('button', { name: /^Prague/ }).first().click();
|
||||
|
||||
await expect(page.getByRole('button', { name: en.rose.care })).toBeVisible();
|
||||
await shot(page, '4-garden');
|
||||
await openRing(page);
|
||||
await shot(page, '5-ring');
|
||||
await page.keyboard.press('Escape');
|
||||
|
||||
await page.getByRole('button', { name: en.rose.numbers }).click();
|
||||
await page.getByRole('button', { name: en.rose.safe.title }).click();
|
||||
await page.getByRole('button', { name: en.rose.safe.save }).scrollIntoViewIfNeeded();
|
||||
await shot(page, '6-numbers-safe');
|
||||
|
||||
await page.reload();
|
||||
await page.getByRole('button', { name: en.chair.move }).click();
|
||||
const scene = page.getByRole('dialog', { name: en.chair.scene });
|
||||
await expect(scene).toBeVisible();
|
||||
await page.clock.runFor(30_000);
|
||||
await shot(page, '7-sunset');
|
||||
} finally {
|
||||
await context.close();
|
||||
}
|
||||
}
|
||||
|
||||
for (const theme of ['light', 'dark'] as const) {
|
||||
for (const phone of [true, false]) {
|
||||
test(`${theme}, ${phone ? 'phone' : 'desktop'}`, async ({ browser }) => {
|
||||
await photograph(browser, theme, phone);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import { defineConfig, devices } from '@playwright/test';
|
||||
|
||||
/**
|
||||
* The before-and-after pictures of a change of look (`pnpm look:shots`, e2e/look.spec.ts): the BUILT PWA in the
|
||||
* light and the dark, written to e2e/look/<ROSEA_LOOK>/ (git-ignored). Its own config, so `pnpm test:e2e` stays the
|
||||
* suite of record and the pictures are taken only when asked for.
|
||||
*/
|
||||
export default defineConfig({
|
||||
testDir: '.',
|
||||
testMatch: /look\.spec\.ts/,
|
||||
fullyParallel: false,
|
||||
workers: 1,
|
||||
retries: 0,
|
||||
reporter: [['list']],
|
||||
use: {
|
||||
...devices['Desktop Chrome'],
|
||||
trace: 'retain-on-failure'
|
||||
}
|
||||
});
|
||||
+2
-1
@@ -191,7 +191,8 @@ test.describe('the sunset place, in Prague\'s time zone at noon on 29 March 2026
|
||||
await page.clock.setFixedTime(NOON);
|
||||
await open(page);
|
||||
await page.getByRole('searchbox').fill('pra');
|
||||
await expect(page.getByRole('status')).not.toHaveText('');
|
||||
// The question's own status line (every @domi/ui button also carries an empty one, .domi-sr).
|
||||
await expect(page.getByRole('status').and(page.locator('.found'))).not.toHaveText('');
|
||||
expect((await new AxeBuilder({ page }).analyze()).violations.map((v) => `${v.id}: ${v.help}`)).toEqual([]);
|
||||
await page.getByRole('button', { name: /^Prague/ }).first().click();
|
||||
await expect(page.locator('.sun')).toBeVisible();
|
||||
|
||||
+5
-1
@@ -36,7 +36,11 @@ export default [
|
||||
// Other sessions' git worktrees live under .claude/worktrees/: separate checkouts,
|
||||
// linted in their own place, never from here (with Rust build output inside).
|
||||
'.claude/**',
|
||||
'**/target/**'
|
||||
'**/target/**',
|
||||
// Fabrica's records of `fabrica tests run` (git-ignored): its own reporter, not Rosea's code.
|
||||
'.fabrica/runs/**',
|
||||
// @domi/ui, vendored as it was tagged (packages/domi-ui/NOTICE): never edited here, linted upstream.
|
||||
'packages/domi-ui/**'
|
||||
]
|
||||
},
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "rosea",
|
||||
"private": true,
|
||||
"license": "CPAL-1.0",
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"packageManager": "pnpm@9.12.3",
|
||||
@@ -17,6 +18,7 @@
|
||||
"test:offline": "pnpm guard:cpu && turbo run build --filter=@rosea/app && playwright test --config=e2e/playwright.offline.config.ts",
|
||||
"test:android": "tsx scripts/android-smoke.ts",
|
||||
"aula:shots": "pnpm guard:cpu && turbo run build --filter=@rosea/app && playwright test --config=e2e/playwright.aula.config.ts",
|
||||
"look:shots": "pnpm guard:cpu && turbo run build --filter=@rosea/app && playwright test --config=e2e/playwright.look.config.ts",
|
||||
"validate:library": "tsx scripts/validate-library.ts",
|
||||
"library:verify": "tsx scripts/verify-sentences.ts",
|
||||
"lint:copy": "tsx scripts/lint-copy.ts",
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"name": "@rosea/content",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"license": "CPAL-1.0",
|
||||
"type": "module",
|
||||
"description": "The hope library and planets' scripts as data, the library validator, and the one list of forbidden words.",
|
||||
"main": "./src/index.ts",
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
# Changelog
|
||||
|
||||
## 1.5.0 (2026-11-23)
|
||||
|
||||
- `Button bind:element`: the `<button>` itself, for focusing it from outside (return focus after a dialog or a scene
|
||||
change). Asked by Rosea.
|
||||
|
||||
## 1.4.0 (2026-11-23)
|
||||
|
||||
- `DomiCredit link={false}`: the same credit with the URL as plain text, for an offline app (asked by Rosea). The licence
|
||||
asks for the URL to be shown, not to be clickable.
|
||||
- Visual tests: one retry, so an intermittent shot is reported as flaky by name.
|
||||
|
||||
- Fix: `Button` dropped an `onkeydown` or `onblur` passed to it, because its own handlers came after `{...rest}`. It
|
||||
now runs the passed one first, then its own (Escape and blur still disarm a confirm). Found in Rosea, where a held
|
||||
Space pours water and blur stops the pour.
|
||||
|
||||
## 1.3.1 (2026-11-23)
|
||||
|
||||
- **Praeco Domi's brass is now `#ab821e`** (Mark: "Move praeco apart"). A burnished, darker herald's brass: 0.101 from
|
||||
Tabula's gold in OKLab distance (was 0.026), 0.136 from Ostende, at least 0.10 from every app. Text 5.0:1 or more on every dark
|
||||
ground; leaf `#c89e41` → `#b88e2f` → `#ab821e` with a dark label, 5.5:1 or more. Tabula keeps its gold. Atrium's
|
||||
catalogue.rs and Praeco take the new hex. A patch by Mark's request: a colour fix for a palette entry.
|
||||
- Tests: screenshot comparison now uses a per-pixel colour tolerance of 0.02 (Playwright's default 0.2 let the old
|
||||
Praeco brass pass against the new one). Under it, five earlier baselines turned out slightly off and were renewed:
|
||||
the light-theme leaf on hover (the 1.0.1 hover fix) and switch and segmented focus. Contrast numbers were never affected.
|
||||
|
||||
## 1.3.0 (2026-11-23)
|
||||
|
||||
- **Praeco Domi** (`praeco`, label Marketing): brass `#c9a227` (Praeco-plan J1), Scaena's royal red `#9B1B30` as the
|
||||
second light through its text tint `#d6565f`. All 66 of its contrast pairs pass. Its brass sits 0.026 from Tabula's gold in
|
||||
OKLab distance: the two tiles read alike; Mark to decide (PALETTE.md).
|
||||
|
||||
## 1.2.0 (2026-11-23)
|
||||
|
||||
- **The seal without a script**: on a static page (Aula), `.domi-field:has(.domi-field__input:placeholder-shown)` lays
|
||||
the seal flat from CSS alone, for `<input>` and `<textarea>`; give it a placeholder (`" "` if none). The seal stays an
|
||||
enabled button there, so the server treats an empty submit as nothing. Fields with `data-state` (the Svelte component)
|
||||
are skipped, so a cleared field keeps its lit "sent" seal. TextField.md, "Without a script". Asked by Aula.
|
||||
- Docs: testing a field in both modes (TextField.md).
|
||||
|
||||
## 1.1.0 (2026-11-23)
|
||||
|
||||
- **TextField `as="editable" | "auto"`**: the field drawn with a contenteditable `role="textbox"` instead of a native
|
||||
`<input>`/`<textarea>`, because on Android the WebView sends an Autofill request to Google whenever a native text
|
||||
field gets focus (found by Amicitia). Same look, seal, keys and states; plain-text paste; label by
|
||||
`aria-labelledby`; `inputmode` from the type; a hidden input for `name`. `auto` = editable on Android only.
|
||||
Passwords always stay native. New `editor` binding; `input` keeps its type. `isAndroid()` exported.
|
||||
- Docs: the credit goes by repo visibility (Mark): apps whose own repo is public, and public repos carrying a copy,
|
||||
show it; apps built from a private repo show none, paid or free.
|
||||
|
||||
## 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)
|
||||
|
||||
- **Licence: CPAL-1.0** (Common Public Attribution License), Mark's licence for @domi/ui and every public Domi repo.
|
||||
`LICENSE` is the Domi template with only the Original Code named (@domi/ui). Redistribution, and any app built
|
||||
with it, must show the Exhibit B credit: "Built on Domi · https://aula.marek-novak.cz · Copyright (c) 2026 Marek
|
||||
Novák". v1.0.2 stays MPL-2.0 for those who received it. Fonts stay OFL.
|
||||
- `DomiCredit` component and `DOMI_ATTRIBUTION` / `DOMI_ATTRIBUTION_TEXT`: the credit, exactly.
|
||||
- `tools/vendor.mjs`: copies a tag into an app as a workspace package (INTEGRATE.md §6a), for Nix and offline builds;
|
||||
refuses tags before 1.0.3 and writes the credit into the copy (`NOTICE`).
|
||||
|
||||
## 1.0.2 (2026-11-22)
|
||||
|
||||
- Licensed under the Mozilla Public License 2.0 (was unlicensed), so a public Domi app may carry a copy (Mark allowed
|
||||
it for Rosea). `LICENSE` and `CHANGELOG.md` ship with the package; INTEGRATE.md gains "Vendoring". No code or
|
||||
visual change.
|
||||
|
||||
## 1.0.1 (2026-11-22)
|
||||
|
||||
- Fix: the primary leaf's hover gradient lightened every stop by mixing in white, which dropped a white label below
|
||||
4.5:1 on the top stop (Arena Domi 3.94:1; also Atrium Domi, Liber, Calenda and other white-label leaves). The hover
|
||||
stops are now computed per app and theme in the token build (`--domi-leaf-hover-hi|mid|lo-<app>`), keep the
|
||||
1.0.0 mix where the label still reads, and are checked to 4.5:1 like the resting stops. Leaves with a dark label
|
||||
look exactly as before. Reported by the Arena Domi session.
|
||||
|
||||
## 1.0.0 (2026-11-22)
|
||||
|
||||
First release.
|
||||
|
||||
- Audit of every Domi app's styles (docs/AUDIT.md, audit/raw.json).
|
||||
- Palette of 29 apps by role, from their code (Arena Domi: a proposed teal, it has no code yet); shared dark theme (ink) and a new light theme (parchment) with every
|
||||
accent derived to WCAG AA; rooms keep each app's own dark ground. CSS, JSON, WPF XAML; PALETTE.md with contrast.
|
||||
- Foundation tokens: type (Cinzel, Cormorant Garamond, Manrope from npm), space, radius, sizes with a 48 dp touch
|
||||
floor, motion with reduced motion.
|
||||
- Components (Svelte 5 and plain CSS): Button (plate, primary leaf, quiet, danger, armed confirm; loading, success,
|
||||
error; glint, press sink, seal impression; keyboard press), TextField with the integrated send seal (send, search,
|
||||
save, next; single and multi-line; sending, sent, error; Enter and Shift+Enter; soft keyboard rule), Checkbox,
|
||||
Radio, Switch, Select, Segmented, Icon.
|
||||
- Legacy aliases per app (`@domi/ui/legacy/<app>.css`) and MIGRATION.md.
|
||||
- Showcase; unit tests; screenshot tests per component and state (baselines attached to the release).
|
||||
|
||||
Not in 1.0: the desktop window frame (`.win`, `WindowFrame.svelte`), dialogs, menus, non-text inputs (number
|
||||
stepper, date, colour).
|
||||
@@ -0,0 +1,168 @@
|
||||
Common Public Attribution License Version 1.0 (CPAL)
|
||||
|
||||
1. “Definitions”
|
||||
|
||||
1.0.1 “Commercial Use” means distribution or otherwise making the Covered Code available to a third party.
|
||||
|
||||
1.1 “Contributor” means each entity that creates or contributes to the creation of Modifications.
|
||||
|
||||
1.2 “Contributor Version” means the combination of the Original Code, prior Modifications used by a Contributor, and the Modifications made by that particular Contributor.
|
||||
|
||||
1.3 “Covered Code” means the Original Code or Modifications or the combination of the Original Code and Modifications, in each case including portions thereof.
|
||||
|
||||
1.4 “Electronic Distribution Mechanism” means a mechanism generally accepted in the software development community for the electronic transfer of data.
|
||||
|
||||
1.5 “Executable” means Covered Code in any form other than Source Code.
|
||||
|
||||
1.6 “Initial Developer” means the individual or entity identified as the Initial Developer in the Source Code notice required by Exhibit A.
|
||||
|
||||
1.7 “Larger Work” means a work which combines Covered Code or portions thereof with code not governed by the terms of this License.
|
||||
|
||||
1.8 “License” means this document.
|
||||
|
||||
1.8.1 “Licensable” means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently acquired, any and all of the rights conveyed herein.
|
||||
|
||||
1.9 “Modifications” means any addition to or deletion from the substance or structure of either the Original Code or any previous Modifications. When Covered Code is released as a series of files, a Modification is:
|
||||
|
||||
A. Any addition to or deletion from the contents of a file containing Original Code or previous Modifications.
|
||||
|
||||
B. Any new file that contains any part of the Original Code or previous Modifications.
|
||||
|
||||
1.10 “Original Code” means Source Code of computer software code which is described in the Source Code notice required by Exhibit A as Original Code, and which, at the time of its release under this License is not already Covered Code governed by this License.
|
||||
|
||||
1.10.1 “Patent Claims” means any patent claim(s), now owned or hereafter acquired, including without limitation, method, process, and apparatus claims, in any patent Licensable by grantor.
|
||||
|
||||
1.11 “Source Code” means the preferred form of the Covered Code for making modifications to it, including all modules it contains, plus any associated interface definition files, scripts used to control compilation and installation of an Executable, or source code differential comparisons against either the Original Code or another well known, available Covered Code of the Contributor’s choice. The Source Code can be in a compressed or archival form, provided the appropriate decompression or de-archiving software is widely available for no charge.
|
||||
|
||||
1.12 “You” (or “Your”) means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License or a future version of this License issued under Section 6.1. For legal entities, “You” includes any entity which controls, is controlled by, or is under common control with You. For purposes of this definition, “control” means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity.
|
||||
|
||||
2. Source Code License.
|
||||
|
||||
2.1 The Initial Developer Grant.
|
||||
The Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license, subject to third party intellectual property claims:
|
||||
|
||||
(a) under intellectual property rights (other than patent or trademark) Licensable by Initial Developer to use, reproduce, modify, display, perform, sublicense and distribute the Original Code (or portions thereof) with or without Modifications, and/or as part of a Larger Work; and
|
||||
|
||||
(b) under Patents Claims infringed by the making, using or selling of Original Code, to make, have made, use, practice, sell, and offer for sale, and/or otherwise dispose of the Original Code (or portions thereof).
|
||||
|
||||
(c) the licenses granted in this Section 2.1(a) and (b) are effective on the date Initial Developer first distributes Original Code under the terms of this License.
|
||||
|
||||
(d) Notwithstanding Section 2.1(b) above, no patent license is granted: 1) for code that You delete from the Original Code; 2) separate from the Original Code; or 3) for infringements caused by: i) the modification of the Original Code or ii) the combination of the Original Code with other software or devices.
|
||||
|
||||
2.2 Contributor Grant.
|
||||
Subject to third party intellectual property claims, each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license
|
||||
|
||||
(a) under intellectual property rights (other than patent or trademark) Licensable by Contributor, to use, reproduce, modify, display, perform, sublicense and distribute the Modifications created by such Contributor (or portions thereof) either on an unmodified basis, with other Modifications, as Covered Code and/or as part of a Larger Work; and
|
||||
|
||||
(b) under Patent Claims infringed by the making, using, or selling of Modifications made by that Contributor either alone and/or in combination with its Contributor Version (or portions of such combination), to make, use, sell, offer for sale, have made, and/or otherwise dispose of: 1) Modifications made by that Contributor (or portions thereof); and 2) the combination of Modifications made by that Contributor with its Contributor Version (or portions of such combination).
|
||||
|
||||
(c) the licenses granted in Sections 2.2(a) and 2.2(b) are effective on the date Contributor first makes Commercial Use of the Covered Code.
|
||||
|
||||
(d) Notwithstanding Section 2.2(b) above, no patent license is granted: 1) for any code that Contributor has deleted from the Contributor Version; 2) separate from the Contributor Version; 3) for infringements caused by: i) third party modifications of Contributor Version or ii) the combination of Modifications made by that Contributor with other software (except as part of the Contributor Version) or other devices; or 4) under Patent Claims infringed by Covered Code in the absence of Modifications made by that Contributor.
|
||||
|
||||
3. Distribution Obligations.
|
||||
|
||||
3.1 Application of License.
|
||||
The Modifications which You create or to which You contribute are governed by the terms of this License, including without limitation Section 2.2. The Source Code version of Covered Code may be distributed only under the terms of this License or a future version of this License released under Section 6.1, and You must include a copy of this License with every copy of the Source Code You distribute. You may not offer or impose any terms on any Source Code version that alters or restricts the applicable version of this License or the recipients’ rights hereunder. However, You may include an additional document offering the additional rights described in Section 3.5.
|
||||
|
||||
3.2 Availability of Source Code.
|
||||
Any Modification which You create or to which You contribute must be made available in Source Code form under the terms of this License either on the same media as an Executable version or via an accepted Electronic Distribution Mechanism to anyone to whom you made an Executable version available; and if made available via Electronic Distribution Mechanism, must remain available for at least twelve (12) months after the date it initially became available, or at least six (6) months after a subsequent version of that particular Modification has been made available to such recipients. You are responsible for ensuring that the Source Code version remains available even if the Electronic Distribution Mechanism is maintained by a third party.
|
||||
|
||||
3.3 Description of Modifications.
|
||||
You must cause all Covered Code to which You contribute to contain a file documenting the changes You made to create that Covered Code and the date of any change. You must include a prominent statement that the Modification is derived, directly or indirectly, from Original Code provided by the Initial Developer and including the name of the Initial Developer in (a) the Source Code, and (b) in any notice in an Executable version or related documentation in which You describe the origin or ownership of the Covered Code.
|
||||
|
||||
3.4 Intellectual Property Matters
|
||||
|
||||
(a) Third Party Claims. If Contributor has knowledge that a license under a third party’s intellectual property rights is required to exercise the rights granted by such Contributor under Sections 2.1 or 2.2, Contributor must include a text file with the Source Code distribution titled “LEGAL” which describes the claim and the party making the claim in sufficient detail that a recipient will know whom to contact. If Contributor obtains such knowledge after the Modification is made available as described in Section 3.2, Contributor shall promptly modify the LEGAL file in all copies Contributor makes available thereafter and shall take other steps (such as notifying appropriate mailing lists or newsgroups) reasonably calculated to inform those who received the Covered Code that new knowledge has been obtained.
|
||||
|
||||
(b) Contributor APIs. If Contributor’s Modifications include an application programming interface and Contributor has knowledge of patent licenses which are reasonably necessary to implement that API, Contributor must also include this information in the LEGAL file.
|
||||
|
||||
(c) Representations. Contributor represents that, except as disclosed pursuant to Section 3.4(a) above, Contributor believes that Contributor’s Modifications are Contributor’s original creation(s) and/or Contributor has sufficient rights to grant the rights conveyed by this License.
|
||||
|
||||
3.5 Required Notices.
|
||||
You must duplicate the notice in Exhibit A in each file of the Source Code. If it is not possible to put such notice in a particular Source Code file due to its structure, then You must include such notice in a location (such as a relevant directory) where a user would be likely to look for such a notice. If You created one or more Modification(s) You may add your name as a Contributor to the notice described in Exhibit A. You must also duplicate this License in any documentation for the Source Code where You describe recipients’ rights or ownership rights relating to Covered Code. You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Code. However, You may do so only on Your own behalf, and not on behalf of the Initial Developer or any Contributor. You must make it absolutely clear than any such warranty, support, indemnity or liability obligation is offered by You alone, and You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of warranty, support, indemnity or liability terms You offer.
|
||||
|
||||
3.6 Distribution of Executable Versions.
|
||||
You may distribute Covered Code in Executable form only if the requirements of Section 3.1-3.5 have been met for that Covered Code, and if You include a notice stating that the Source Code version of the Covered Code is available under the terms of this License, including a description of how and where You have fulfilled the obligations of Section 3.2. The notice must be conspicuously included in any notice in an Executable version, related documentation or collateral in which You describe recipients’ rights relating to the Covered Code. You may distribute the Executable version of Covered Code or ownership rights under a license of Your choice, which may contain terms different from this License, provided that You are in compliance with the terms of this License and that the license for the Executable version does not attempt to limit or alter the recipient’s rights in the Source Code version from the rights set forth in this License. If You distribute the Executable version under a different license You must make it absolutely clear that any terms which differ from this License are offered by You alone, not by the Initial Developer, Original Developer or any Contributor. You hereby agree to indemnify the Initial Developer, Original Developer and every Contributor for any liability incurred by the Initial Developer, Original Developer or such Contributor as a result of any such terms You offer.
|
||||
|
||||
3.7 Larger Works.
|
||||
You may create a Larger Work by combining Covered Code with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Code.
|
||||
|
||||
4. Inability to Comply Due to Statute or Regulation.
|
||||
If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Code due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be included in the LEGAL file described in Section 3.4 and must be included with all distributions of the Source Code. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it.
|
||||
|
||||
5. Application of this License.
|
||||
This License applies to code to which the Initial Developer has attached the notice in Exhibit A and to related Covered Code.
|
||||
|
||||
6. Versions of the License.
|
||||
|
||||
6.1 New Versions.
|
||||
Socialtext, Inc. (“Socialtext”) may publish revised and/or new versions of the License from time to time. Each version will be given a distinguishing version number.
|
||||
|
||||
6.2 Effect of New Versions.
|
||||
Once Covered Code has been published under a particular version of the License, You may always continue to use it under the terms of that version. You may also choose to use such Covered Code under the terms of any subsequent version of the License published by Socialtext. No one other than Socialtext has the right to modify the terms applicable to Covered Code created under this License.
|
||||
|
||||
6.3 Derivative Works.
|
||||
If You create or use a modified version of this License (which you may only do in order to apply it to code which is not already Covered Code governed by this License), You must (a) rename Your license so that the phrases “Socialtext”, “CPAL” or any confusingly similar phrase do not appear in your license (except to note that your license differs from this License) and (b) otherwise make it clear that Your version of the license contains terms which differ from the CPAL. (Filling in the name of the Initial Developer, Original Developer, Original Code or Contributor in the notice described in Exhibit A shall not of themselves be deemed to be modifications of this License.)
|
||||
|
||||
7. DISCLAIMER OF WARRANTY.
|
||||
COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN “AS IS” BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER, ORIGINAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
|
||||
|
||||
8. TERMINATION.
|
||||
|
||||
8.1 This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. All sublicenses to the Covered Code which are properly granted shall survive any termination of this License. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive.
|
||||
|
||||
8.2 If You initiate litigation by asserting a patent infringement claim (excluding declatory judgment actions) against Initial Developer, Original Developer or a Contributor (the Initial Developer, Original Developer or Contributor against whom You file such action is referred to as “Participant”) alleging that:
|
||||
|
||||
(a) such Participant’s Contributor Version directly or indirectly infringes any patent, then any and all rights granted by such Participant to You under Sections 2.1 and/or 2.2 of this License shall, upon 60 days notice from Participant terminate prospectively, unless if within 60 days after receipt of notice You either: (i) agree in writing to pay Participant a mutually agreeable reasonable royalty for Your past and future use of Modifications made by such Participant, or (ii) withdraw Your litigation claim with respect to the Contributor Version against such Participant. If within 60 days of notice, a reasonable royalty and payment arrangement are not mutually agreed upon in writing by the parties or the litigation claim is not withdrawn, the rights granted by Participant to You under Sections 2.1 and/or 2.2 automatically terminate at the expiration of the 60 day notice period specified above.
|
||||
|
||||
(b) any software, hardware, or device, other than such Participant’s Contributor Version, directly or indirectly infringes any patent, then any rights granted to You by such Participant under Sections 2.1(b) and 2.2(b) are revoked effective as of the date You first made, used, sold, distributed, or had made, Modifications made by that Participant.
|
||||
|
||||
8.3 If You assert a patent infringement claim against Participant alleging that such Participant’s Contributor Version directly or indirectly infringes any patent where such claim is resolved (such as by license or settlement) prior to the initiation of patent infringement litigation, then the reasonable value of the licenses granted by such Participant under Sections 2.1 or 2.2 shall be taken into account in determining the amount or value of any payment or license.
|
||||
|
||||
8.4 In the event of termination under Sections 8.1 or 8.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or any distributor hereunder prior to termination shall survive termination.
|
||||
|
||||
9. LIMITATION OF LIABILITY.
|
||||
UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ORIGINAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH PARTY’S NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
|
||||
|
||||
10. U.S. GOVERNMENT END USERS.
|
||||
The Covered Code is a “commercial item,” as that term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of “commercial computer software” and “commercial computer software documentation,” as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered Code with only those rights set forth herein.
|
||||
|
||||
11. MISCELLANEOUS.
|
||||
This License represents the complete agreement concerning subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. This License shall be governed by California law provisions (except to the extent applicable law, if any, provides otherwise), excluding its conflict-of-law provisions. With respect to disputes in which at least one party is a citizen of, or an entity chartered or registered to do business in the United States of America, any litigation relating to this License shall be subject to the jurisdiction of the Federal Courts of the Northern District of California, with venue lying in Santa Clara County, California, with the losing party responsible for costs, including without limitation, court costs and reasonable attorneys’ fees and expenses. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not apply to this License.
|
||||
|
||||
12. RESPONSIBILITY FOR CLAIMS.
|
||||
As between Initial Developer, Original Developer and the Contributors, each party is responsible for claims and damages arising, directly or indirectly, out of its utilization of rights under this License and You agree to work with Initial Developer, Original Developer and Contributors to distribute such responsibility on an equitable basis. Nothing herein is intended or shall be deemed to constitute any admission of liability.
|
||||
|
||||
13. MULTIPLE-LICENSED CODE.
|
||||
Initial Developer may designate portions of the Covered Code as Multiple-Licensed. Multiple-Licensed means that the Initial Developer permits you to utilize portions of the Covered Code under Your choice of the CPAL or the alternative licenses, if any, specified by the Initial Developer in the file described in Exhibit A.
|
||||
|
||||
14. ADDITIONAL TERM: ATTRIBUTION
|
||||
|
||||
(a) As a modest attribution to the organizer of the development of the Original Code (“Original Developer”), in the hope that its promotional value may help justify the time, money and effort invested in writing the Original Code, the Original Developer may include in Exhibit B (“Attribution Information”) a requirement that each time an Executable and Source Code or a Larger Work is launched or initially run (which includes initiating a session), a prominent display of the Original Developer’s Attribution Information (as defined below) must occur on the graphic user interface employed by the end user to access such Covered Code (which may include display on a splash screen), if any. The size of the graphic image should be consistent with the size of the other elements of the Attribution Information. If the access by the end user to the Executable and Source Code does not create a graphic user interface for access to the Covered Code, this obligation shall not apply. If the Original Code displays such Attribution Information in a particular form (such as in the form of a splash screen, notice at login, an “about” display, or dedicated attribution area on user interface screens), continued use of such form for that Attribution Information is one way of meeting this requirement for notice.
|
||||
|
||||
(b) Attribution information may only include a copyright notice, a brief phrase, graphic image and a URL (“Attribution Information”) and is subject to the Attribution Limits as defined below. For these purposes, prominent shall mean display for sufficient duration to give reasonable notice to the user of the identity of the Original Developer and that if You include Attribution Information or similar information for other parties, You must ensure that the Attribution Information for the Original Developer shall be no less prominent than such Attribution Information or similar information for the other party. For greater certainty, the Original Developer may choose to specify in Exhibit B below that the above attribution requirement only applies to an Executable and Source Code resulting from the Original Code or any Modification, but not a Larger Work. The intent is to provide for reasonably modest attribution, therefore the Original Developer cannot require that You display, at any time, more than the following information as Attribution Information: (a) a copyright notice including the name of the Original Developer; (b) a word or one phrase (not exceeding 10 words); (c) one graphic image provided by the Original Developer; and (d) a URL (collectively, the “Attribution Limits”).
|
||||
|
||||
(c) If Exhibit B does not include any Attribution Information, then there are no requirements for You to display any Attribution Information of the Original Developer.
|
||||
|
||||
(d) You acknowledge that all trademarks, service marks and/or trade names contained within the Attribution Information distributed with the Covered Code are the exclusive property of their owners and may only be used with the permission of their owners, or under circumstances otherwise permitted by law or as expressly set out in this License.
|
||||
|
||||
15. ADDITIONAL TERM: NETWORK USE.
|
||||
The term “External Deployment” means the use, distribution, or communication of the Original Code or Modifications in any way such that the Original Code or Modifications may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Code or Modifications as a distribution under section 3.1 and make Source Code available under Section 3.2.
|
||||
|
||||
EXHIBIT A. Common Public Attribution License Version 1.0.
|
||||
|
||||
"The contents of this file are subject to the Common Public Attribution License Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://opensource.org/license/cpal_1-0. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
||||
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
||||
The Original Code is @domi/ui.
|
||||
The Original Developer is the Initial Developer.
|
||||
The Initial Developer of the Original Code is Marek Novák. All portions of the code written by Marek Novák are Copyright (c) 2026. All Rights Reserved.
|
||||
Contributor: none."
|
||||
|
||||
EXHIBIT B. Attribution Information
|
||||
|
||||
Attribution Copyright Notice: Copyright (c) 2026 Marek Novák
|
||||
Attribution Phrase (not exceeding 10 words): Built on Domi
|
||||
Attribution URL: https://aula.marek-novak.cz
|
||||
Graphic Image as provided in the Covered Code, if any: none.
|
||||
Display of Attribution Information is required in Larger Works which are defined in the CPAL as a work which combines Covered Code or portions thereof with code not governed by the terms of the CPAL.
|
||||
@@ -0,0 +1,11 @@
|
||||
This folder is @domi/ui v1.5.0, 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.
|
||||
|
||||
Attribution Information (Exhibit B). Any app built with this code shows, prominently in its user interface when
|
||||
it starts or a session begins, exactly:
|
||||
|
||||
Built on Domi · https://aula.marek-novak.cz · Copyright (c) 2026 Marek Novák
|
||||
|
||||
<DomiCredit /> renders it. Fonts are not covered: @fontsource-variable/* under the SIL OFL 1.1.
|
||||
Do not edit these files here: change domi-design and vendor the next tag. A change made here must be described
|
||||
in a file in this folder (CPAL §3.3).
|
||||
@@ -0,0 +1 @@
|
||||
v1.5.0
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"name": "@domi/ui",
|
||||
"version": "1.5.0",
|
||||
"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.5.0: do not edit here; change domi-design and vendor the next tag.",
|
||||
"license": "CPAL-1.0",
|
||||
"type": "module",
|
||||
"svelte": "./src/index.ts",
|
||||
"types": "./src/index.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./src/index.ts",
|
||||
"svelte": "./src/index.ts",
|
||||
"default": "./src/index.ts"
|
||||
},
|
||||
"./tokens": {
|
||||
"types": "./src/tokens/generated.ts",
|
||||
"default": "./src/tokens/generated.ts"
|
||||
},
|
||||
"./domi.css": "./src/css/domi.css",
|
||||
"./tokens.css": "./src/css/tokens.css",
|
||||
"./base.css": "./src/css/base.css",
|
||||
"./components.css": "./src/css/components.css",
|
||||
"./fonts.css": "./src/css/fonts.css",
|
||||
"./legacy/*": "./src/css/legacy/*"
|
||||
},
|
||||
"sideEffects": [
|
||||
"**/*.css"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"svelte": "^5.20.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fontsource-variable/cinzel": "5.3.0",
|
||||
"@fontsource-variable/cormorant-garamond": "5.3.0",
|
||||
"@fontsource-variable/manrope": "5.3.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
<script lang="ts">
|
||||
import type { Snippet } from 'svelte';
|
||||
import type { HTMLButtonAttributes } from 'svelte/elements';
|
||||
import Icon from './Icon.svelte';
|
||||
import Strike from './Strike.svelte';
|
||||
import { strike } from '../lib/strike';
|
||||
import { failureText, type ButtonState } from '../lib/keys';
|
||||
import type { IconName } from '../lib/icons';
|
||||
|
||||
interface Props extends Omit<HTMLButtonAttributes, 'onclick' | 'class' | 'children'> {
|
||||
/** plate: every ordinary action. primary: the one leaf per screen. quiet: toolbars and third actions. danger: deletes. */
|
||||
variant?: 'plate' | 'primary' | 'quiet' | 'danger';
|
||||
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
||||
icon?: IconName;
|
||||
/** Icon only: the label becomes the accessible name and the tooltip. */
|
||||
iconOnly?: boolean;
|
||||
/** The words on the button. Required for iconOnly (it is the accessible name), else use children. */
|
||||
label?: string;
|
||||
block?: boolean;
|
||||
/** Set to drive the state yourself. Left unset, a Promise returned by onclick drives it. */
|
||||
status?: ButtonState;
|
||||
/** May return a Promise: the button shows loading, then success (briefly) or error. */
|
||||
onclick?: (event: MouseEvent) => unknown;
|
||||
/**
|
||||
* Two-step confirmation for danger: the first press arms the button and shows this text ("Press again to
|
||||
* delete"); a second press within confirmFor ms runs onclick. Escape, blur or the timeout disarms it.
|
||||
*/
|
||||
confirm?: string;
|
||||
confirmFor?: number;
|
||||
/** Announced while working, when done, and when it failed (unless the error is a DomiError with its own text). */
|
||||
busyText?: string;
|
||||
doneText?: string;
|
||||
failText?: string;
|
||||
/** Showcase and tests only: show hover, press or focus without the pointer. */
|
||||
force?: string;
|
||||
class?: string;
|
||||
children?: Snippet;
|
||||
/** The <button> element, for focusing it from outside (bind:element), e.g. to return focus after a dialog. */
|
||||
element?: HTMLButtonElement | null;
|
||||
}
|
||||
|
||||
let {
|
||||
variant = 'plate',
|
||||
size = 'md',
|
||||
icon,
|
||||
iconOnly = false,
|
||||
label,
|
||||
block = false,
|
||||
status,
|
||||
onclick,
|
||||
confirm,
|
||||
confirmFor = 4000,
|
||||
busyText = 'Working',
|
||||
doneText = 'Done',
|
||||
failText = 'That did not work. Try again.',
|
||||
force,
|
||||
class: cls = '',
|
||||
disabled = false,
|
||||
type = 'button',
|
||||
children,
|
||||
// Taken out of rest, so the button can run them before its own (a spread before the attribute would lose them).
|
||||
onkeydown: passedKeydown,
|
||||
onblur: passedBlur,
|
||||
element = $bindable(null),
|
||||
...rest
|
||||
}: Props = $props();
|
||||
|
||||
let auto = $state<ButtonState>('idle');
|
||||
let armed = $state(false);
|
||||
let said = $state('');
|
||||
let timer: ReturnType<typeof setTimeout> | undefined;
|
||||
let armTimer: ReturnType<typeof setTimeout> | undefined;
|
||||
const shown = $derived<ButtonState>(status ?? auto);
|
||||
const busy = $derived(shown === 'loading');
|
||||
|
||||
function hold(): number {
|
||||
const v = getComputedStyle(document.documentElement).getPropertyValue('--domi-dur-hold');
|
||||
return Math.max(900, parseFloat(v) || 1400);
|
||||
}
|
||||
|
||||
function disarm() {
|
||||
armed = false;
|
||||
clearTimeout(armTimer);
|
||||
}
|
||||
|
||||
async function press(event: MouseEvent) {
|
||||
if (disabled || busy) {
|
||||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
if (confirm && !armed) {
|
||||
armed = true;
|
||||
said = confirm;
|
||||
clearTimeout(armTimer);
|
||||
armTimer = setTimeout(disarm, confirmFor);
|
||||
return;
|
||||
}
|
||||
disarm();
|
||||
const result = onclick?.(event);
|
||||
const thenable = result != null && typeof (result as PromiseLike<unknown>).then === 'function';
|
||||
if (!thenable || status !== undefined) return;
|
||||
clearTimeout(timer);
|
||||
auto = 'loading';
|
||||
said = busyText;
|
||||
try {
|
||||
await result;
|
||||
auto = 'success';
|
||||
said = doneText;
|
||||
timer = setTimeout(() => (auto = 'idle'), hold());
|
||||
} catch (err) {
|
||||
auto = 'error';
|
||||
said = failureText(err, failText);
|
||||
}
|
||||
}
|
||||
|
||||
$effect(() => () => {
|
||||
clearTimeout(timer);
|
||||
clearTimeout(armTimer);
|
||||
});
|
||||
</script>
|
||||
|
||||
<button
|
||||
bind:this={element}
|
||||
{...rest}
|
||||
{type}
|
||||
{disabled}
|
||||
class={[
|
||||
'domi-btn',
|
||||
variant !== 'plate' && `domi-btn--${variant}`,
|
||||
size !== 'md' && `domi-btn--${size}`,
|
||||
iconOnly && 'domi-btn--icon',
|
||||
block && 'domi-btn--block',
|
||||
cls,
|
||||
]}
|
||||
data-state={shown === 'idle' ? undefined : shown}
|
||||
data-armed={armed ? '' : undefined}
|
||||
data-force={force}
|
||||
aria-busy={busy ? 'true' : undefined}
|
||||
aria-disabled={busy ? 'true' : undefined}
|
||||
aria-label={iconOnly ? (armed ? confirm : label) : undefined}
|
||||
title={iconOnly ? (armed ? confirm : label) : undefined}
|
||||
onclick={press}
|
||||
onkeydown={(e) => {
|
||||
passedKeydown?.(e);
|
||||
if (e.key === 'Escape' && armed) disarm();
|
||||
}}
|
||||
onblur={(e) => {
|
||||
passedBlur?.(e);
|
||||
disarm();
|
||||
}}
|
||||
use:strike
|
||||
>
|
||||
<span class="domi-btn__label">
|
||||
{#if shown === 'error'}<Icon name="alert" />{:else if icon}<Icon name={icon} />{/if}
|
||||
{#if !iconOnly}
|
||||
{#if armed}{confirm}{:else if children}{@render children()}{:else}{label}{/if}
|
||||
{/if}
|
||||
</span>
|
||||
<span class="domi-btn__state domi-btn__state--loading"><Strike /></span>
|
||||
<span class="domi-btn__state domi-btn__state--success">
|
||||
{#if shown === 'success'}<Icon name="check" draw />{/if}
|
||||
</span>
|
||||
</button>
|
||||
<span class="domi-sr" role="status">{said}</span>
|
||||
@@ -0,0 +1,59 @@
|
||||
<script lang="ts">
|
||||
import type { Snippet } from 'svelte';
|
||||
import { icons } from '../lib/icons';
|
||||
|
||||
interface Props {
|
||||
checked?: boolean;
|
||||
/** Part of a group is chosen: shows a bar and reads as "mixed". */
|
||||
indeterminate?: boolean;
|
||||
label?: string;
|
||||
hint?: string;
|
||||
name?: string;
|
||||
value?: string;
|
||||
disabled?: boolean;
|
||||
required?: boolean;
|
||||
onchange?: (checked: boolean) => void;
|
||||
force?: string;
|
||||
class?: string;
|
||||
children?: Snippet;
|
||||
}
|
||||
let {
|
||||
checked = $bindable(false),
|
||||
indeterminate = $bindable(false),
|
||||
label,
|
||||
hint,
|
||||
name,
|
||||
value,
|
||||
disabled = false,
|
||||
required = false,
|
||||
onchange,
|
||||
force,
|
||||
class: cls = '',
|
||||
children,
|
||||
}: Props = $props();
|
||||
const uid = $props.id();
|
||||
</script>
|
||||
|
||||
<label class={['domi-choice', cls]} data-force={force}>
|
||||
<span class="domi-choice__control">
|
||||
<input
|
||||
class="domi-choice__input"
|
||||
type="checkbox"
|
||||
bind:checked
|
||||
bind:indeterminate
|
||||
{name}
|
||||
{value}
|
||||
{disabled}
|
||||
{required}
|
||||
aria-describedby={hint ? `domi-hint-${uid}` : undefined}
|
||||
onchange={() => onchange?.(checked)}
|
||||
/>
|
||||
<svg class="domi-choice__mark" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
||||
<path d={indeterminate ? icons.minus : icons.check} />
|
||||
</svg>
|
||||
</span>
|
||||
<span class="domi-choice__text">
|
||||
<span>{#if children}{@render children()}{:else}{label}{/if}</span>
|
||||
{#if hint}<span class="domi-choice__hint" id={`domi-hint-${uid}`}>{hint}</span>{/if}
|
||||
</span>
|
||||
</label>
|
||||
@@ -0,0 +1,26 @@
|
||||
<!-- SPDX-License-Identifier: CPAL-1.0 -->
|
||||
<!--
|
||||
The licence credit (CPAL-1.0 Exhibit B): "Built on Domi", the URL and the copyright notice, exactly. Place it where
|
||||
it is seen when the app starts or a session begins (the first screen's foot, the sign-in screen, a splash), no less
|
||||
prominent than any other credit there. The words are fixed by the licence: do not translate or shorten them.
|
||||
-->
|
||||
<script lang="ts">
|
||||
import { DOMI_ATTRIBUTION as A } from '../lib/credit';
|
||||
|
||||
interface Props {
|
||||
/**
|
||||
* true (default): the URL is a link. false: the URL is plain text, for an offline app (Rosea's game, an app with
|
||||
* no network): the licence asks for the URL to be shown, not to be clickable.
|
||||
*/
|
||||
link?: boolean;
|
||||
class?: string;
|
||||
}
|
||||
let { link = true, class: cls = '' }: Props = $props();
|
||||
</script>
|
||||
|
||||
<p class={['domi-credit', cls]}>
|
||||
<!-- Real spaces around the dots, so copied text reads as the licence writes it; flex ignores them in layout. -->
|
||||
<span>{A.phrase}</span> <span class="domi-credit__dot" aria-hidden="true">·</span>
|
||||
{#if link}<a href={A.url} target="_blank" rel="noopener noreferrer">{A.url}</a>{:else}<span class="domi-credit__url">{A.url}</span>{/if}
|
||||
<span class="domi-credit__dot" aria-hidden="true">·</span> <span>{A.copyright}</span>
|
||||
</p>
|
||||
@@ -0,0 +1,22 @@
|
||||
<script lang="ts">
|
||||
import { icons, type IconName } from '../lib/icons';
|
||||
|
||||
interface Props {
|
||||
name: IconName;
|
||||
/** Draws the path in one stroke when it appears (the check of a finished action). */
|
||||
draw?: boolean;
|
||||
class?: string;
|
||||
}
|
||||
let { name, draw = false, class: cls = '' }: Props = $props();
|
||||
</script>
|
||||
|
||||
<svg
|
||||
class={['domi-icon', draw && 'domi-check-draw', cls]}
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="1.8"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
aria-hidden="true"
|
||||
focusable="false"><path d={icons[name]} /></svg>
|
||||
@@ -0,0 +1,39 @@
|
||||
<script lang="ts">
|
||||
import type { Snippet } from 'svelte';
|
||||
|
||||
interface Props {
|
||||
/** The group's chosen value. Bind the same variable on every radio of the group: bind:group. */
|
||||
group?: string;
|
||||
value: string;
|
||||
name: string;
|
||||
label?: string;
|
||||
hint?: string;
|
||||
disabled?: boolean;
|
||||
onchange?: (value: string) => void;
|
||||
force?: string;
|
||||
class?: string;
|
||||
children?: Snippet;
|
||||
}
|
||||
let { group = $bindable(''), value, name, label, hint, disabled = false, onchange, force, class: cls = '', children }: Props = $props();
|
||||
const uid = $props.id();
|
||||
</script>
|
||||
|
||||
<label class={['domi-choice', 'domi-choice--radio', cls]} data-force={force}>
|
||||
<span class="domi-choice__control">
|
||||
<input
|
||||
class="domi-choice__input"
|
||||
type="radio"
|
||||
bind:group
|
||||
{value}
|
||||
{name}
|
||||
{disabled}
|
||||
aria-describedby={hint ? `domi-hint-${uid}` : undefined}
|
||||
onchange={() => onchange?.(value)}
|
||||
/>
|
||||
<span class="domi-choice__mark" aria-hidden="true"></span>
|
||||
</span>
|
||||
<span class="domi-choice__text">
|
||||
<span>{#if children}{@render children()}{:else}{label}{/if}</span>
|
||||
{#if hint}<span class="domi-choice__hint" id={`domi-hint-${uid}`}>{hint}</span>{/if}
|
||||
</span>
|
||||
</label>
|
||||
@@ -0,0 +1,62 @@
|
||||
<script lang="ts">
|
||||
import Icon from './Icon.svelte';
|
||||
import { strike } from '../lib/strike';
|
||||
import type { DomiOption } from '../types';
|
||||
|
||||
interface Props {
|
||||
value?: string;
|
||||
/** Names the group for a screen reader: "View". */
|
||||
label: string;
|
||||
options: DomiOption[];
|
||||
disabled?: boolean;
|
||||
onchange?: (value: string) => void;
|
||||
/** Showcase only: value → forced state for that segment. */
|
||||
force?: Record<string, string>;
|
||||
class?: string;
|
||||
}
|
||||
let { value = $bindable(''), label, options, disabled = false, onchange, force = {}, class: cls = '' }: Props = $props();
|
||||
let group: HTMLDivElement | undefined = $state();
|
||||
|
||||
const enabled = $derived(options.filter((o) => !o.disabled && !disabled));
|
||||
|
||||
function choose(v: string) {
|
||||
if (v === value) return;
|
||||
value = v;
|
||||
onchange?.(v);
|
||||
}
|
||||
|
||||
// A radio group: one tab stop; arrows move the choice and the focus, Home and End jump.
|
||||
function keydown(e: KeyboardEvent) {
|
||||
const i = enabled.findIndex((o) => o.value === value);
|
||||
let j = i;
|
||||
if (e.key === 'ArrowRight' || e.key === 'ArrowDown') j = (i + 1) % enabled.length;
|
||||
else if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') j = (i - 1 + enabled.length) % enabled.length;
|
||||
else if (e.key === 'Home') j = 0;
|
||||
else if (e.key === 'End') j = enabled.length - 1;
|
||||
else return;
|
||||
e.preventDefault();
|
||||
const next = enabled[j];
|
||||
if (!next) return;
|
||||
choose(next.value);
|
||||
group?.querySelector<HTMLButtonElement>(`[data-value="${CSS.escape(next.value)}"]`)?.focus();
|
||||
}
|
||||
</script>
|
||||
|
||||
<div bind:this={group} class={['domi-segmented', cls]} role="radiogroup" aria-label={label} tabindex="-1" onkeydown={keydown}>
|
||||
{#each options as o (o.value)}
|
||||
<button
|
||||
type="button"
|
||||
role="radio"
|
||||
class="domi-segmented__item"
|
||||
data-value={o.value}
|
||||
data-force={force[o.value]}
|
||||
aria-checked={o.value === value}
|
||||
tabindex={o.value === value || (!value && o === enabled[0]) ? 0 : -1}
|
||||
disabled={disabled || o.disabled}
|
||||
onclick={() => choose(o.value)}
|
||||
use:strike
|
||||
>
|
||||
{#if o.icon}<Icon name={o.icon} />{/if}{o.label}
|
||||
</button>
|
||||
{/each}
|
||||
</div>
|
||||
@@ -0,0 +1,44 @@
|
||||
<script lang="ts">
|
||||
import Icon from './Icon.svelte';
|
||||
import type { DomiOption } from '../types';
|
||||
|
||||
interface Props {
|
||||
/** Left unset, the first option is chosen. */
|
||||
value?: string;
|
||||
label: string;
|
||||
hideLabel?: boolean;
|
||||
options: DomiOption[];
|
||||
hint?: string;
|
||||
name?: string;
|
||||
disabled?: boolean;
|
||||
required?: boolean;
|
||||
onchange?: (value: string) => void;
|
||||
force?: string;
|
||||
class?: string;
|
||||
}
|
||||
let { value = $bindable(), label, hideLabel = false, options, hint, name, disabled = false, required = false, onchange, force, class: cls = '' }: Props = $props();
|
||||
const uid = $props.id();
|
||||
</script>
|
||||
|
||||
<!-- A native select: on Android and iOS it opens the system picker, which is the right control for a thumb. -->
|
||||
<div class={['domi-field', cls]}>
|
||||
<label class={['domi-field__label', hideLabel && 'domi-sr']} for={`domi-select-${uid}`}>{label}</label>
|
||||
<div class="domi-select" data-force={force}>
|
||||
<select
|
||||
class="domi-select__input"
|
||||
id={`domi-select-${uid}`}
|
||||
bind:value
|
||||
{name}
|
||||
{disabled}
|
||||
{required}
|
||||
aria-describedby={hint ? `domi-hint-${uid}` : undefined}
|
||||
onchange={() => onchange?.(value ?? '')}
|
||||
>
|
||||
{#each options as o (o.value)}
|
||||
<option value={o.value} disabled={o.disabled}>{o.label}</option>
|
||||
{/each}
|
||||
</select>
|
||||
<Icon name="chevron-down" />
|
||||
</div>
|
||||
{#if hint}<p class="domi-field__hint" id={`domi-hint-${uid}`}>{hint}</p>{/if}
|
||||
</div>
|
||||
@@ -0,0 +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. -->
|
||||
<span class="domi-strike" aria-hidden="true"><i></i><i></i><i></i></span>
|
||||
@@ -0,0 +1,23 @@
|
||||
<script lang="ts">
|
||||
interface Props {
|
||||
checked?: boolean;
|
||||
/** Says what is on: "Sync over mobile data". The switch reads as on or off after it. */
|
||||
label: string;
|
||||
disabled?: boolean;
|
||||
onchange?: (checked: boolean) => void;
|
||||
force?: string;
|
||||
class?: string;
|
||||
}
|
||||
let { checked = $bindable(false), label, disabled = false, onchange, force, class: cls = '' }: Props = $props();
|
||||
|
||||
function toggle() {
|
||||
if (disabled) return;
|
||||
checked = !checked;
|
||||
onchange?.(checked);
|
||||
}
|
||||
</script>
|
||||
|
||||
<button type="button" role="switch" class={['domi-switch', cls]} aria-checked={checked} {disabled} data-force={force} onclick={toggle}>
|
||||
<span class="domi-switch__track" aria-hidden="true"><span class="domi-switch__knob"></span></span>
|
||||
<span>{label}</span>
|
||||
</button>
|
||||
@@ -0,0 +1,429 @@
|
||||
<script lang="ts">
|
||||
import type { HTMLInputAttributes } from 'svelte/elements';
|
||||
import Icon from './Icon.svelte';
|
||||
import Strike from './Strike.svelte';
|
||||
import { strike } from '../lib/strike';
|
||||
import { canSend, enterAction, failureText, isSoftKeyboard, type FieldState } from '../lib/keys';
|
||||
import type { IconName } from '../lib/icons';
|
||||
import { caretToEnd, inputmodeFor, insertPlainText, isAndroid, readText, writeText } from '../lib/editable';
|
||||
|
||||
type Action = 'send' | 'search' | 'next' | 'save';
|
||||
|
||||
interface Props {
|
||||
/** The text. Bind it: bind:value. */
|
||||
value?: string;
|
||||
/** The visible label. Every field has one; hideLabel keeps it for screen readers only (a chat composer). */
|
||||
label: string;
|
||||
hideLabel?: boolean;
|
||||
hint?: string;
|
||||
/** An error you show (validation). The field also shows its own when onsend fails. */
|
||||
error?: string;
|
||||
placeholder?: string;
|
||||
type?: 'text' | 'email' | 'url' | 'password' | 'search' | 'tel' | 'number';
|
||||
/** A multi-line field that grows with its text up to `rows` lines. */
|
||||
multiline?: boolean;
|
||||
rows?: number;
|
||||
/**
|
||||
* What the seal does. send (arrow): sends and clears. search (glass): searches. save (check): saves and keeps
|
||||
* the text. next (chevron): in a form, goes to the next field; the last field of a form uses send or save.
|
||||
*/
|
||||
action?: Action;
|
||||
/** The seal's accessible name, the words a screen reader says: "Send message", "Search books". */
|
||||
actionLabel?: string;
|
||||
/** Runs on Enter or the seal. Return a Promise to show sending, then sent or the error. */
|
||||
onsend?: (value: string) => unknown;
|
||||
/** Empty the field after a successful send. Default: true for send, false otherwise. */
|
||||
clearOnSend?: boolean;
|
||||
enterSends?: 'auto' | 'always' | 'never';
|
||||
/** Set to drive the state yourself. */
|
||||
status?: FieldState;
|
||||
sendingText?: string;
|
||||
sentText?: string;
|
||||
failText?: string;
|
||||
size?: 'md' | 'lg';
|
||||
optional?: boolean;
|
||||
disabled?: boolean;
|
||||
readonly?: boolean;
|
||||
required?: boolean;
|
||||
name?: string;
|
||||
id?: string;
|
||||
autocomplete?: HTMLInputAttributes['autocomplete'];
|
||||
inputmode?: HTMLInputAttributes['inputmode'];
|
||||
maxlength?: number;
|
||||
spellcheck?: boolean;
|
||||
autofocus?: boolean;
|
||||
/** Showcase and tests only: 'hover', 'focus' on the field, 'press'/'hover'/'focus' on the seal via sendForce. */
|
||||
force?: string;
|
||||
sendForce?: string;
|
||||
class?: string;
|
||||
/** The input element, for focusing it from outside (null in editable mode: see editor). */
|
||||
input?: HTMLInputElement | HTMLTextAreaElement | null;
|
||||
/**
|
||||
* input (default): a native <input>/<textarea>. editable: a contenteditable box with role="textbox": on Android
|
||||
* the WebView sends an Autofill request to Google whenever a native text field gets focus; an editable box does
|
||||
* not. auto: editable on Android, native elsewhere. Passwords are always native (masking, password managers).
|
||||
*/
|
||||
as?: 'input' | 'editable' | 'auto';
|
||||
/** The editable box in editable mode, for focusing it from outside. */
|
||||
editor?: HTMLElement | null;
|
||||
}
|
||||
|
||||
let {
|
||||
value = $bindable(''),
|
||||
label,
|
||||
hideLabel = false,
|
||||
hint,
|
||||
error,
|
||||
placeholder,
|
||||
type = 'text',
|
||||
multiline = false,
|
||||
rows = 6,
|
||||
action = 'send',
|
||||
actionLabel,
|
||||
onsend,
|
||||
clearOnSend,
|
||||
enterSends = 'auto',
|
||||
status,
|
||||
sendingText,
|
||||
sentText,
|
||||
failText,
|
||||
size = 'md',
|
||||
optional = false,
|
||||
disabled = false,
|
||||
readonly = false,
|
||||
required = false,
|
||||
name,
|
||||
id,
|
||||
autocomplete,
|
||||
inputmode,
|
||||
maxlength,
|
||||
spellcheck,
|
||||
autofocus = false,
|
||||
force,
|
||||
sendForce,
|
||||
class: cls = '',
|
||||
input = $bindable(null),
|
||||
as = 'input',
|
||||
editor = $bindable(null),
|
||||
}: Props = $props();
|
||||
|
||||
const uid = $props.id();
|
||||
const fieldId = $derived(id ?? `domi-field-${uid}`);
|
||||
const hintId = `domi-hint-${uid}`;
|
||||
const errorId = `domi-error-${uid}`;
|
||||
const labelId = `domi-label-${uid}`;
|
||||
const android = isAndroid();
|
||||
|
||||
const words: Record<Action, { label: string; icon: IconName; key: 'send' | 'search' | 'next' | 'done'; busy: string; done: string; fail: string }> = {
|
||||
send: { label: 'Send', icon: 'send', key: 'send', busy: 'Sending', done: 'Sent', fail: 'Could not send. Try again.' },
|
||||
search: { label: 'Search', icon: 'search', key: 'search', busy: 'Searching', done: 'Searched', fail: 'Could not search. Try again.' },
|
||||
save: { label: 'Save', icon: 'save', key: 'done', busy: 'Saving', done: 'Saved', fail: 'Could not save. Try again.' },
|
||||
next: { label: 'Next field', icon: 'next', key: 'next', busy: 'Checking', done: '', fail: 'Check this field.' },
|
||||
};
|
||||
const w = $derived(words[action]);
|
||||
|
||||
let auto = $state<FieldState>('idle');
|
||||
let failure = $state('');
|
||||
let said = $state('');
|
||||
let revealed = $state(false);
|
||||
let timer: ReturnType<typeof setTimeout> | undefined;
|
||||
|
||||
const shown = $derived<FieldState>(status ?? auto);
|
||||
const empty = $derived(value.trim().length === 0);
|
||||
const sendable = $derived(canSend(value, shown, disabled || readonly));
|
||||
// While sending and just after, the seal stays lit (with the interpuncts, then the check) though it cannot be pressed.
|
||||
const lit = $derived(sendable || shown === 'sending' || shown === 'sent');
|
||||
const message = $derived(error ?? (shown === 'error' ? failure : ''));
|
||||
const described = $derived([hint && hintId, message && errorId].filter(Boolean).join(' ') || undefined);
|
||||
const inputType = $derived(type === 'password' && revealed ? 'text' : type);
|
||||
const clears = $derived(clearOnSend ?? action === 'send');
|
||||
const editable = $derived(type !== 'password' && (as === 'editable' || (as === 'auto' && android)));
|
||||
/** The element that takes the text, whichever kind it is. */
|
||||
const box = $derived<HTMLElement | null>(editable ? editor : input);
|
||||
const locked = $derived(disabled || readonly || shown === 'sending');
|
||||
|
||||
function hold(): number {
|
||||
const v = getComputedStyle(document.documentElement).getPropertyValue('--domi-dur-hold');
|
||||
return Math.max(900, parseFloat(v) || 1400);
|
||||
}
|
||||
|
||||
function nextField(from: HTMLElement) {
|
||||
const scope = from.closest('form') ?? document;
|
||||
const all = [...scope.querySelectorAll<HTMLElement>('.domi-field__input, input, textarea, select')].filter(
|
||||
(el) => !el.hasAttribute('disabled') && el.getAttribute('aria-disabled') !== 'true' && el.getAttribute('type') !== 'hidden',
|
||||
);
|
||||
const i = all.indexOf(from);
|
||||
all[i + 1]?.focus();
|
||||
}
|
||||
|
||||
async function submit() {
|
||||
if (!sendable || !box) return;
|
||||
const el = box;
|
||||
const text = value;
|
||||
clearTimeout(timer);
|
||||
failure = '';
|
||||
if (!onsend) {
|
||||
// No handler: behave like the form's own submit (or, for next, move on).
|
||||
if (action === 'next') nextField(el);
|
||||
else el.closest('form')?.requestSubmit();
|
||||
return;
|
||||
}
|
||||
const result = onsend(text);
|
||||
const thenable = result != null && typeof (result as PromiseLike<unknown>).then === 'function';
|
||||
if (status !== undefined) return;
|
||||
if (!thenable) return done(el);
|
||||
auto = 'sending';
|
||||
said = sendingText ?? w.busy;
|
||||
try {
|
||||
await result;
|
||||
done(el);
|
||||
} catch (err) {
|
||||
auto = 'error';
|
||||
failure = failureText(err, failText ?? w.fail);
|
||||
said = failure;
|
||||
el.focus();
|
||||
}
|
||||
}
|
||||
|
||||
function done(el: HTMLElement) {
|
||||
if (clears) value = '';
|
||||
if (action === 'next') {
|
||||
auto = 'idle';
|
||||
nextField(el);
|
||||
return;
|
||||
}
|
||||
auto = 'sent';
|
||||
said = sentText ?? w.done;
|
||||
timer = setTimeout(() => (auto = 'idle'), hold());
|
||||
if (document.activeElement !== el && el.isConnected) el.focus();
|
||||
}
|
||||
|
||||
function keydown(e: KeyboardEvent) {
|
||||
if (e.key === 'Escape' && shown === 'error' && status === undefined) {
|
||||
auto = 'idle';
|
||||
failure = '';
|
||||
return;
|
||||
}
|
||||
const r = enterAction(e, { multiline, enterSends, softKeyboard: isSoftKeyboard() });
|
||||
if (r === 'send') {
|
||||
e.preventDefault();
|
||||
if (shown !== 'sending') void submit();
|
||||
} else if (r === 'ignore' && e.key === 'Enter' && e.altKey && !multiline) {
|
||||
// Alt+Enter must not submit the form. An Enter that ends an input method's composition is left alone.
|
||||
e.preventDefault();
|
||||
} else if (editable && !multiline && e.key === 'Enter' && !e.isComposing && e.keyCode !== 229) {
|
||||
// A single-line editable box never takes a line break.
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
|
||||
function typed() {
|
||||
if (shown === 'error' && status === undefined) {
|
||||
auto = 'idle';
|
||||
failure = '';
|
||||
}
|
||||
if (shown === 'sent' && status === undefined) auto = 'idle';
|
||||
grow();
|
||||
}
|
||||
|
||||
// Editable mode: the box's text is the value. Typing, paste and drop bring plain text only.
|
||||
function edited() {
|
||||
if (!editor) return;
|
||||
let t = readText(editor);
|
||||
let rewrite = false;
|
||||
if (!multiline && /\n/.test(t)) {
|
||||
t = t.replace(/\r?\n/g, ' ');
|
||||
rewrite = true;
|
||||
}
|
||||
if (maxlength !== undefined && t.length > maxlength) {
|
||||
t = t.slice(0, maxlength);
|
||||
rewrite = true;
|
||||
}
|
||||
if (t === '' && editor.childNodes.length > 0) rewrite = true; // a stray <br> would hide the placeholder
|
||||
if (rewrite) {
|
||||
writeText(editor, t);
|
||||
if (t) caretToEnd(editor);
|
||||
}
|
||||
value = t;
|
||||
typed();
|
||||
}
|
||||
function pasted(e: ClipboardEvent) {
|
||||
if (!editor) return;
|
||||
e.preventDefault();
|
||||
if (locked) return;
|
||||
let t = e.clipboardData?.getData('text/plain') ?? '';
|
||||
if (!multiline) t = t.replace(/\r?\n/g, ' ');
|
||||
insertPlainText(editor, t);
|
||||
edited();
|
||||
}
|
||||
function dropped(e: DragEvent) {
|
||||
if (!editor) return;
|
||||
e.preventDefault();
|
||||
const t = e.dataTransfer?.getData('text/plain') ?? '';
|
||||
if (!t || locked) return;
|
||||
editor.focus();
|
||||
insertPlainText(editor, multiline ? t : t.replace(/\r?\n/g, ' '));
|
||||
edited();
|
||||
}
|
||||
// A value set from outside (bind:value, a field cleared after sending) is written into the box.
|
||||
$effect(() => {
|
||||
const v = value;
|
||||
if (editable && editor && readText(editor) !== v) writeText(editor, v);
|
||||
});
|
||||
|
||||
// field-sizing: content grows the textarea in Chromium (WebView2, Android WebView); elsewhere, grow it here.
|
||||
const sizesItself = typeof CSS !== 'undefined' && CSS.supports?.('field-sizing', 'content');
|
||||
function grow() {
|
||||
if (!multiline || sizesItself || !(input instanceof HTMLTextAreaElement)) return;
|
||||
input.style.height = 'auto';
|
||||
input.style.height = `${input.scrollHeight}px`;
|
||||
}
|
||||
$effect(() => {
|
||||
void value;
|
||||
grow();
|
||||
});
|
||||
$effect(() => () => clearTimeout(timer));
|
||||
$effect(() => {
|
||||
if (autofocus) box?.focus();
|
||||
});
|
||||
|
||||
function focusBox() {
|
||||
if (!box) return;
|
||||
box.focus();
|
||||
if (editable) caretToEnd(box);
|
||||
}
|
||||
function focusInput(e: MouseEvent) {
|
||||
if (e.target === e.currentTarget) focusBox();
|
||||
}
|
||||
</script>
|
||||
|
||||
<div
|
||||
class={['domi-field', multiline && 'domi-field--multiline', size === 'lg' && 'domi-field--lg', cls]}
|
||||
data-state={shown === 'idle' ? undefined : shown}
|
||||
data-empty={empty ? '' : undefined}
|
||||
data-disabled={disabled ? '' : undefined}
|
||||
>
|
||||
{#if editable}
|
||||
<!-- An editable box is not a labelable element: the label names it through aria-labelledby; a click focuses it. -->
|
||||
<!-- svelte-ignore a11y_click_events_have_key_events a11y_no_static_element_interactions -->
|
||||
<span class={['domi-field__label', hideLabel && 'domi-sr']} id={labelId} role="presentation" onclick={focusBox}>
|
||||
{label}{#if optional}<span class="domi-field__optional">{" (optional)"}</span>{/if}
|
||||
</span>
|
||||
{:else}
|
||||
<label class={['domi-field__label', hideLabel && 'domi-sr']} for={fieldId} id={labelId}>
|
||||
{label}{#if optional}<span class="domi-field__optional">{" (optional)"}</span>{/if}
|
||||
</label>
|
||||
{/if}
|
||||
<!-- svelte-ignore a11y_click_events_have_key_events a11y_no_static_element_interactions -->
|
||||
<div class="domi-field__well" role="presentation" data-force={force} onclick={focusInput}>
|
||||
{#if editable}
|
||||
<div
|
||||
bind:this={editor}
|
||||
class={['domi-field__input', 'domi-field__input--editable', multiline && 'domi-field__input--lines']}
|
||||
id={fieldId}
|
||||
role="textbox"
|
||||
tabindex={disabled ? -1 : 0}
|
||||
contenteditable={locked ? 'false' : 'plaintext-only'}
|
||||
aria-labelledby={labelId}
|
||||
aria-multiline={multiline ? 'true' : 'false'}
|
||||
aria-describedby={described}
|
||||
aria-invalid={message ? 'true' : undefined}
|
||||
aria-required={required ? 'true' : undefined}
|
||||
aria-readonly={readonly || shown === 'sending' ? 'true' : undefined}
|
||||
aria-disabled={disabled ? 'true' : undefined}
|
||||
aria-placeholder={placeholder}
|
||||
data-placeholder={placeholder}
|
||||
inputmode={inputmode ?? inputmodeFor(type)}
|
||||
enterkeyhint={multiline ? (w.key === 'done' ? 'done' : 'enter') : w.key === 'done' ? 'done' : w.key}
|
||||
spellcheck={spellcheck ?? true}
|
||||
style:--_rows-max={rows}
|
||||
onkeydown={keydown}
|
||||
oninput={edited}
|
||||
onpaste={pasted}
|
||||
ondrop={dropped}
|
||||
></div>
|
||||
{#if name}<input type="hidden" {name} {value} />{/if}
|
||||
{:else if multiline}
|
||||
<textarea
|
||||
bind:this={input}
|
||||
bind:value
|
||||
class="domi-field__input"
|
||||
id={fieldId}
|
||||
{name}
|
||||
{placeholder}
|
||||
{disabled}
|
||||
readonly={readonly || shown === 'sending'}
|
||||
{required}
|
||||
{maxlength}
|
||||
{spellcheck}
|
||||
rows="1"
|
||||
style:--_rows-max={rows}
|
||||
enterkeyhint={w.key === 'done' ? 'done' : 'enter'}
|
||||
aria-invalid={message ? 'true' : undefined}
|
||||
aria-describedby={described}
|
||||
onkeydown={keydown}
|
||||
oninput={typed}
|
||||
></textarea>
|
||||
{:else}
|
||||
<input
|
||||
bind:this={input}
|
||||
bind:value
|
||||
class="domi-field__input"
|
||||
id={fieldId}
|
||||
type={inputType}
|
||||
{name}
|
||||
{placeholder}
|
||||
{disabled}
|
||||
readonly={readonly || shown === 'sending'}
|
||||
{required}
|
||||
{maxlength}
|
||||
{spellcheck}
|
||||
{autocomplete}
|
||||
{inputmode}
|
||||
enterkeyhint={w.key === 'done' ? 'done' : w.key}
|
||||
aria-invalid={message ? 'true' : undefined}
|
||||
aria-describedby={described}
|
||||
onkeydown={keydown}
|
||||
oninput={typed}
|
||||
/>
|
||||
{/if}
|
||||
{#if type === 'password'}
|
||||
<button
|
||||
type="button"
|
||||
class="domi-field__tool"
|
||||
aria-label={revealed ? 'Hide password' : 'Show password'}
|
||||
aria-pressed={revealed}
|
||||
aria-controls={fieldId}
|
||||
{disabled}
|
||||
onclick={() => (revealed = !revealed)}
|
||||
>
|
||||
<Icon name={revealed ? 'eye-off' : 'eye'} />
|
||||
</button>
|
||||
{/if}
|
||||
<button
|
||||
type="button"
|
||||
class="domi-send"
|
||||
aria-label={actionLabel ?? w.label}
|
||||
aria-disabled={lit ? undefined : 'true'}
|
||||
aria-busy={shown === 'sending' ? 'true' : undefined}
|
||||
aria-controls={fieldId}
|
||||
tabindex={lit ? undefined : -1}
|
||||
title={actionLabel ?? w.label}
|
||||
data-state={shown === 'sending' ? 'sending' : undefined}
|
||||
data-force={sendForce}
|
||||
onclick={() => void submit()}
|
||||
use:strike
|
||||
>
|
||||
{#if shown === 'sending'}
|
||||
<Strike />
|
||||
{:else if shown === 'sent'}
|
||||
<Icon name="check" draw />
|
||||
{:else}
|
||||
<Icon name={w.icon} />
|
||||
{/if}
|
||||
</button>
|
||||
</div>
|
||||
{#if hint}<p class="domi-field__hint" id={hintId}>{hint}</p>{/if}
|
||||
{#if message}<p class="domi-field__error" id={errorId}><Icon name="alert" />{message}</p>{/if}
|
||||
<span class="domi-sr" role="status">{said}</span>
|
||||
</div>
|
||||
@@ -0,0 +1,229 @@
|
||||
/*
|
||||
* @domi/ui base: the tokens derived from the roles, the touch floor, focus, and the motion every component shares.
|
||||
* Load after tokens.css. Hand-written; the roles come from tokens.css.
|
||||
*
|
||||
* Derived tokens are declared on every element that can change roles (the root, data-domi-app, data-domi-room),
|
||||
* because a custom property holding var() is resolved where it is declared: declared on :root only, a tile with
|
||||
* data-domi-app="culina" would keep the root's tint.
|
||||
*/
|
||||
:root,
|
||||
[data-domi-app],
|
||||
[data-domi-room] {
|
||||
--domi-tint: color-mix(in srgb, var(--domi-accent) 13%, transparent);
|
||||
--domi-tint-strong: color-mix(in srgb, var(--domi-accent) 22%, transparent);
|
||||
--domi-edge-accent: color-mix(in srgb, var(--domi-accent) 55%, transparent);
|
||||
--domi-edge-danger: color-mix(in srgb, var(--domi-danger) 60%, transparent);
|
||||
--domi-edge-ok: color-mix(in srgb, var(--domi-ok) 60%, transparent);
|
||||
--domi-tint-danger: color-mix(in srgb, var(--domi-danger) 9%, transparent);
|
||||
--domi-halo: 0 0 0 4px color-mix(in srgb, var(--domi-accent) 22%, transparent);
|
||||
|
||||
/* The leaf: the app's metal beaten thin over the one primary action of a screen. */
|
||||
--domi-leaf: linear-gradient(180deg, var(--domi-leaf-hi) 0%, var(--domi-leaf-mid) 52%, var(--domi-leaf-lo) 100%);
|
||||
/* Hover stops come from the token build, checked so the label keeps 4.5:1 (v1.0.1). */
|
||||
--domi-leaf-hover: linear-gradient(180deg, var(--domi-leaf-hover-hi) 0%, var(--domi-leaf-hover-mid) 52%, var(--domi-leaf-hover-lo) 100%);
|
||||
--domi-leaf-press: linear-gradient(180deg, var(--domi-leaf-lo) 0%, var(--domi-leaf-mid) 60%, var(--domi-leaf-hi) 100%);
|
||||
--domi-leaf-bevel: 0 0 0 1px color-mix(in srgb, var(--domi-leaf-edge) 24%, transparent),
|
||||
0 14px 34px -14px color-mix(in srgb, var(--domi-leaf-mid) 70%, transparent),
|
||||
inset 0 1px 0 color-mix(in srgb, var(--domi-leaf-hi) 40%, white), inset 0 -2px 0 color-mix(in srgb, var(--domi-leaf-lo) 62%, black);
|
||||
--domi-leaf-bevel-press: 0 0 0 1px color-mix(in srgb, var(--domi-leaf-edge) 24%, transparent),
|
||||
0 6px 16px -10px color-mix(in srgb, var(--domi-leaf-mid) 55%, transparent),
|
||||
inset 0 2px 4px color-mix(in srgb, var(--domi-leaf-lo) 50%, black);
|
||||
|
||||
/* The plate: every other button, struck from the ground's own stone. */
|
||||
--domi-plate: linear-gradient(180deg, var(--domi-plate-top), var(--domi-plate-bottom));
|
||||
--domi-plate-hover: linear-gradient(180deg, var(--domi-plate-top-hover), var(--domi-plate-bottom-hover));
|
||||
--domi-plate-press: linear-gradient(180deg, var(--domi-plate-bottom), var(--domi-plate-top));
|
||||
--domi-sheen: color-mix(in srgb, var(--domi-fg) 10%, transparent);
|
||||
--domi-sheen-strong: color-mix(in srgb, var(--domi-fg) 18%, transparent);
|
||||
--domi-glint: color-mix(in srgb, white 22%, transparent);
|
||||
--domi-glint-leaf: color-mix(in srgb, white 42%, transparent);
|
||||
--domi-impression: color-mix(in srgb, var(--domi-fg) 22%, transparent);
|
||||
--domi-impression-leaf: color-mix(in srgb, var(--domi-leaf-lo) 55%, black);
|
||||
--domi-plate-shadow: inset 0 1px 0 var(--domi-sheen), inset 0 -1px 0 rgb(0 0 0 / 0.45), 0 1px 0 rgb(0 0 0 / 0.55),
|
||||
0 8px 18px -12px rgb(0 0 0 / 0.9);
|
||||
--domi-plate-shadow-hover: inset 0 1px 0 var(--domi-sheen-strong), inset 0 -1px 0 rgb(0 0 0 / 0.45), 0 1px 0 rgb(0 0 0 / 0.55),
|
||||
0 10px 22px -12px rgb(0 0 0 / 0.95);
|
||||
--domi-plate-shadow-press: inset 0 2px 5px rgb(0 0 0 / 0.65), inset 0 -1px 0 var(--domi-sheen);
|
||||
|
||||
/* A field is cut into the stone. */
|
||||
--domi-carved: inset 0 2px 6px rgb(0 0 0 / 0.55), inset 0 -1px 0 var(--domi-sheen);
|
||||
--domi-dialog-shadow: 0 40px 100px -40px rgb(0 0 0 / 0.95);
|
||||
}
|
||||
|
||||
/* On parchment the light falls the same way, but the shade is umber and softer. */
|
||||
:root[data-domi-theme='light'],
|
||||
:root[data-domi-theme='light'] [data-domi-app],
|
||||
:root[data-domi-theme='light'] [data-domi-room] {
|
||||
--domi-sheen: rgb(255 255 255 / 0.85);
|
||||
--domi-sheen-strong: rgb(255 255 255 / 1);
|
||||
--domi-glint: rgb(255 255 255 / 0.7);
|
||||
--domi-impression: color-mix(in srgb, var(--domi-fg) 14%, transparent);
|
||||
--domi-plate-shadow: inset 0 1px 0 var(--domi-sheen), inset 0 -1px 0 rgb(90 66 30 / 0.16), 0 1px 0 rgb(90 66 30 / 0.12),
|
||||
0 8px 16px -12px rgb(90 66 30 / 0.45);
|
||||
--domi-plate-shadow-hover: inset 0 1px 0 var(--domi-sheen-strong), inset 0 -1px 0 rgb(90 66 30 / 0.18), 0 1px 0 rgb(90 66 30 / 0.14),
|
||||
0 10px 20px -12px rgb(90 66 30 / 0.5);
|
||||
--domi-plate-shadow-press: inset 0 2px 5px rgb(90 66 30 / 0.28), inset 0 -1px 0 var(--domi-sheen);
|
||||
--domi-carved: inset 0 2px 5px rgb(90 66 30 / 0.16), inset 0 -1px 0 var(--domi-sheen);
|
||||
--domi-dialog-shadow: 0 30px 80px -36px rgb(90 66 30 / 0.55);
|
||||
}
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root[data-domi-theme='auto'],
|
||||
:root[data-domi-theme='auto'] [data-domi-app],
|
||||
:root[data-domi-theme='auto'] [data-domi-room] {
|
||||
--domi-sheen: rgb(255 255 255 / 0.85);
|
||||
--domi-sheen-strong: rgb(255 255 255 / 1);
|
||||
--domi-glint: rgb(255 255 255 / 0.7);
|
||||
--domi-impression: color-mix(in srgb, var(--domi-fg) 14%, transparent);
|
||||
--domi-plate-shadow: inset 0 1px 0 var(--domi-sheen), inset 0 -1px 0 rgb(90 66 30 / 0.16), 0 1px 0 rgb(90 66 30 / 0.12),
|
||||
0 8px 16px -12px rgb(90 66 30 / 0.45);
|
||||
--domi-plate-shadow-hover: inset 0 1px 0 var(--domi-sheen-strong), inset 0 -1px 0 rgb(90 66 30 / 0.18),
|
||||
0 1px 0 rgb(90 66 30 / 0.14), 0 10px 20px -12px rgb(90 66 30 / 0.5);
|
||||
--domi-plate-shadow-press: inset 0 2px 5px rgb(90 66 30 / 0.28), inset 0 -1px 0 var(--domi-sheen);
|
||||
--domi-carved: inset 0 2px 5px rgb(90 66 30 / 0.16), inset 0 -1px 0 var(--domi-sheen);
|
||||
--domi-dialog-shadow: 0 30px 80px -36px rgb(90 66 30 / 0.55);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* The touch floor. On a coarse pointer (Android, a touch screen) every control is at least 48 px and every field
|
||||
* 56 px; on a mouse and keyboard the desktop sizes hold. data-domi-density forces one or the other.
|
||||
*/
|
||||
:root {
|
||||
--domi-target: 0px;
|
||||
--domi-field-target: 0px;
|
||||
--domi-send-target: 0px;
|
||||
}
|
||||
@media (pointer: coarse) {
|
||||
:root {
|
||||
--domi-target: var(--domi-size-touch);
|
||||
--domi-field-target: var(--domi-size-field-touch);
|
||||
--domi-send-target: var(--domi-size-send-touch);
|
||||
}
|
||||
}
|
||||
:root[data-domi-density='touch'] {
|
||||
--domi-target: var(--domi-size-touch);
|
||||
--domi-field-target: var(--domi-size-field-touch);
|
||||
--domi-send-target: var(--domi-size-send-touch);
|
||||
}
|
||||
:root[data-domi-density='pointer'] {
|
||||
--domi-target: 0px;
|
||||
--domi-field-target: 0px;
|
||||
--domi-send-target: 0px;
|
||||
}
|
||||
|
||||
/* A page that opts in to the Domi ground. */
|
||||
.domi-page {
|
||||
min-height: 100%;
|
||||
margin: 0;
|
||||
background: var(--domi-bg);
|
||||
color: var(--domi-fg);
|
||||
font: 400 var(--domi-text-md) / var(--domi-leading-md) var(--domi-font-hand);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.domi-wordmark {
|
||||
font-family: var(--domi-font-inscription);
|
||||
font-weight: 500;
|
||||
letter-spacing: var(--domi-tracking-inscription);
|
||||
color: var(--domi-accent-strong);
|
||||
}
|
||||
|
||||
/* Hidden from sight, read by a screen reader: state announcements. */
|
||||
.domi-sr {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
clip-path: inset(50%);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/* Shared motion. Every keyframe moves something (transform, or the chisel line's position) or fades a decorative
|
||||
layer; none animates a colour. */
|
||||
@keyframes domi-glint {
|
||||
from {
|
||||
transform: translateX(-130%) skewX(-18deg);
|
||||
}
|
||||
to {
|
||||
transform: translateX(130%) skewX(-18deg);
|
||||
}
|
||||
}
|
||||
@keyframes domi-impress {
|
||||
from {
|
||||
transform: scale(0.2);
|
||||
opacity: 0.9;
|
||||
}
|
||||
to {
|
||||
transform: scale(1);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
@keyframes domi-strike {
|
||||
0%,
|
||||
60%,
|
||||
100% {
|
||||
transform: translateY(0) scale(0.7);
|
||||
}
|
||||
25% {
|
||||
transform: translateY(2px) scale(1.15);
|
||||
}
|
||||
}
|
||||
@keyframes domi-shake {
|
||||
0%,
|
||||
100% {
|
||||
transform: translateX(0);
|
||||
}
|
||||
20%,
|
||||
60% {
|
||||
transform: translateX(-4px);
|
||||
}
|
||||
40%,
|
||||
80% {
|
||||
transform: translateX(4px);
|
||||
}
|
||||
}
|
||||
/* The chisel line runs inside the field (background-position, so nothing leaves the field). */
|
||||
@keyframes domi-carve {
|
||||
from {
|
||||
background-position: -70% 0;
|
||||
}
|
||||
to {
|
||||
background-position: 170% 0;
|
||||
}
|
||||
}
|
||||
@keyframes domi-draw {
|
||||
from {
|
||||
stroke-dashoffset: 24;
|
||||
}
|
||||
to {
|
||||
stroke-dashoffset: 0;
|
||||
}
|
||||
}
|
||||
@keyframes domi-rise {
|
||||
from {
|
||||
transform: translateY(3px) scale(0.86);
|
||||
}
|
||||
to {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Reduced motion: nothing moves, nothing is hidden for it; every state is still shown, at once. */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0ms !important;
|
||||
}
|
||||
}
|
||||
:root[data-domi-motion='reduce'] *,
|
||||
:root[data-domi-motion='reduce'] *::before,
|
||||
:root[data-domi-motion='reduce'] *::after {
|
||||
animation-duration: 0ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0ms !important;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,8 @@
|
||||
/* @domi/ui, everything: fonts, tokens, base, components. Import once at the app root.
|
||||
SPDX-License-Identifier: CPAL-1.0. The contents of this file are subject to the Common Public Attribution License
|
||||
Version 1.0 (LICENSE). The Original Code is @domi/ui; the Initial Developer is Marek Novák, Copyright (c) 2026.
|
||||
Redistribution requires the credit of Exhibit B: Built on Domi · https://aula.marek-novak.cz · Copyright (c) 2026 Marek Novák. */
|
||||
@import './fonts.css';
|
||||
@import './tokens.css';
|
||||
@import './base.css';
|
||||
@import './components.css';
|
||||
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
* The three Domi faces, bundled from npm (@fontsource-variable, SIL Open Font License 1.1). Nothing is fetched at
|
||||
* run time. A bundler (Vite) resolves these imports; for a stack without one, copy the woff2 files named in
|
||||
* docs/INTEGRATE.md and point @font-face at them. Families: 'Cinzel Variable', 'Cormorant Garamond Variable',
|
||||
* 'Manrope Variable'; the token stacks fall back to the plain names the apps used before.
|
||||
*/
|
||||
@import '@fontsource-variable/cinzel/wght.css';
|
||||
@import '@fontsource-variable/cormorant-garamond/wght.css';
|
||||
@import '@fontsource-variable/manrope/wght.css';
|
||||
@@ -0,0 +1,24 @@
|
||||
/* amicitia's token names before @domi/ui, as aliases. GENERATED by tools/build-legacy.mjs: do not edit. */
|
||||
/* Load after @domi/ui/domi.css. Temporary: rename usages to --domi-* and drop this file. */
|
||||
:root {
|
||||
--ground: var(--domi-bg);
|
||||
--colonnade: var(--domi-chrome);
|
||||
--surface: var(--domi-panel);
|
||||
--surface-2: var(--domi-hover);
|
||||
--hairline: var(--domi-line);
|
||||
--control-edge: var(--domi-edge);
|
||||
--text: var(--domi-fg);
|
||||
--text-2: var(--domi-fg-2);
|
||||
--muted: var(--domi-muted);
|
||||
--disabled: var(--domi-disabled);
|
||||
--accent: var(--domi-accent);
|
||||
--accent-strong: var(--domi-accent-strong);
|
||||
--primary-high: var(--domi-leaf-hi);
|
||||
--primary-mid: var(--domi-leaf-mid);
|
||||
--primary-low: var(--domi-leaf-lo);
|
||||
--primary-edge: var(--domi-leaf-edge);
|
||||
--on-primary: var(--domi-leaf-fg);
|
||||
--second: var(--domi-second);
|
||||
--danger: var(--domi-danger);
|
||||
--ok: var(--domi-ok);
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
/* arca's token names before @domi/ui, as aliases. GENERATED by tools/build-legacy.mjs: do not edit. */
|
||||
/* Load after @domi/ui/domi.css. Temporary: rename usages to --domi-* and drop this file. */
|
||||
:root {
|
||||
--bg: var(--domi-bg);
|
||||
--chrome: var(--domi-chrome);
|
||||
--chrome-top: var(--domi-chrome-top);
|
||||
--panel: var(--domi-panel);
|
||||
--hover: var(--domi-hover);
|
||||
--line: var(--domi-line);
|
||||
--edge: var(--domi-edge);
|
||||
--field: var(--domi-field);
|
||||
--fg: var(--domi-fg);
|
||||
--fg-2: var(--domi-fg-2);
|
||||
--muted: var(--domi-muted);
|
||||
--disabled: var(--domi-disabled);
|
||||
--plate-top: var(--domi-plate-top);
|
||||
--plate-bottom: var(--domi-plate-bottom);
|
||||
--plate-top-hover: var(--domi-plate-top-hover);
|
||||
--plate-bottom-hover: var(--domi-plate-bottom-hover);
|
||||
--accent: var(--domi-accent);
|
||||
--accent-strong: var(--domi-accent-strong);
|
||||
--accent-fg: var(--domi-leaf-fg);
|
||||
--leaf: var(--domi-leaf);
|
||||
--leaf-edge: var(--domi-leaf-edge);
|
||||
--rim-top: var(--domi-rim);
|
||||
--second: var(--domi-second);
|
||||
--danger: var(--domi-danger);
|
||||
--danger-fg: var(--domi-danger-fg);
|
||||
--ok: var(--domi-ok);
|
||||
--warning: var(--domi-warning);
|
||||
--tint: var(--domi-tint);
|
||||
--halo: var(--domi-halo);
|
||||
--sheen: var(--domi-sheen);
|
||||
--sheen-strong: var(--domi-sheen-strong);
|
||||
--leaf-hover: var(--domi-leaf-hover);
|
||||
--leaf-press: var(--domi-leaf-press);
|
||||
--leaf-bevel: var(--domi-leaf-bevel);
|
||||
--leaf-bevel-press: var(--domi-leaf-bevel-press);
|
||||
--edge-accent: var(--domi-edge-accent);
|
||||
--edge-danger: var(--domi-edge-danger);
|
||||
--tint-danger: var(--domi-tint-danger);
|
||||
--primary-fill: var(--domi-leaf);
|
||||
--primary-edge: var(--domi-leaf-edge);
|
||||
--inscription: var(--domi-font-inscription);
|
||||
--book: var(--domi-font-book);
|
||||
--hand: var(--domi-font-hand);
|
||||
--code: var(--domi-font-code);
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
/* atrium's token names before @domi/ui, as aliases. GENERATED by tools/build-legacy.mjs: do not edit. */
|
||||
/* Load after @domi/ui/domi.css. Temporary: rename usages to --domi-* and drop this file. */
|
||||
:root {
|
||||
--bg: var(--domi-bg);
|
||||
--chrome: var(--domi-chrome);
|
||||
--chrome-top: var(--domi-chrome-top);
|
||||
--panel: var(--domi-panel);
|
||||
--hover: var(--domi-hover);
|
||||
--line: var(--domi-line);
|
||||
--edge: var(--domi-edge);
|
||||
--field: var(--domi-field);
|
||||
--fg: var(--domi-fg);
|
||||
--fg-2: var(--domi-fg-2);
|
||||
--muted: var(--domi-muted);
|
||||
--disabled: var(--domi-disabled);
|
||||
--plate-top: var(--domi-plate-top);
|
||||
--plate-bottom: var(--domi-plate-bottom);
|
||||
--plate-top-hover: var(--domi-plate-top-hover);
|
||||
--plate-bottom-hover: var(--domi-plate-bottom-hover);
|
||||
--accent: var(--domi-accent);
|
||||
--accent-strong: var(--domi-accent-strong);
|
||||
--accent-fg: var(--domi-leaf-fg);
|
||||
--leaf: var(--domi-leaf);
|
||||
--leaf-edge: var(--domi-leaf-edge);
|
||||
--rim-top: var(--domi-rim);
|
||||
--second: var(--domi-second);
|
||||
--danger: var(--domi-danger);
|
||||
--danger-fg: var(--domi-danger-fg);
|
||||
--ok: var(--domi-ok);
|
||||
--warning: var(--domi-warning);
|
||||
--tint: var(--domi-tint);
|
||||
--halo: var(--domi-halo);
|
||||
--sheen: var(--domi-sheen);
|
||||
--sheen-strong: var(--domi-sheen-strong);
|
||||
--leaf-hover: var(--domi-leaf-hover);
|
||||
--leaf-press: var(--domi-leaf-press);
|
||||
--leaf-bevel: var(--domi-leaf-bevel);
|
||||
--leaf-bevel-press: var(--domi-leaf-bevel-press);
|
||||
--edge-accent: var(--domi-edge-accent);
|
||||
--edge-danger: var(--domi-edge-danger);
|
||||
--tint-danger: var(--domi-tint-danger);
|
||||
--primary-fill: var(--domi-leaf);
|
||||
--primary-edge: var(--domi-leaf-edge);
|
||||
--inscription: var(--domi-font-inscription);
|
||||
--book: var(--domi-font-book);
|
||||
--hand: var(--domi-font-hand);
|
||||
--code: var(--domi-font-code);
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/* aula's token names before @domi/ui, as aliases. GENERATED by tools/build-legacy.mjs: do not edit. */
|
||||
/* Load after @domi/ui/domi.css. Temporary: rename usages to --domi-* and drop this file. */
|
||||
:root {
|
||||
--bg: var(--domi-bg);
|
||||
--chrome: var(--domi-chrome);
|
||||
--panel: var(--domi-panel);
|
||||
--line: var(--domi-line);
|
||||
--edge: var(--domi-edge);
|
||||
--field: var(--domi-field);
|
||||
--fg: var(--domi-fg);
|
||||
--fg-2: var(--domi-fg-2);
|
||||
--muted: var(--domi-muted);
|
||||
--accent: var(--domi-accent);
|
||||
--accent-strong: var(--domi-accent-strong);
|
||||
--p-leaf1: var(--domi-leaf-hi);
|
||||
--p-leaf2: var(--domi-leaf-mid);
|
||||
--p-leaf3: var(--domi-leaf-lo);
|
||||
--p-leaf-edge: var(--domi-leaf-edge);
|
||||
--p-on-leaf: var(--domi-leaf-fg);
|
||||
--second: var(--domi-second);
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
/* calenda's token names before @domi/ui, as aliases. GENERATED by tools/build-legacy.mjs: do not edit. */
|
||||
/* Load after @domi/ui/domi.css. Temporary: rename usages to --domi-* and drop this file. */
|
||||
:root {
|
||||
--bg: var(--domi-bg);
|
||||
--sidebar: var(--domi-chrome);
|
||||
--surface: var(--domi-panel);
|
||||
--surface-2: var(--domi-hover);
|
||||
--line: var(--domi-line);
|
||||
--line-control: var(--domi-edge);
|
||||
--text: var(--domi-fg);
|
||||
--muted: var(--domi-muted);
|
||||
--accent-strong: var(--domi-accent);
|
||||
--accent-edge: var(--domi-leaf-hi);
|
||||
--accent: var(--domi-leaf-mid);
|
||||
--lacquer-deep: var(--domi-leaf-lo);
|
||||
--bronze: var(--domi-leaf-edge);
|
||||
--on-accent: var(--domi-leaf-fg);
|
||||
--person-text: var(--domi-second);
|
||||
--danger: var(--domi-danger);
|
||||
--on-danger: var(--domi-danger-fg);
|
||||
--warning: var(--domi-warning);
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
/* culina's token names before @domi/ui, as aliases. GENERATED by tools/build-legacy.mjs: do not edit. */
|
||||
/* Load after @domi/ui/domi.css. Temporary: rename usages to --domi-* and drop this file. */
|
||||
:root {
|
||||
--bg: var(--domi-bg);
|
||||
--chrome: var(--domi-chrome);
|
||||
--chrome-top: var(--domi-chrome-top);
|
||||
--panel: var(--domi-panel);
|
||||
--hover: var(--domi-hover);
|
||||
--line: var(--domi-line);
|
||||
--edge: var(--domi-edge);
|
||||
--field: var(--domi-field);
|
||||
--fg: var(--domi-fg);
|
||||
--fg-2: var(--domi-fg-2);
|
||||
--muted: var(--domi-muted);
|
||||
--disabled: var(--domi-disabled);
|
||||
--plate-top: var(--domi-plate-top);
|
||||
--plate-bottom: var(--domi-plate-bottom);
|
||||
--plate-top-hover: var(--domi-plate-top-hover);
|
||||
--plate-bottom-hover: var(--domi-plate-bottom-hover);
|
||||
--accent: var(--domi-accent);
|
||||
--accent-strong: var(--domi-accent-strong);
|
||||
--accent-fg: var(--domi-leaf-fg);
|
||||
--leaf: var(--domi-leaf);
|
||||
--leaf-edge: var(--domi-leaf-edge);
|
||||
--rim-top: var(--domi-rim);
|
||||
--second: var(--domi-second);
|
||||
--danger: var(--domi-danger);
|
||||
--danger-fg: var(--domi-danger-fg);
|
||||
--ok: var(--domi-ok);
|
||||
--warning: var(--domi-warning);
|
||||
--tint: var(--domi-tint);
|
||||
--halo: var(--domi-halo);
|
||||
--sheen: var(--domi-sheen);
|
||||
--sheen-strong: var(--domi-sheen-strong);
|
||||
--leaf-hover: var(--domi-leaf-hover);
|
||||
--leaf-press: var(--domi-leaf-press);
|
||||
--leaf-bevel: var(--domi-leaf-bevel);
|
||||
--leaf-bevel-press: var(--domi-leaf-bevel-press);
|
||||
--edge-accent: var(--domi-edge-accent);
|
||||
--edge-danger: var(--domi-edge-danger);
|
||||
--tint-danger: var(--domi-tint-danger);
|
||||
--primary-fill: var(--domi-leaf);
|
||||
--primary-edge: var(--domi-leaf-edge);
|
||||
--inscription: var(--domi-font-inscription);
|
||||
--book: var(--domi-font-book);
|
||||
--hand: var(--domi-font-hand);
|
||||
--code: var(--domi-font-code);
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
/* custos's token names before @domi/ui, as aliases. GENERATED by tools/build-legacy.mjs: do not edit. */
|
||||
/* Load after @domi/ui/domi.css. Temporary: rename usages to --domi-* and drop this file. */
|
||||
:root {
|
||||
--bg: var(--domi-bg);
|
||||
--chrome: var(--domi-chrome);
|
||||
--chrome-top: var(--domi-chrome-top);
|
||||
--panel: var(--domi-panel);
|
||||
--hover: var(--domi-hover);
|
||||
--line: var(--domi-line);
|
||||
--edge: var(--domi-edge);
|
||||
--field: var(--domi-field);
|
||||
--fg: var(--domi-fg);
|
||||
--fg-2: var(--domi-fg-2);
|
||||
--muted: var(--domi-muted);
|
||||
--disabled: var(--domi-disabled);
|
||||
--plate-top: var(--domi-plate-top);
|
||||
--plate-bottom: var(--domi-plate-bottom);
|
||||
--plate-top-hover: var(--domi-plate-top-hover);
|
||||
--plate-bottom-hover: var(--domi-plate-bottom-hover);
|
||||
--accent: var(--domi-accent);
|
||||
--accent-strong: var(--domi-accent-strong);
|
||||
--accent-fg: var(--domi-leaf-fg);
|
||||
--leaf: var(--domi-leaf);
|
||||
--leaf-edge: var(--domi-leaf-edge);
|
||||
--rim-top: var(--domi-rim);
|
||||
--second: var(--domi-second);
|
||||
--danger: var(--domi-danger);
|
||||
--danger-fg: var(--domi-danger-fg);
|
||||
--ok: var(--domi-ok);
|
||||
--warning: var(--domi-warning);
|
||||
--tint: var(--domi-tint);
|
||||
--halo: var(--domi-halo);
|
||||
--sheen: var(--domi-sheen);
|
||||
--sheen-strong: var(--domi-sheen-strong);
|
||||
--leaf-hover: var(--domi-leaf-hover);
|
||||
--leaf-press: var(--domi-leaf-press);
|
||||
--leaf-bevel: var(--domi-leaf-bevel);
|
||||
--leaf-bevel-press: var(--domi-leaf-bevel-press);
|
||||
--edge-accent: var(--domi-edge-accent);
|
||||
--edge-danger: var(--domi-edge-danger);
|
||||
--tint-danger: var(--domi-tint-danger);
|
||||
--primary-fill: var(--domi-leaf);
|
||||
--primary-edge: var(--domi-leaf-edge);
|
||||
--inscription: var(--domi-font-inscription);
|
||||
--book: var(--domi-font-book);
|
||||
--hand: var(--domi-font-hand);
|
||||
--code: var(--domi-font-code);
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
/* domi-office's token names before @domi/ui, as aliases. GENERATED by tools/build-legacy.mjs: do not edit. */
|
||||
/* Load after @domi/ui/domi.css. Temporary: rename usages to --domi-* and drop this file. */
|
||||
:root {
|
||||
--bg: var(--domi-bg);
|
||||
--chrome: var(--domi-chrome);
|
||||
--chrome-top: var(--domi-chrome-top);
|
||||
--panel: var(--domi-panel);
|
||||
--hover: var(--domi-hover);
|
||||
--line: var(--domi-line);
|
||||
--edge: var(--domi-edge);
|
||||
--field: var(--domi-field);
|
||||
--fg: var(--domi-fg);
|
||||
--fg-2: var(--domi-fg-2);
|
||||
--muted: var(--domi-muted);
|
||||
--disabled: var(--domi-disabled);
|
||||
--plate-top: var(--domi-plate-top);
|
||||
--plate-bottom: var(--domi-plate-bottom);
|
||||
--plate-top-hover: var(--domi-plate-top-hover);
|
||||
--plate-bottom-hover: var(--domi-plate-bottom-hover);
|
||||
--accent: var(--domi-accent);
|
||||
--accent-strong: var(--domi-accent-strong);
|
||||
--accent-fg: var(--domi-leaf-fg);
|
||||
--leaf: var(--domi-leaf);
|
||||
--leaf-edge: var(--domi-leaf-edge);
|
||||
--rim-top: var(--domi-rim);
|
||||
--second: var(--domi-second);
|
||||
--danger: var(--domi-danger);
|
||||
--danger-fg: var(--domi-danger-fg);
|
||||
--ok: var(--domi-ok);
|
||||
--warning: var(--domi-warning);
|
||||
--tint: var(--domi-tint);
|
||||
--halo: var(--domi-halo);
|
||||
--sheen: var(--domi-sheen);
|
||||
--sheen-strong: var(--domi-sheen-strong);
|
||||
--leaf-hover: var(--domi-leaf-hover);
|
||||
--leaf-press: var(--domi-leaf-press);
|
||||
--leaf-bevel: var(--domi-leaf-bevel);
|
||||
--leaf-bevel-press: var(--domi-leaf-bevel-press);
|
||||
--edge-accent: var(--domi-edge-accent);
|
||||
--edge-danger: var(--domi-edge-danger);
|
||||
--tint-danger: var(--domi-tint-danger);
|
||||
--primary-fill: var(--domi-leaf);
|
||||
--primary-edge: var(--domi-leaf-edge);
|
||||
--inscription: var(--domi-font-inscription);
|
||||
--book: var(--domi-font-book);
|
||||
--hand: var(--domi-font-hand);
|
||||
--code: var(--domi-font-code);
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
/* epistula's token names before @domi/ui, as aliases. GENERATED by tools/build-legacy.mjs: do not edit. */
|
||||
/* Load after @domi/ui/domi.css. Temporary: rename usages to --domi-* and drop this file. */
|
||||
:root {
|
||||
--bg: var(--domi-bg);
|
||||
--chrome: var(--domi-chrome);
|
||||
--chrome-top: var(--domi-chrome-top);
|
||||
--panel: var(--domi-panel);
|
||||
--hover: var(--domi-hover);
|
||||
--line: var(--domi-line);
|
||||
--edge: var(--domi-edge);
|
||||
--field: var(--domi-field);
|
||||
--fg: var(--domi-fg);
|
||||
--fg-2: var(--domi-fg-2);
|
||||
--muted: var(--domi-muted);
|
||||
--disabled: var(--domi-disabled);
|
||||
--plate-top: var(--domi-plate-top);
|
||||
--plate-bottom: var(--domi-plate-bottom);
|
||||
--plate-top-hover: var(--domi-plate-top-hover);
|
||||
--plate-bottom-hover: var(--domi-plate-bottom-hover);
|
||||
--accent: var(--domi-accent);
|
||||
--accent-strong: var(--domi-accent-strong);
|
||||
--accent-fg: var(--domi-leaf-fg);
|
||||
--leaf: var(--domi-leaf);
|
||||
--leaf-edge: var(--domi-leaf-edge);
|
||||
--rim-top: var(--domi-rim);
|
||||
--second: var(--domi-second);
|
||||
--danger: var(--domi-danger);
|
||||
--danger-fg: var(--domi-danger-fg);
|
||||
--ok: var(--domi-ok);
|
||||
--warning: var(--domi-warning);
|
||||
--tint: var(--domi-tint);
|
||||
--halo: var(--domi-halo);
|
||||
--sheen: var(--domi-sheen);
|
||||
--sheen-strong: var(--domi-sheen-strong);
|
||||
--leaf-hover: var(--domi-leaf-hover);
|
||||
--leaf-press: var(--domi-leaf-press);
|
||||
--leaf-bevel: var(--domi-leaf-bevel);
|
||||
--leaf-bevel-press: var(--domi-leaf-bevel-press);
|
||||
--edge-accent: var(--domi-edge-accent);
|
||||
--edge-danger: var(--domi-edge-danger);
|
||||
--tint-danger: var(--domi-tint-danger);
|
||||
--primary-fill: var(--domi-leaf);
|
||||
--primary-edge: var(--domi-leaf-edge);
|
||||
--inscription: var(--domi-font-inscription);
|
||||
--book: var(--domi-font-book);
|
||||
--hand: var(--domi-font-hand);
|
||||
--code: var(--domi-font-code);
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
/* fabrica's token names before @domi/ui, as aliases. GENERATED by tools/build-legacy.mjs: do not edit. */
|
||||
/* Load after @domi/ui/domi.css. Temporary: rename usages to --domi-* and drop this file. */
|
||||
:root {
|
||||
--bg: var(--domi-bg);
|
||||
--chrome: var(--domi-chrome);
|
||||
--chrome-top: var(--domi-chrome-top);
|
||||
--panel: var(--domi-panel);
|
||||
--hover: var(--domi-hover);
|
||||
--line: var(--domi-line);
|
||||
--edge: var(--domi-edge);
|
||||
--field: var(--domi-field);
|
||||
--fg: var(--domi-fg);
|
||||
--fg-2: var(--domi-fg-2);
|
||||
--muted: var(--domi-muted);
|
||||
--disabled: var(--domi-disabled);
|
||||
--plate-top: var(--domi-plate-top);
|
||||
--plate-bottom: var(--domi-plate-bottom);
|
||||
--plate-top-hover: var(--domi-plate-top-hover);
|
||||
--plate-bottom-hover: var(--domi-plate-bottom-hover);
|
||||
--accent: var(--domi-accent);
|
||||
--accent-strong: var(--domi-accent-strong);
|
||||
--accent-fg: var(--domi-leaf-fg);
|
||||
--leaf: var(--domi-leaf);
|
||||
--leaf-edge: var(--domi-leaf-edge);
|
||||
--rim-top: var(--domi-rim);
|
||||
--second: var(--domi-second);
|
||||
--danger: var(--domi-danger);
|
||||
--danger-fg: var(--domi-danger-fg);
|
||||
--ok: var(--domi-ok);
|
||||
--warning: var(--domi-warning);
|
||||
--tint: var(--domi-tint);
|
||||
--halo: var(--domi-halo);
|
||||
--sheen: var(--domi-sheen);
|
||||
--sheen-strong: var(--domi-sheen-strong);
|
||||
--leaf-hover: var(--domi-leaf-hover);
|
||||
--leaf-press: var(--domi-leaf-press);
|
||||
--leaf-bevel: var(--domi-leaf-bevel);
|
||||
--leaf-bevel-press: var(--domi-leaf-bevel-press);
|
||||
--edge-accent: var(--domi-edge-accent);
|
||||
--edge-danger: var(--domi-edge-danger);
|
||||
--tint-danger: var(--domi-tint-danger);
|
||||
--primary-fill: var(--domi-leaf);
|
||||
--primary-edge: var(--domi-leaf-edge);
|
||||
--inscription: var(--domi-font-inscription);
|
||||
--book: var(--domi-font-book);
|
||||
--hand: var(--domi-font-hand);
|
||||
--code: var(--domi-font-code);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/* famulus's token names before @domi/ui, as aliases. GENERATED by tools/build-legacy.mjs: do not edit. */
|
||||
/* Load after @domi/ui/domi.css. Temporary: rename usages to --domi-* and drop this file. */
|
||||
:root {
|
||||
--famulus-ground: var(--domi-bg);
|
||||
--famulus-night-high: var(--domi-chrome);
|
||||
--famulus-surface: var(--domi-panel);
|
||||
--famulus-row-hover: var(--domi-hover);
|
||||
--famulus-line: var(--domi-line);
|
||||
--famulus-field: var(--domi-field);
|
||||
--famulus-text: var(--domi-fg);
|
||||
--famulus-soft: var(--domi-fg-2);
|
||||
--famulus-quiet: var(--domi-muted);
|
||||
--famulus-quieter: var(--domi-disabled);
|
||||
--famulus-gold: var(--domi-accent);
|
||||
--famulus-gold-bright: var(--domi-accent-strong);
|
||||
--famulus-leaf-light: var(--domi-leaf-hi);
|
||||
--famulus-leaf-mid: var(--domi-leaf-mid);
|
||||
--famulus-leaf-shadow: var(--domi-leaf-lo);
|
||||
--famulus-glint: var(--domi-leaf-edge);
|
||||
--famulus-on-gold: var(--domi-leaf-fg);
|
||||
--famulus-gold-deep: var(--domi-rim);
|
||||
--famulus-moonlight: var(--domi-second);
|
||||
--famulus-sage: var(--domi-ok);
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
/* fiscus's token names before @domi/ui, as aliases. GENERATED by tools/build-legacy.mjs: do not edit. */
|
||||
/* Load after @domi/ui/domi.css. Temporary: rename usages to --domi-* and drop this file. */
|
||||
:root {
|
||||
--bg: var(--domi-bg);
|
||||
--chrome: var(--domi-chrome);
|
||||
--chrome-top: var(--domi-chrome-top);
|
||||
--panel: var(--domi-panel);
|
||||
--hover: var(--domi-hover);
|
||||
--line: var(--domi-line);
|
||||
--edge: var(--domi-edge);
|
||||
--field: var(--domi-field);
|
||||
--fg: var(--domi-fg);
|
||||
--fg-2: var(--domi-fg-2);
|
||||
--muted: var(--domi-muted);
|
||||
--disabled: var(--domi-disabled);
|
||||
--plate-top: var(--domi-plate-top);
|
||||
--plate-bottom: var(--domi-plate-bottom);
|
||||
--plate-top-hover: var(--domi-plate-top-hover);
|
||||
--plate-bottom-hover: var(--domi-plate-bottom-hover);
|
||||
--accent: var(--domi-accent);
|
||||
--accent-strong: var(--domi-accent-strong);
|
||||
--accent-fg: var(--domi-leaf-fg);
|
||||
--leaf: var(--domi-leaf);
|
||||
--leaf-edge: var(--domi-leaf-edge);
|
||||
--rim-top: var(--domi-rim);
|
||||
--second: var(--domi-second);
|
||||
--danger: var(--domi-danger);
|
||||
--danger-fg: var(--domi-danger-fg);
|
||||
--ok: var(--domi-ok);
|
||||
--warning: var(--domi-warning);
|
||||
--tint: var(--domi-tint);
|
||||
--halo: var(--domi-halo);
|
||||
--sheen: var(--domi-sheen);
|
||||
--sheen-strong: var(--domi-sheen-strong);
|
||||
--leaf-hover: var(--domi-leaf-hover);
|
||||
--leaf-press: var(--domi-leaf-press);
|
||||
--leaf-bevel: var(--domi-leaf-bevel);
|
||||
--leaf-bevel-press: var(--domi-leaf-bevel-press);
|
||||
--edge-accent: var(--domi-edge-accent);
|
||||
--edge-danger: var(--domi-edge-danger);
|
||||
--tint-danger: var(--domi-tint-danger);
|
||||
--primary-fill: var(--domi-leaf);
|
||||
--primary-edge: var(--domi-leaf-edge);
|
||||
--inscription: var(--domi-font-inscription);
|
||||
--book: var(--domi-font-book);
|
||||
--hand: var(--domi-font-hand);
|
||||
--code: var(--domi-font-code);
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
/* fundamentum's token names before @domi/ui, as aliases. GENERATED by tools/build-legacy.mjs: do not edit. */
|
||||
/* Load after @domi/ui/domi.css. Temporary: rename usages to --domi-* and drop this file. */
|
||||
.theme-fundamentum {
|
||||
--bg: var(--domi-bg);
|
||||
--chrome: var(--domi-chrome);
|
||||
--chrome-top: var(--domi-chrome-top);
|
||||
--panel: var(--domi-panel);
|
||||
--hover: var(--domi-hover);
|
||||
--line: var(--domi-line);
|
||||
--edge: var(--domi-edge);
|
||||
--field: var(--domi-field);
|
||||
--fg: var(--domi-fg);
|
||||
--fg-2: var(--domi-fg-2);
|
||||
--muted: var(--domi-muted);
|
||||
--disabled: var(--domi-disabled);
|
||||
--plate-top: var(--domi-plate-top);
|
||||
--plate-bottom: var(--domi-plate-bottom);
|
||||
--plate-top-hover: var(--domi-plate-top-hover);
|
||||
--plate-bottom-hover: var(--domi-plate-bottom-hover);
|
||||
--accent: var(--domi-accent);
|
||||
--accent-strong: var(--domi-accent-strong);
|
||||
--accent-fg: var(--domi-leaf-fg);
|
||||
--leaf: var(--domi-leaf);
|
||||
--leaf-edge: var(--domi-leaf-edge);
|
||||
--rim-top: var(--domi-rim);
|
||||
--second: var(--domi-second);
|
||||
--danger: var(--domi-danger);
|
||||
--danger-fg: var(--domi-danger-fg);
|
||||
--ok: var(--domi-ok);
|
||||
--warning: var(--domi-warning);
|
||||
--tint: var(--domi-tint);
|
||||
--halo: var(--domi-halo);
|
||||
--sheen: var(--domi-sheen);
|
||||
--sheen-strong: var(--domi-sheen-strong);
|
||||
--leaf-hover: var(--domi-leaf-hover);
|
||||
--leaf-press: var(--domi-leaf-press);
|
||||
--leaf-bevel: var(--domi-leaf-bevel);
|
||||
--leaf-bevel-press: var(--domi-leaf-bevel-press);
|
||||
--edge-accent: var(--domi-edge-accent);
|
||||
--edge-danger: var(--domi-edge-danger);
|
||||
--tint-danger: var(--domi-tint-danger);
|
||||
--primary-fill: var(--domi-leaf);
|
||||
--primary-edge: var(--domi-leaf-edge);
|
||||
--inscription: var(--domi-font-inscription);
|
||||
--book: var(--domi-font-book);
|
||||
--hand: var(--domi-font-hand);
|
||||
--code: var(--domi-font-code);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
/* ianitor's token names before @domi/ui, as aliases. GENERATED by tools/build-legacy.mjs: do not edit. */
|
||||
/* Load after @domi/ui/domi.css. Temporary: rename usages to --domi-* and drop this file. */
|
||||
.ia {
|
||||
--ground: var(--domi-bg);
|
||||
--colonnade: var(--domi-chrome);
|
||||
--surface: var(--domi-panel);
|
||||
--surface-2: var(--domi-hover);
|
||||
--hairline: var(--domi-line);
|
||||
--control-edge: var(--domi-edge);
|
||||
--text: var(--domi-fg);
|
||||
--text-2: var(--domi-fg-2);
|
||||
--muted: var(--domi-muted);
|
||||
--disabled: var(--domi-disabled);
|
||||
--accent: var(--domi-accent);
|
||||
--accent-strong: var(--domi-accent-strong);
|
||||
--primary-high: var(--domi-leaf-hi);
|
||||
--primary-mid: var(--domi-leaf-mid);
|
||||
--primary-low: var(--domi-leaf-lo);
|
||||
--primary-edge: var(--domi-leaf-edge);
|
||||
--on-primary: var(--domi-leaf-fg);
|
||||
--second: var(--domi-second);
|
||||
--danger: var(--domi-danger);
|
||||
--on-danger: var(--domi-danger-fg);
|
||||
--healthy: var(--domi-ok);
|
||||
--degraded: var(--domi-warning);
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
/* lapilli's token names before @domi/ui, as aliases. GENERATED by tools/build-legacy.mjs: do not edit. */
|
||||
/* Load after @domi/ui/domi.css. Temporary: rename usages to --domi-* and drop this file. */
|
||||
:root {
|
||||
--bg: var(--domi-bg);
|
||||
--chrome: var(--domi-chrome);
|
||||
--chrome-top: var(--domi-chrome-top);
|
||||
--panel: var(--domi-panel);
|
||||
--hover: var(--domi-hover);
|
||||
--line: var(--domi-line);
|
||||
--edge: var(--domi-edge);
|
||||
--field: var(--domi-field);
|
||||
--fg: var(--domi-fg);
|
||||
--fg-2: var(--domi-fg-2);
|
||||
--muted: var(--domi-muted);
|
||||
--disabled: var(--domi-disabled);
|
||||
--plate-top: var(--domi-plate-top);
|
||||
--plate-bottom: var(--domi-plate-bottom);
|
||||
--plate-top-hover: var(--domi-plate-top-hover);
|
||||
--plate-bottom-hover: var(--domi-plate-bottom-hover);
|
||||
--accent: var(--domi-accent);
|
||||
--accent-strong: var(--domi-accent-strong);
|
||||
--accent-fg: var(--domi-leaf-fg);
|
||||
--leaf: var(--domi-leaf);
|
||||
--leaf-edge: var(--domi-leaf-edge);
|
||||
--rim-top: var(--domi-rim);
|
||||
--second: var(--domi-second);
|
||||
--danger: var(--domi-danger);
|
||||
--danger-fg: var(--domi-danger-fg);
|
||||
--ok: var(--domi-ok);
|
||||
--warning: var(--domi-warning);
|
||||
--tint: var(--domi-tint);
|
||||
--halo: var(--domi-halo);
|
||||
--sheen: var(--domi-sheen);
|
||||
--sheen-strong: var(--domi-sheen-strong);
|
||||
--leaf-hover: var(--domi-leaf-hover);
|
||||
--leaf-press: var(--domi-leaf-press);
|
||||
--leaf-bevel: var(--domi-leaf-bevel);
|
||||
--leaf-bevel-press: var(--domi-leaf-bevel-press);
|
||||
--edge-accent: var(--domi-edge-accent);
|
||||
--edge-danger: var(--domi-edge-danger);
|
||||
--tint-danger: var(--domi-tint-danger);
|
||||
--primary-fill: var(--domi-leaf);
|
||||
--primary-edge: var(--domi-leaf-edge);
|
||||
--inscription: var(--domi-font-inscription);
|
||||
--book: var(--domi-font-book);
|
||||
--hand: var(--domi-font-hand);
|
||||
--code: var(--domi-font-code);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/* liber's token names before @domi/ui, as aliases. GENERATED by tools/build-legacy.mjs: do not edit. */
|
||||
/* Load after @domi/ui/domi.css. Temporary: rename usages to --domi-* and drop this file. */
|
||||
:root {
|
||||
--lb-ground: var(--domi-bg);
|
||||
--lb-colonnade: var(--domi-chrome);
|
||||
--lb-surface: var(--domi-panel);
|
||||
--lb-surface-2: var(--domi-hover);
|
||||
--lb-hairline: var(--domi-line);
|
||||
--lb-control-edge: var(--domi-edge);
|
||||
--lb-text: var(--domi-fg);
|
||||
--lb-text-2: var(--domi-fg-2);
|
||||
--lb-muted: var(--domi-muted);
|
||||
--lb-disabled: var(--domi-disabled);
|
||||
--lb-accent: var(--domi-accent);
|
||||
--lb-accent-strong: var(--domi-accent-strong);
|
||||
--lb-primary-high: var(--domi-leaf-hi);
|
||||
--lb-primary-mid: var(--domi-leaf-mid);
|
||||
--lb-primary-low: var(--domi-leaf-lo);
|
||||
--lb-primary-edge: var(--domi-leaf-edge);
|
||||
--lb-on-primary: var(--domi-leaf-fg);
|
||||
--lb-copper: var(--domi-second);
|
||||
--lb-danger: var(--domi-danger);
|
||||
--lb-success: var(--domi-ok);
|
||||
--lb-warning: var(--domi-warning);
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/* ludus's token names before @domi/ui, as aliases. GENERATED by tools/build-legacy.mjs: do not edit. */
|
||||
/* Load after @domi/ui/domi.css. Temporary: rename usages to --domi-* and drop this file. */
|
||||
:root {
|
||||
--lu-ground-app: var(--domi-bg);
|
||||
--lu-ground-sunken: var(--domi-chrome);
|
||||
--lu-ground-card: var(--domi-panel);
|
||||
--lu-surface: var(--domi-hover);
|
||||
--lu-hairline: var(--domi-line);
|
||||
--lu-blue-border: var(--domi-edge);
|
||||
--lu-ground-deepest: var(--domi-field);
|
||||
--lu-text-primary: var(--domi-fg);
|
||||
--lu-text-body: var(--domi-fg-2);
|
||||
--lu-text-secondary: var(--domi-muted);
|
||||
--lu-text-tertiary: var(--domi-disabled);
|
||||
--lu-primary-accent: var(--domi-accent);
|
||||
--lu-primary-bright: var(--domi-leaf-hi);
|
||||
--lu-primary: var(--domi-leaf-mid);
|
||||
--lu-primary-mid: var(--domi-leaf-lo);
|
||||
--lu-gold: var(--domi-leaf-edge);
|
||||
--lu-text-on-primary: var(--domi-leaf-fg);
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user