Skip to content

feat(notices): one switch for notices, and stop watching the disk - #86

Merged
fylorn merged 1 commit into
devfrom
feat/notice-mode
Sep 21, 2026
Merged

fylorn merged 1 commit into
devfrom
feat/notice-mode

Conversation

@fylorn

@fylorn fylorn commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Settings had a dropdown for each of eight kinds of notice. There is now one choice: system notification / in app only / off, laid out like Appearance (three fixed options, so three buttons rather than a dropdown).

Notices

  • The mode lives in app.json next to the language, theme and update check. notice-prefs.json is no longer read; nothing migrates it, since almost nobody has one.
  • Which kinds interrupt stays the bus's call rather than a setting. The only kind that used to default to in-app only, an unreachable upstream, is now an info-level notice: listed, never popped. A fallback usually catches it, and the breaker opens and closes with the traffic.
  • Off records nothing, withdraws whatever is open (in the list and in Notification Center) and hides the toolbar bell, which would otherwise sit there permanently empty.
  • A notice still in its one-minute hold now checks the mode when the hold ends. Before this, switching away from system notifications during the hold did not stop it popping.
  • The list's "Show this kind in app only" link is gone along with the kinds. Notice has no category; a clicked notice that is no longer listed lands on the page for its key's kind, and macOS groups notifications by that kind too.
  • Commands: notice_prefs / set_notice_pref → notice_mode / set_notice_mode, which saves before it applies and emits notice-mode-changed for the bell.

Disk

Pins core v0.16.0 (ThinkWatchProject/ThinkWatch-Core#77), which stops watching the free space on the disk. That is the operating system's job; the gateway already bounds its own footprint by retention. So these go too:

  • the low-disk notice,
  • the overview's low-disk banner. StorageStatus now carries only recording, and the banner remains for recording that never started,
  • the low-disk reason in the request drawer's "not saved" tip, which now just says the record is past its retention period.

The READMEs no longer promise a per-kind setting.

Checked

  • cargo fmt --check, clippy -D warnings and cargo test against v0.16.0. Four new bus tests cover off, in-app only, withdrawing on off, and a switch made during the hold. The default-view mapping also has a test.
  • pnpm typecheck, pnpm test.
  • An isolated preview with mocked IPC, using real clicks: switching to Off removes the bell and back to in-app brings it back; a failed save reverts the selection and shows the error; English labels stay on one line; the popover rows no longer carry the per-kind link.

🤖 Generated with Claude Code

Settings had a dropdown for each of eight kinds of notice. It is now one
choice, system notification / in app only / off, kept in app.json with
the other app settings; notice-prefs.json is no longer read.

Which kinds interrupt is the bus's call, not a setting. An unreachable
upstream was the one kind that defaulted to in-app only, because a
fallback usually catches it and the breaker opens and closes with the
traffic; it is now an info-level notice, listed but never popped.

- Off records nothing, withdraws what is open, and hides the bell.
- A notice still in its one-minute hold looks at the mode when the hold
  ends, so switching to in-app only during the hold is honoured.
- The list's "Show this kind in app only" link goes with the kinds, and
  macOS groups notifications by the key's kind instead.

Core v0.16.0 no longer watches free disk space (ThinkWatch-Core#77): the
low-disk notice, the overview's low-disk banner and the low-disk reason in
the request drawer's "not saved" tip go with it. `StorageStatus` now says
only whether recording started, and the banner stays for that case.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@fylorn
fylorn merged commit 4b7027a into dev Sep 21, 2026
2 checks passed
@fylorn
fylorn deleted the feat/notice-mode branch September 21, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant