S018: site dialog, hidden run noted, plan done
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
parent
7c67ce18f2
commit
83ef4be3b7
1 changed files with 33 additions and 11 deletions
|
|
@ -152,7 +152,7 @@ Seen: boxes 2 to 7 were ticked together after the tests, against rule 3. A relea
|
|||
|
||||
## S018 — Settings, colour, shortcuts and first run (2026-11-25)
|
||||
Done: `views::{settings, palette, firstrun}`, `keys`; the app saves settings, sets the language and gives changes to the engine (`bridge.apply`), which now has `Sites` (logins, proxies). Sign in and Network settings do what they say. Choices: D-046 to D-048. Outside the plan's files: `app`, `bridge`, `views::{main, list, bar, rail}`, `ui::{field, menu}`, `theme::{seed, hue_of}`, settings `shortcuts`, shots, two icons.
|
||||
Verified: `nice cargo test -j 2 -p medlar --test settings` green (26), all medlar tests and clippy; shots of every page, palette and first run seen at 1080×720 (dark) and 480×360 (light), some of them the other way round.
|
||||
Verified: `nice cargo test -j 2 -p medlar --test settings` green (26), all medlar tests and clippy; shots of every page, palette and first run seen at 1080×720 (dark) and 480×360 (light), some of them the other way round. Hidden release run: first run by keyboard, palette, gone-to rows, settings written; idle 5 s = 0.00 % CPU on the Look page (9.6 % in the 5 s after a row was lit, with software rendering). The two dialogs seen in both. The dialog's numbers and the light's colour were changed after that run: tests and shots only.
|
||||
- A settings row: a line in `views/settings/rows.rs::ROWS` (page, heading, id, the `Settings` keys it changes, `Kind`), texts `set.<id>`, `set.<id>.why` (one line), `set.<id>.<option>`, `set.group.<heading>`. Kinds: Switch, Choice (up to 4), List, Number, Text (with `check`), Own (draws itself with `(View, Cx, Ui)`). Search, undo, palette and the tests take it from there. A page shows once it has a row; a new page is a variant of `Page` with id, icon and the text `page.<id>`. Every key of `Settings` needs a row, or `every_setting_has_a_row` fails.
|
||||
- An action: a variant of `keys::Action`, a line in `keys::ALL` (id, icon, group, usual keys), the text `action.<id>`, an arm in `App::run`, `Main::run` or `List::perform`. Shortcuts page and palette show it. Tooltips and menus: `keys::label(Action::…)`; asking: `keys::pressed(ui, Action::…)`.
|
||||
- `app.open_settings(Page::…)`; `main.wish = Some(Wish::…)` for what only the window can do; `bridge.save_login(Place, Login, commands after it)`, `forget_login`. `app.paths` is None in tests: nothing is written or read then. First run shows while `desktop_colors` is None.
|
||||
|
|
|
|||
Loading…
Reference in a new issue