app: let the settings hide limit windows and give the app an icon #18

Merged
schmidt.florian merged 3 commits from 17-hide-limits-icon into master 2026-11-04 19:41:46 +01:00
Owner

Closes #17

What and why

The developer asked for two things on 2026-11-04: "Add an option to hide fable of claude in the settings. Create an App icon for it that windows can use."

Hidden limit windows.

  • Settings → Providers lists each provider's limit windows with a "Show" checkbox. Each provider's settings store its hidden windows by window series: limit name, length and label.
  • A hidden Codex week stays hidden when Codex moves it between :primary and :secondary.
  • A hidden window that is absent right now stays listed, so it can be shown again.
  • The panel drops hidden windows in one place, PanelViewModel.ApplySnapshot, before it renders or queries history. So the tiles, Week use per day, the window charts and the Resets section all lose them. Saving the settings re-renders the panel at once.
  • The popup gate in Pace.cs skips hidden windows.
  • The snapshot, the history and the Stream Deck plugin keep every window (D9).
  • Older settings files load with nothing hidden.

App icon.

  • The icon is a usage gauge in the provider colours on the dark surface. It replaces the default executable icon and the tray's runtime-drawn "T".
  • tools/icon/make_icon.py renders it into Assets/FinalToken.ico (16 to 256 px) and Assets/FinalToken.png.
  • The ICO is ApplicationIcon, and the window and tray icon on Windows. X11 uses the PNG.
  • New development-only dependency: Pillow 11.3.0, used only by the icon tool. The app gains no package.

Build environment. The Brotli advisory (CVE-2026-111497, published 2026-11-03) made NuGetAudit fail every build on SDK 10.0.402, which compiles in runtime 10.0.13. This machine now has SDK 10.0.403 with runtime 10.0.14, and global.json already rolls forward to it. The repository did not change for this. The Arch container for Linux builds needs a patched SDK too before its next build.

Decisions

  • D8: the new "Hidden windows" and "Icon" items (be9951f).
  • D7: hidden windows use the window series.
  • D9: the snapshot is unchanged.

How it was tested

On 7631d80, with SDK 10.0.403, in the worktree root:

  • dotnet build FinalToken.slnx -c Release: 0 warnings, 0 errors.
  • dotnet test --solution FinalToken.slnx -c Release: 393 total, 0 failed.
  • python -B tools/docs/check_docs.py: 0 errors.
  • python -B tools/icon/test_make_icon.py: OK. It checks every ICO size and that the files are reproduced byte for byte.
  • python -B tools/test_publish.py: OK.
  • git diff --check: clean.
  • The icon-only commit 52b67a6 builds the App alone: 0 warnings.

New tests:

  • Core: settings round trip, an old file without the property, a hidden Codex week across a slot move, no popup for a hidden window.
  • App: the settings list the snapshot's windows plus an absent hidden one, and their checkboxes save the right settings without changing the caller's value. A panel with Fable hidden has no Fable tile, selector entry, window chart or reset card, keeps the all-models week, and keeps the D9 week fields. Both windows have an icon.

By eye:

  • headless screenshots of the settings Providers card and the panel top with Fable hidden, dark and light;
  • an icon contact sheet at 16, 24, 32, 48 and 256 px on light and dark backgrounds;
  • the icon extracted from a NativeAOT-published FinalToken.exe: all 9 sizes match the source.

Not checked: the icon and window filter in the running app (comes with the rebuild after merge), and Linux.

