Repository navigation
feat(inbox): Snooze until an Event on a pull request or issue the viewer names - #3877
Conversation
…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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
BYK
left a comment
There was a problem hiding this comment.
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.
|
28 screenshot changes — 22 changed · 6 added · 0 removed Review screenshots in Frameshift Show 12 more changed screenshots4 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
left a comment
There was a problem hiding this comment.
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
|
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 |
…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.
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
left a comment
There was a problem hiding this comment.
Okay VERY close.
- 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
- 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
ANDetc 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.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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 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". |

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
resourceUrl. The plugin that owns the page's Events reads it withresourceForUrl, 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:viewerCanViewPluginLinkuses the link type'scanViewandresolve, 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.GET /api/inbox/snoozes/resource?url=returns the Events of a page, or 404.resolvestill needs a viewer who can dismiss the item.INBOX_SNOOZE_MAX_TRIGGERS(30) triggers, so every Event of one page fits.Event phrases
phrase: how the Event reads after its resource's name, such asis mergedorgets a new comment. Core stays free of provider wording.GET /resourceand an item subject'sresource) carry them asphrases.Dashboard
#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 thatANDcan join them later.Demo, from mock data:
via @BYK.
--
View Session [Sentry]