Skip to content

fix(dashboard): Show toasts only for actions, errors, and unseen results - #3790

Merged
BYK merged 7 commits into
mainfrom
fix/dashboard-quiet-toasts
Nov 19, 2026
Merged

BYK merged 7 commits into
mainfrom
fix/dashboard-quiet-toasts

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

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.md now states this.

Audit

20 call sites show a toast: 12 kept, 2 changed, 6 dropped.

Toast Where Result Why
You answered … / You replied review-desk/inboxRowActs.ts Dropped The row leaves at once, and the Conversation row says the answer.
Automation saved pages/automations/AutomationEditor.tsx, inbox/pages/automations/AutomationEditor.tsx Dropped (2) The editor returns to the Automation, which shows the saved values.
Automation deleted pages/automations/AutomationDeleteDialog.tsx, inbox/pages/automations/AutomationDeleteDialog.tsx Dropped (2) The dialog was the confirmation, and the row is gone from the list.
Workspace deleted pages/system/WorkspaceDeleteDialog.tsx Dropped Same: confirmed in the dialog, gone from the list.
Automation paused / resumed / still blocked pages/automations/AutomationActions.tsx, pages/automations/useAutomationLifecycle.ts Changed (2) The state badge and the Pause/Resume button show the new state. Only "Automation is still blocked" stays: the resume did not take, and the page cannot say why.
Conversation archived + Undo conversations/conversationActionToasts.ts Kept Undo.
Restoring… same Kept The Undo in progress.
Could not restore + Undo same Kept Error with an action.
Could not archive / restore / pin / unpin / rename / reorder / update subscription / change Slack updates showActionError in the same file, used by row menus, lists, the sidebar, and the Inbox nav Kept Errors. Pin and unpin offer Retry.
Could not dismiss / send your answer / take it + Retry review-desk/inboxRowActs.ts Kept Error with Retry.
Dismissed N FYIs + Undo review-desk/useInboxSweep.tsx Kept Undo.
Could not dismiss N FYIs + Retry same Kept Error with Retry.
Push notifications + Turn on / Set up notifications/pushNotificationsTip.tsx Kept Action.
Turning on… same Kept The action in progress.
Push notifications are on + Send a test / Settings same Kept Actions in the description.
Could not turn on push notifications + Settings same Kept Error with an action.
Feedback sent inbox/components/FeedbackDialog.tsx Kept The sheet closes, and nothing on screen shows that the feedback went out. It now closes sooner (see below).

The toast/no-actionless-success Oxlint rule (packages/junior-dashboard/oxlint/toast.ts) enforces the rule in src/client: it fails a type: "success" toast with no actionProps. "Feedback sent" and "Push notifications are on" carry an allow comment that says why.

viewerAnswerLine had no other user, so it is gone.

Phone toasts

Below the dashboard's md breakpoint (the mobile shell):

  • A toast is one line: the icon, the title, the action, and Close. The padding is smaller, so a toast is about half as tall as before.
  • A plain-text description does not show. A description that holds links, such as the push notification tip's Settings, still shows, because those links are actions.
  • A toast sits at the top, under the safe-area inset, and swipes up (or right) to dismiss. At the bottom it was close to the composer, its Send button, and the keyboard, so a tap meant for them could land on the toast. While a toast shows, it covers the header row; it is short-lived and swipes away. When the keyboard pans the page on iOS, toasts follow the pan through --dashboard-viewport-offset-top, which useMobileViewportHeight now 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 sm to md so 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

Dark Light
answer mobile dark answer mobile light

Undo toast on a phone, in a Conversation: now at the top, clear of the composer

Dark Light
sweep composer mobile dark sweep composer mobile light

Archive Undo toast on a phone

Dark Light
archive mobile dark archive mobile light

Desktop: no answer toast, Undo toasts the same as before

Dark Light
answer desktop dark answer desktop light
sweep desktop dark sweep desktop light
archive desktop dark archive desktop light

via @BYK.

--

View Session [Sentry]

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]>
@sentry-junior
sentry-junior Bot requested a review from BYK November 19, 2026 15:17
@vercel

vercel Bot commented Nov 19, 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 19, 2026 6:47pm UTC

Request Review

@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 19, 2026

@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.

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 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.

  1. We should find a way to enforce this with oxlint
  2. 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
BYK enabled auto-merge (squash) November 19, 2026 16:58
sentry-junior Bot and others added 2 commits November 19, 2026 17:02
…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]>

@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 19a75ce. Configure here.

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

390 screenshot changes — 0 changed · 390 added · 0 removed

Review screenshots in Frameshift

… 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
@BYK
BYK merged commit 386ca1c into main Nov 19, 2026
50 checks passed
@BYK
BYK deleted the fix/dashboard-quiet-toasts branch November 19, 2026 18:58
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

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

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant