Repository navigation
fix(dashboard): Show toasts only for actions, errors, and unseen results - #3790
Merged
Merged
Conversation
A toast now shows only when it carries an action, reports an error, or reports a result the screen does not show. Answers, saves, deletes, and pause or resume no longer confirm a change that is already visible. On a phone, a toast is one line: the title and its buttons, with less padding. It sits above a docked composer, which publishes its height. A success toast without an action closes after 2.5 seconds. Co-Authored-By: BYK <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Publish the dock height from a callback ref, so a dock that mounts or unmounts without a change of its docked state still updates the toast offset.
BYK
approved these changes
Nov 19, 2026
BYK
left a comment
Member
There was a problem hiding this comment.
- We should find a way to enforce this with oxlint
- We should consider moving the toasts to the top on mobile as it is too close to the composer and the keyboard, potentially triggering accidental clicks.
BYK
enabled auto-merge (squash)
November 19, 2026 16:58
…oasts Co-Authored-By: BYK <[email protected]>
…ss toasts On a phone, toasts now sit at the top under the safe-area inset and swipe up to dismiss, away from the composer and the keyboard. This drops the composer dock height tracking. The toast/no-actionless-success Oxlint rule fails a success toast with no action. Feedback sent and the push tip carry an allow comment. Co-Authored-By: BYK <[email protected]>
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 19a75ce. Configure here.
Contributor
|
390 screenshot changes — 0 changed · 390 added · 0 removed |
… page On iOS, focusing the composer pans the visual viewport. The shell follows the pan through --dashboard-viewport-offset-top, but toasts portal outside the shell. Publish the offset on the root element too, and add it to the top of the phone toast viewport. Co-Authored-By: BYK <[email protected]>
…oasts # Conflicts: # packages/junior-dashboard/.oxlintrc.json
22 tasks done
dcramer
added a commit
that referenced
this pull request
Nov 21, 2026
…tion for design doc changes (#3951) Two feature PRs added rules to design docs that cover a different system. Nobody reviewed the design intent. This removes both, and adds an `AGENTS.md` rule so agents stop doing it. The product behavior stays the same. - `design/child-agents.md`: #3935 added a rule about which To-dos a child can close, and when core closes the rest. That is To-dos behavior, not a child agent goal or rule. It also names a prompt marker (`<todo-delta>`), which the design file contract excludes. - `design/inbox-stacks.md`: #3790 added a toast rule for the whole dashboard, including toast placement on a phone. That is not about Inbox stacks. The row rule "a toast offers Retry" stays, because it is about Inbox rows. - `AGENTS.md`: a new Rules row. An agent adds, changes, or removes a line in `design/` only after the person it works for confirms that exact text and its intent, and never as part of other work. Only review enforces it. <!-- junior-request-attribution:start --> via @dcramer. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0CHB3YHES2%3A1795287762.513609 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC0CHB3YHES2%3A1795287762.513609) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0CHB3YHES2%3A1795287762.513609/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: David Cramer <[email protected]>
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.

Toasts on a phone were large, and many only repeated what the screen already showed, such as "You answered Hold" after the answered row left the Inbox.
Rule: a toast shows only when it carries an action (Undo, Retry, Open), reports an error, or reports a result that the screen does not show. A confirmation of a change that is already visible gets no toast.
design/inbox.mdnow states this.Audit
20 call sites show a toast: 12 kept, 2 changed, 6 dropped.
review-desk/inboxRowActs.tspages/automations/AutomationEditor.tsx,inbox/pages/automations/AutomationEditor.tsxpages/automations/AutomationDeleteDialog.tsx,inbox/pages/automations/AutomationDeleteDialog.tsxpages/system/WorkspaceDeleteDialog.tsxpages/automations/AutomationActions.tsx,pages/automations/useAutomationLifecycle.tsconversations/conversationActionToasts.tsshowActionErrorin the same file, used by row menus, lists, the sidebar, and the Inbox navreview-desk/inboxRowActs.tsreview-desk/useInboxSweep.tsxnotifications/pushNotificationsTip.tsxinbox/components/FeedbackDialog.tsxThe
toast/no-actionless-successOxlint rule (packages/junior-dashboard/oxlint/toast.ts) enforces the rule insrc/client: it fails atype: "success"toast with noactionProps. "Feedback sent" and "Push notifications are on" carry an allow comment that says why.viewerAnswerLinehad no other user, so it is gone.Phone toasts
Below the dashboard's
mdbreakpoint (the mobile shell):--dashboard-viewport-offset-top, whichuseMobileViewportHeightnow also publishes on<html>.On every size, a success toast with no action closes after 2.5 seconds instead of 4. Errors and warnings keep 4 seconds, so there is time to read them. The toast placement switches from
smtomdso it follows the same breakpoint as the shell. Desktop otherwise does not change.Screenshots
Mock data, before on the left, after on the right.
Answer on a phone: no toast
Undo toast on a phone, in a Conversation: now at the top, clear of the composer
Archive Undo toast on a phone
Desktop: no answer toast, Undo toasts the same as before
via @BYK.
--
View Session [Sentry]