Skip to content

feat(threads): snooze threads and mute their notifications - #1064

Merged
nixuuu merged 2 commits into
devfrom
feat/snooze-threads
Nov 21, 2026
Merged

nixuuu merged 2 commits into
devfrom
feat/snooze-threads

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 21, 2026

Copy link
Copy Markdown
Member

Change

  • Add Snooze… to main and user-created side threads on web, desktop, and native mobile. Choose 1, 2, or 6 hours, the end of the local day, a custom date and time, or an indefinite snooze.
  • Keep snoozed threads and their side threads in a collapsed Snoozed section. They remain searchable and usable. Thread alerts are muted, and waking a thread does not replay alerts from its snooze.
  • Store the deadline on the thread's home gateway so it survives restarts. Wake and reschedule from the thread menu.

Verification

  • PostgreSQL schema, snooze and linked-computer integration tests, and the shared sidebar regression passed locally. Gateway, web, and mobile typechecks and scoped Oxlint passed. GitHub CI runs the full gate.
  • Chromium at desktop and phone widths in light and dark modes, with short, typical, and long thread names. Verified the timer presets, custom date and time, manual and automatic wake, and a completion while snoozed that stayed silent through wake. An awake thread still raised a completion alert.
  • Native Android development build on an emulator. Set a custom deadline, found the thread under the collapsed Snoozed section, reopened it, and used Wake thread. Expo ESLint reported five sidebar ref errors that also reproduce on the base revision.

Copy audit

Active menu → Snooze… opens the duration picker. Snoozed menu → Change snooze… or Wake thread makes the two outcomes explicit. The Snoozed heading names the list in text and the date picker labels the local time zone. Labels use sentence case, and errors give a retry action. Checked with short, typical, and long titles at desktop and phone widths.

@nixuuu
nixuuu enabled auto-merge (squash) November 21, 2026 10:20
@nixuuu
nixuuu merged commit 82782cd into dev Nov 21, 2026
16 checks passed
@nixuuu
nixuuu deleted the feat/snooze-threads branch November 21, 2026 10:31
nixuuu added a commit that referenced this pull request Nov 21, 2026
## Change

- Match the Snoozed header to Working in the shared web and desktop
sidebar, with a leading chevron and a count in parentheses.
- Animate each list as one disclosure. Its height follows the rendered
content through expansion, collapse, and rapid reversals, avoiding jumps
when rows are inserted or the animation ends. With reduced motion
enabled, the list toggles immediately.

## Verification

- Chromium with fixture data at 1280 px and 390 px. Checked opening,
closing, rapid reversals, fixed header positions, keyboard toggling, and
search restoring the Snoozed disclosure state. Exercised lists of 3 and
24 Working threads and 7 Snoozed threads, plus reduced motion on
desktop.
- Web typecheck, focused lint and formatting, and diff whitespace check
passed locally. Full verification remains with CI. The native Electron
window was outside the local runtime check.
- Copy audit (§8 of docs/copy.md) passed. `Snoozed · 7` → `Snoozed (7)`
matches `Working (3)` and keeps the section name and exact count. The
full button names and expanded states remain accessible. Checked one-
and two-digit counts at both widths.

Fixes: #1064
nixuuu added a commit that referenced this pull request Nov 22, 2026
## Changes

- Align Archived above the mobile sidebar footer when the thread list is
short. On longer lists, the archive follows the inbox in the same
virtualized list.
- Reduce the space above Snoozed from 24 to 8 dp and keep its 48 dp
touch target.
- Use the existing motion preset for changes to the Archived header
position.

## Verification

- Passed mobile typecheck, lint on the edited files, and `git diff
--check`.
- Checked the layout geometry in Yoga with short, long, expanded,
archive-only, and archive-free lists.
- Native visual and interaction checks are pending. The Android device
tool could not verify ownership of the emulator runtime.
- UI copy is unchanged. Repository-wide checks run in GitHub CI.

Fixes: #423
Fixes: #1064
nixuuu added a commit that referenced this pull request Nov 25, 2026
## Change

The Working and Snoozed lists lost their expanded state when Canopy
remounted the Threads sidebar after a trip to Bots.

- Save each section’s expanded state in the existing device and gateway
preferences on web, desktop, and mobile.
- Restore both choices after changing tabs or restarting the client.
Snoozed still opens for search, and toggling it during a search leaves
the saved choice intact.

Fixes: #1064

## Verification

- Chromium at 1320 px and at 390 px with touch. Checked both defaults,
expansion and collapse across Threads → Bots → Threads and reload, and
the temporary Snoozed state during search.
- Device-view integration tests, web and mobile typechecks, scoped lint
and formatting, and `git diff --check`.
- Android 16 emulator with the Canopy development client and a fixture
gateway. Verified both sections expanded and a mixed expanded/collapsed
state across tab switches and force-stop/relaunch.
- GitHub CI runs the repository-wide gate and selected builds.
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