Closes #17 ## What and why The developer asked for two things on 2026-11-04: "Add an option to hide fable of claude in the settings. Create an App icon for it that windows can use." **Hidden limit windows.** - Settings → Providers lists each provider's limit windows with a "Show" checkbox. Each provider's settings store its hidden windows by window series: limit name, length and label. - A hidden Codex week stays hidden when Codex moves it between `:primary` and `:secondary`. - A hidden window that is absent right now stays listed, so it can be shown again. - The panel drops hidden windows in one place, `PanelViewModel.ApplySnapshot`, before it renders or queries history. So the tiles, Week use per day, the window charts and the Resets section all lose them. Saving the settings re-renders the panel at once. - The popup gate in `Pace.cs` skips hidden windows. - The snapshot, the history and the Stream Deck plugin keep every window (D9). - Older settings files load with nothing hidden. **App icon.** - The icon is a usage gauge in the provider colours on the dark surface. It replaces the default executable icon and the tray's runtime-drawn "T". - `tools/icon/make_icon.py` renders it into `Assets/FinalToken.ico` (16 to 256 px) and `Assets/FinalToken.png`. - The ICO is `ApplicationIcon`, and the window and tray icon on Windows. X11 uses the PNG. - **New development-only dependency:** Pillow 11.3.0, used only by the icon tool. The app gains no package. **Build environment.** The [Brotli advisory](https://github.com/advisories/GHSA-p3jp-9v83-76w9) (CVE-2026-111497, published 2026-11-03) made `NuGetAudit` fail every build on SDK 10.0.402, which compiles in runtime 10.0.13. This machine now has SDK 10.0.403 with runtime 10.0.14, and `global.json` already rolls forward to it. The repository did not change for this. The Arch container for Linux builds needs a patched SDK too before its next build. ## Decisions - D8: the new "Hidden windows" and "Icon" items (`be9951f`). - D7: hidden windows use the window series. - D9: the snapshot is unchanged. ## How it was tested On `7631d80`, with SDK 10.0.403, in the worktree root: - `dotnet build FinalToken.slnx -c Release`: 0 warnings, 0 errors. - `dotnet test --solution FinalToken.slnx -c Release`: 393 total, 0 failed. - `python -B tools/docs/check_docs.py`: 0 errors. - `python -B tools/icon/test_make_icon.py`: OK. It checks every ICO size and that the files are reproduced byte for byte. - `python -B tools/test_publish.py`: OK. - `git diff --check`: clean. - The icon-only commit `52b67a6` builds the App alone: 0 warnings. New tests: - **Core:** settings round trip, an old file without the property, a hidden Codex week across a slot move, no popup for a hidden window. - **App:** the settings list the snapshot's windows plus an absent hidden one, and their checkboxes save the right settings without changing the caller's value. A panel with Fable hidden has no Fable tile, selector entry, window chart or reset card, keeps the all-models week, and keeps the D9 week fields. Both windows have an icon. By eye: - headless screenshots of the settings Providers card and the panel top with Fable hidden, dark and light; - an icon contact sheet at 16, 24, 32, 48 and 256 px on light and dark backgrounds; - the icon extracted from a NativeAOT-published `FinalToken.exe`: all 9 sizes match the source. Not checked: the icon and window filter in the running app (comes with the rebuild after merge), and Linux.
schmidt.florian added the type/featuretype/decision labels 2026-11-04 19:36:42 +01:00
schmidt.florian self-assigned this 2026-11-04 19:36:42 +01:00
schmidt.florian added 3 commits 2026-11-04 19:36:43 +01:00
The developer asked for an option to hide Claude's Fable week, which they do
not use, and for an app icon that Windows can show. D8 now says what a hidden
window leaves out and what it keeps, and that one icon serves the executable,
the windows and the tray.

Refs #17
Windows showed the default executable icon, and the tray drew a plain "T" at
run time. A usage gauge in the provider colours now serves all three (D8).
tools/icon/make_icon.py renders it with Pillow, a development-only
dependency, into a multi-size ICO for Windows and a PNG for X11. Its test
checks every size and that a fresh run reproduces the committed files.

Refs #17
The developer does not use Claude's Fable week and wants it out of the
panel. Each provider's settings now hold hidden windows by window series,
so a hidden Codex week stays hidden across slot moves (D7, D8). The panel
drops them in one place before it renders and queries history, and a
hidden window gives no popups. The snapshot and history keep every window
(D9). Older settings files load with nothing hidden.

Refs #17
Author
Owner

Agent review: pass on 7631d8096c

