Repository navigation
feat(inbox): Show why a snoozed item woke - #3968
Merged
Merged
Conversation
When a time or an Event wakes a snooze, record why on the snooze and show it as a muted line on the woken item's Inbox row and card, such as "Woke: #3842 is merged". Only the viewer whose snooze woke sees it. Opening the item from the Inbox, acting on it, or snoozing it again clears it. Co-Authored-By: BYK <[email protected]>
Co-Authored-By: BYK <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Key the opened wake by its object, not the item id, so a later wake of the same item shows. A modified click on an item row title opens its owner, so it clears the wake too.
Contributor
|
26 screenshot changes — 18 changed · 8 added · 0 removed Review screenshots in Frameshift Show 12 more changed screenshots |
# Conflicts: # packages/junior-dashboard/src/client/inbox/InboxRow.tsx # packages/junior-dashboard/src/client/inbox/RowHoverActions.tsx
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 267660a. Configure here.
BYK
approved these changes
Nov 21, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

A snoozed Inbox item that wakes now says why, in a short muted line on its row and card: "Woke: #3842 is merged" or "Woke: snooze time reached". Only the person whose snooze woke sees it.
Record.
junior_inbox_snoozesgets a nullablewake_reasonjsonb (migration 0147):{ kind: "time" }or{ kind: "event", namespace, eventType, identifier }. It is set when a snooze settles aswoken:publishfires a subject-Event or named-resource trigger → the Event, its resource and its typeA trigger with the
resolveoutcome closes the item, and a manual Wake records nothing, so neither shows a reason.Show.
GET /api/inbox-itemsadds an optionalwaketo open items for the viewer:{ kind: "time" }or{ kind: "event", eventType, resource, phrase? }. The phrase comes from the Event catalog, the same phrase the Snooze dialog uses. The dashboard moveseventSentenceandsentenceCaseout ofSnoozeDialogintosnoozeSentences.ts, so the condition ("When #3842 is merged") and the reason ("Woke: #3842 is merged") use the same code. An Event with no phrase reads "Woke: on ".Clear. The reason clears when the viewer:
DELETE /api/inbox/snoozes/wakes. The open row keeps the line until it closes.POST /api/inbox-items/:id/actionsNotes for review
actions.test.tsandevidence.test.tsgo up by one statement. A page whose other reads issue no SQL also gains one serial round.design/inbox.mdstates the rule.Screenshots (mock data)
Inbox rows, one woken by an Event and one by time:
Open Conversation row, with the reason on the card of the item that woke:
via @BYK.
--
View Session [Sentry]