Skip to content

feat(inbox): Snooze until an Event on a pull request or issue the viewer names - #3877

Merged
BYK merged 8 commits into
mainfrom
feat/snooze-named-resource
Nov 20, 2026
Merged

BYK merged 8 commits into
mainfrom
feat/snooze-named-resource

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

A snooze could only wait on Events of the item's own subject, so a card with no subject, or a PR card that depends on another PR, could not wake when that other work moved. Now a snooze can wait on Events of any pull request or issue the viewer can see, on a time, or on both. Builds on #3851.

API

  • A snooze trigger takes an optional resourceUrl. The plugin that owns the page's Events reads it with resourceForUrl, and watchability is checked the same way as for a Watch. The plugin's link type must also let the viewer see the page now and read an object there: viewerCanViewPluginLink uses the link type's canView and resolve, never the web page card. For GitHub, that is the viewer's linked login plus repository permission, and the pull request or issue must exist. Without a URL, a trigger waits on each item's subject, as before.
  • A page the viewer cannot see, a missing page, or one without Events fails the snooze with 400.
  • New GET /api/inbox/snoozes/resource?url= returns the Events of a page, or 404.
  • A trigger with a named page applies to every item in the row. resolve still needs a viewer who can dismiss the item.
  • One snooze takes up to INBOX_SNOOZE_MAX_TRIGGERS (30) triggers, so every Event of one page fits.