Blocking

None.

Notes

  • Linux/X11 icon loading and the icon in the installed Windows taskbar/tray were not exercised in this review. The checks below cover the Windows build, embedded icon loading in headless views, and the generated icon assets.

Checked

Reviewed head 7631d8096c72754d1ea59c24fc42cf7126b58e5c in a separate detached worktree, ../FinalToken-wt/review-18, against origin/master (82fece85f5e44f85e8e9f8a7be55a5b40e34f335). No earlier agent reviews were present.

Read the whole diff, PR body, issue #17 and its comments, root and touched-project AGENTS.md files, requirements R1-R7, and the relevant decisions, particularly D1, D5-D9 and D12. Checked series identity across Codex slot moves, old and malformed settings, save isolation, immediate history retirement, panel filtering, popup suppression, preserved source snapshots and totals, and shared icon wiring. The decision edits have the required type/decision label.

Ran from the review worktree root on Windows with .NET SDK 10.0.403:

  • dotnet build FinalToken.slnx -c Release: passed, 0 warnings and 0 errors.
  • dotnet test --solution FinalToken.slnx -c Release: 393 passed, 0 failed, 0 skipped.
  • python -B tools/docs/check_docs.py: 0 errors.
  • python -B tools/icon/test_make_icon.py: 2 tests passed, including all nine ICO sizes and byte-for-byte regeneration.
  • python -B tools/test_publish.py: 1 test passed.
  • git diff --check: clean.

Inspected the generated hidden-settings-providers and hidden-panel-top screenshots in both Dark and Light themes, plus the committed PNG icon. No clipping or hidden Fable content was found in those changed views. The headless tests also exercise removal from window charts and reset cards, absent hidden settings entries, and showing windows again. No production code was changed. A NativeAOT publish and a live installed-app check were not repeated by this reviewer.

**Agent review: pass** on 7631d8096c72754d1ea59c24fc42cf7126b58e5c ## Blocking None. ## Notes - Linux/X11 icon loading and the icon in the installed Windows taskbar/tray were not exercised in this review. The checks below cover the Windows build, embedded icon loading in headless views, and the generated icon assets. ## Checked Reviewed head `7631d8096c72754d1ea59c24fc42cf7126b58e5c` in a separate detached worktree, `../FinalToken-wt/review-18`, against `origin/master` (`82fece85f5e44f85e8e9f8a7be55a5b40e34f335`). No earlier agent reviews were present. Read the whole diff, PR body, issue #17 and its comments, root and touched-project AGENTS.md files, requirements R1-R7, and the relevant decisions, particularly D1, D5-D9 and D12. Checked series identity across Codex slot moves, old and malformed settings, save isolation, immediate history retirement, panel filtering, popup suppression, preserved source snapshots and totals, and shared icon wiring. The decision edits have the required type/decision label. Ran from the review worktree root on Windows with .NET SDK 10.0.403: - `dotnet build FinalToken.slnx -c Release`: passed, 0 warnings and 0 errors. - `dotnet test --solution FinalToken.slnx -c Release`: 393 passed, 0 failed, 0 skipped. - `python -B tools/docs/check_docs.py`: 0 errors. - `python -B tools/icon/test_make_icon.py`: 2 tests passed, including all nine ICO sizes and byte-for-byte regeneration. - `python -B tools/test_publish.py`: 1 test passed. - `git diff --check`: clean. Inspected the generated hidden-settings-providers and hidden-panel-top screenshots in both Dark and Light themes, plus the committed PNG icon. No clipping or hidden Fable content was found in those changed views. The headless tests also exercise removal from window charts and reset cards, absent hidden settings entries, and showing windows again. No production code was changed. A NativeAOT publish and a live installed-app check were not repeated by this reviewer.
schmidt.florian merged commit c02829e2e1 into master 2026-11-04 19:41:46 +01:00
schmidt.florian deleted branch 17-hide-limits-icon 2026-11-04 19:41:48 +01:00
Sign in to join this conversation.