diff --git a/Plans/03 Features and config/S042-nexus-utilities-services-reorg.md b/Plans/03 Features and config/S042-nexus-utilities-services-reorg.md new file mode 100644 index 0000000..f7aa253 --- /dev/null +++ b/Plans/03 Features and config/S042-nexus-utilities-services-reorg.md @@ -0,0 +1,36 @@ +# S042 — Nexus: hot-corner switch easy to find, Utilities gets service tools, missing settings rows + +> Category 03 Features and config · Model: Sonnet · Effort: medium · Depends on: — · Size: M · Human: no +> Files touched: crates/shell/src/nexus/mod.rs (add_niri_pages), assets/nexus/pages.json (generated by it), crates/core/src/config.rs only if a new key is truly needed, docs/AUDIT.md, docs/tests/S042-*.md + +## Goal +User feedback (2026-12-03): +1. The overview hot corner (niri addition, S020/S035; `overview_corner` in `crates/shell/src/wl.rs`) must stay, but the user wants it off and could not find how. It is already gated by `shell:overview.enabled` and per-corner `hoverTopLeft…` keys (Nexus page with "Enable overview"). Make it findable: a clearly worded row/sub ("Hot corners: open niri's overview from a screen corner"), search keywords (`hot corner`, `corner`, `overview`, `tap`), and the per-corner toggles visible on that page if they are not. Do not change the default (`enabled: true`, top-left on). +2. The Utilities page (`UtilitiesPage`) feels empty. Go through `ServicesPage` and move what is a user-facing tool rather than background tuning into Utilities: at least the "Discord Rich Presence" nav row (with its sub-page `ArpcPage`/whatever it is named, and its search `settings` entry) and any system action buttons/widgets on Services. Polling intervals, increments, visualiser input, GPU, lyrics backend stay in Services. Update both pages' `stack` and `settings` (search) lists so search still lands on the right page. +3. Features with no Nexus row: list config keys in `crates/core/src/config.rs` that the shell reads but no Nexus row sets (compare against `pages.json` keys). Add rows for the user-facing ones on the fitting page; note the skipped ones (internal/left out on purpose) in the test file. Never remove a feature for lack of a row. + +## Read +- This plan; last 3 entries of docs/PROGRESS.md. +- `crates/shell/src/nexus/mod.rs`: `add_niri_pages` and how rows/pages are added (grep first). +- `assets/nexus/pages.json`: `UtilitiesPage`, `ServicesPage`, the overview page, the `utilities` and `services` entries in the page list (grep `"key": "utilities"`). +- `crates/core/src/config.rs` structs, by grep. + +## Steps +- [ ] Hot-corner rows: wording, keywords, per-corner toggles; snapshot the page (`--nexus `) and look at it +- [ ] Move service tools (Rich Presence + system buttons) from Services to Utilities via `add_niri_pages`; stacks and search entries updated; snapshot both pages and search "rich presence" +- [ ] Config keys without rows: list in docs/tests/S042, add rows for user-facing ones +- [ ] `cargo build --release` and `cargo test --release` green (compile check; no fuzz run in this plan, note it in the test file for S038) +- [ ] docs/tests/S042-nexus-reorg.md (checks in words), AUDIT note, PROGRESS entry, INDEX line, commit `S042: …`, push `git push origin HEAD:main` + +## End criteria +- `grep -n "hot corner" assets/nexus/pages.json` shows the keywords; overview page snapshot shows the switch. +- `UtilitiesPage` lists Discord Rich Presence; `ServicesPage` no longer does; search for it opens Utilities. +- Build and unit tests green. + +## Pitfalls +- pages.json is generated by `add_niri_pages`: hand edits get overwritten. +- Runtime-built pages need `livepage::is_live` and `expand`. +- Never touch `~/.config/caelestia/shell.json`, the Shortcuts tab or Window Rules page. Never restart the live shell. + +## Handoff (→ docs/PROGRESS.md) +Where each moved row now lives; keys still without a row and why. diff --git a/Plans/INDEX.md b/Plans/INDEX.md index 939f57f..09a7da0 100644 --- a/Plans/INDEX.md +++ b/Plans/INDEX.md @@ -42,6 +42,7 @@ Tracker: https://claude.ai/artifact/U7N1biTWurWCSxkAn17xiz - [x] [S032 — Workspace right-click: open windows and live window actions](03%20Features%20and%20config/S032-workspace-window-menu.md) · Opus medium - [x] [S039 — Every app the user runs follows the desktop colours](03%20Features%20and%20config/S039-apps-follow-desktop-colours.md) · Opus medium - [x] [S040 — Default apps chosen in Nexus become the system defaults](03%20Features%20and%20config/S040-default-apps-to-mimeapps.md) · Opus medium +- [ ] [S042 — Nexus: hot-corner switch, Utilities gets service tools, missing rows](03%20Features%20and%20config/S042-nexus-utilities-services-reorg.md) · Sonnet medium ## 04 Installer and release