Event phrases

  • A plugin Event declaration can set phrase: how the Event reads after its resource's name, such as is merged or gets a new comment. Core stays free of provider wording.
  • The GitHub plugin sets phrases for its pull request and issue Events. The snooze resource payloads (GET /resource and an item subject's resource) carry them as phrases.

Dashboard

  • The Snooze menu offers 15 and 30 minutes, then the other times, then Custom….
  • Custom… opens one dialog for a time, conditions, or both. The first of them ends the snooze.
  • Conditions are built like Sentry alert conditions: Add condition adds a row with a page and one of its Events, such as "This pull request · is merged". A row starts on the item's own subject; on an item with no subject, it opens the page search at once. The page button opens the same search as the composer's # menu, which also takes a pasted pull request or issue link. Wake or Dismiss applies to every condition, and any of them ends the snooze. Rows are a list so that AND can join them later.
  • The search floats over the dialog, an Event select keeps its size while its link loads, and the dialog is pinned to the top, so it grows down without jumping.
  • A link that the viewer can't snooze on shows an error, and its Event select stays off.
  • The dialog loads on first use, so the Inbox bundle stays about the same size.

Demo, from mock data:

Custom snooze demo

Dark Light
Desktop: menu
Desktop: conditions on the row's PR
Desktop: PR search
Desktop: time and another PR
Mobile: the row's PR and a pasted issue

via @BYK.

--

View Session [Sentry]

…wer names

A snooze trigger takes an optional resourceUrl. The plugin that owns the
page's Events reads it with resourceForUrl, and the page's link type must
let the viewer see it now. Without a URL the trigger waits on each item's
subject, as before. GET /api/inbox/snoozes/resource lists the Events of a
page for the menu.

The snooze menu offers Event… on every row, with a field to paste a pull
request or issue link.
@sentry-junior
sentry-junior Bot requested a review from BYK November 20, 2026 19:37
@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 20, 2026 9:48pm UTC

Request Review

@github-actions github-actions Bot added the risk: high PR risk score: high label Nov 20, 2026

@BYK BYK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not the best UX is it? I feel like this deserves a modal pop up, a typing selector for PRs etc like we just did in the Composer recently etc.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

28 screenshot changes — 22 changed · 6 added · 0 removed

Review screenshots in Frameshift

Automation Run Details · Desktop
Automation Run Details · Desktop
Changed
Automation Skill Editor · Desktop
Automation Skill Editor · Desktop
Changed
Automation Skill Editor · Mobile
Automation Skill Editor · Mobile
Changed
Automations Runs Filters · Desktop
Automations Runs Filters · Desktop
Changed
Conversation Attachment Zoom · Desktop
Conversation Attachment Zoom · Desktop
Changed
Conversation Attachment Zoom · Mobile
Conversation Attachment Zoom · Mobile
Changed
Show 12 more changed screenshots
Conversation Pending Attachment · Desktop
Conversation Pending Attachment · Desktop
Changed
Conversation Pending Attachment · Mobile
Conversation Pending Attachment · Mobile
Changed
Conversation Question · Desktop
Conversation Question · Desktop
Changed
Conversation Question Answered · Desktop
Conversation Question Answered · Desktop
Changed
Conversation Question Light · Desktop
Conversation Question Light · Desktop
Changed
Conversation Question Typed · Desktop
Conversation Question Typed · Desktop
Changed
Conversations Pinned · Desktop
Conversations Pinned · Desktop
Changed
Conversations Pinned Light · Desktop
Conversations Pinned Light · Desktop
Changed
Inbox Snooze · Desktop
Inbox Snooze · Desktop
Changed
Inbox Snooze Event · Desktop
Inbox Snooze Event · Desktop
Changed
Inbox Snooze Event Light · Desktop
Inbox Snooze Event Light · Desktop
Changed
Inbox Snooze Event Menu · Desktop
Inbox Snooze Event Menu · Desktop
Changed

4 more changed screenshots in Frameshift.

… search

Event… opens a dialog in place of the menu panel. First pick what to
watch: the row's own subject, a pull request from the same search as the
composer's # menu, or a pasted pull request or issue link. Then pick its
Event.

@BYK BYK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better but not sure if it is the best. I need a video demonstration of this and I think with this modal UI, I should be able to select multiple events and we should be using the same modal for custom time-based snoozes. I keep reaching for a 15m or 30m option but it may also be the lack of "when this happens on another PR" etc

@BYK

BYK commented Nov 20, 2026

Copy link
Copy Markdown
Member

Oh and we should make event names read more naturally, even put the selected item in there like a sentence like "When ... PR X ... " etc

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

…log lazily

A link type can let a viewer see a missing pull request when they can see
its repository. No Event comes from such a page, so a snooze on it would
never wake. The named page must also resolve to an object.

The Event dialog and its pull request search now load on first use, which
keeps the Inbox bundle within its baseline.
Custom… now opens one dialog in place of the menu panel and the separate
Event… dialog. It takes a date and time, any number of Events on the
row's subject or on a pull request or issue that the viewer finds or
pastes, or both. The first of them ends the snooze. The menu also offers
15 and 30 minutes. Change focuses the search again.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

A plugin can now say how each Event reads after its resource name, such
as "is merged". The GitHub plugin does so for pull request and issue
Events, and the custom snooze dialog lists each Event as a sentence,
such as "When #3842 is merged".
The custom snooze dialog lets a person check every Event of a page, and a
GitHub pull request has 13, but the API took at most 10 triggers.

@BYK BYK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay VERY close.

  1. In the video the modal heigh suddenly gets much smaller and then bigger, what's going on there? We should avoid these kinds of jumps if possible
  2. Listing every single event with a checkbox is a bit noisy and untenable. I'd rather make this a builder like Sentry's alert conditions. This should also allow us to add joining with AND etc in the future. I guess this may also lead us to invent a syntax for this but that's for later.

Each condition picks a page and one of its Events, like Sentry alert
conditions, instead of a checkbox for every Event of one page. The page
search floats over the dialog, rows keep their size while a link loads,
and the dialog stays pinned to the top, so it no longer jumps.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit e427e90. Configure here.

The pinned dialog kept the default desktop max height, so a long
condition list pushed Snooze and Cancel below the screen.
@BYK
BYK enabled auto-merge (squash) November 20, 2026 21:50
@BYK
BYK merged commit 12718cd into main Nov 20, 2026
54 checks passed
@BYK
BYK deleted the feat/snooze-named-resource branch November 20, 2026 22:00
@sentry-junior

sentry-junior Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

@BYK new demo, from mock data: https://junior-prod.sentry.dev/public/artifacts/0bc44b99-1bdc-45fc-a36a-0b44e57cf614.gif

It opens Custom…, finds #3842 and picks "is merged" ("When #3842 is merged"), then pastes an issue link and picks "is closed".
It snoozes, shows the row in Snoozed, then shows the row back in the Inbox once the PR merges (the wake is simulated in the mock data).

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 07cefbd4 Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant