8000 feat(timeline): snooze a source or kind until a time you pick by adeelahmad · Pull Request #668 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content

feat(timeline): snooze a source or kind until a time you pick - #668

Merged
adeelahmad merged 1 commit into
mainfrom
claude/project-thread-pf8kii
Oct 19, 2026
Merged

adeelahmad merged 1 commit into
mainfrom
claude/project-thread-pf8kii

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Description

Before: the mute menu on a timeline item could snooze a source or kind for an hour, a day or a week. Any other end time meant using the API, MCP or the assistant.

After: the menu also has Mute Work Gmail until… and Mute Email received items until…. Each opens a small dialog with the time already set to nine tomorrow morning and the field focused, so Enter mutes. A time that has already passed says so and mutes nothing. The toast reads "Muted Work Gmail until ", with Undo.

How: it is frontend only. The API already takes any until. useMutes().mute now takes a snooze span or a Date, and MuteOpts gains until. localInput and tomorrowMorning in model.ts build the default value in the browser's own time zone.

Motivation and Context

This is a refine-later item of the activity stream design: "a snooze to a time you pick from the page (the API takes any until)".

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change; ! in the title)

Checklist:

  • The title is a Conventional Commit.
  • My code follows the code style of this project (make hooks checks it on commit).
  • I added or updated tests.
  • My change requires documentation updates, and I have updated docs/ accordingly.
  • Users need more than the title to understand it, so I wrote it as a fragment in changelog.d/ (timeline-snooze-until.md).

Done questions (AGENTS.md)

  • Goal: any snooze end from the page; merged on green CI.
  • Agents: they already set any until through the API, MCP and the assistant.
  • Zero setup: n/a, UI only.
  • Fewest clicks: the default is filled in (nine tomorrow) and the field is focused, so Enter mutes; Undo is on the toast.
  • Configurable: n/a, no new setting.
  • Light: no new dependency; it uses the native datetime input.
  • Private and secure: no new surface.
  • Cost: no model call.
  • User decides: the one-click mute and the existing snoozes are unchanged.
  • Upgrades: n/a, nothing stored changes shape.
  • Honest: docs/timeline.md describes the menu item.
  • Tested and documented: jest tests a snooze can end at a time you pick, nine tomorrow to start with, and Enter mutes and a snooze to a time you pick starts at nine tomorrow, in the browser's own time; docs, requirements.md and changelog.d are updated.
  • Open standards: n/a.
  • Reported: the result goes back in the thread. Refine later: a muted actor's own line in the Filters.
  • Reuse: the mute API, Dialog, useMutes.

CI on the PR decides the merge.


Generated by Claude Code

AA91
@adeelahmad
adeelahmad merged commit a0ec7be into main Oct 19, 2026
10 checks passed
@adeelahmad
adeelahmad deleted the claude/project-thread-pf8kii branch October 19, 2026 04:29
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.

2 participants

0