Skip to content

fix(dashboard): Ask before a reply drops unsent review item answers - #2536

Merged
BYK merged 1 commit into
mainfrom
fix/dashboard-unsent-review-answers
Nov 2, 2026
Merged

BYK merged 1 commit into
mainfrom
fix/dashboard-unsent-review-answers

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Fixes #2507.

A dashboard message closes the open action items that it answers (closeReviewItemsAnsweredByReply, from #2491). Answers that the person picked or typed in the item form, but did not send, were lost without a warning. The picks are local state in UserInputForm, so the composer did not know about them.

What changes

  • UserInputForm reports when its form has unsent input (onUnsentChange). A button answer sends on click, so it never has unsent input.
  • review-desk/UnsentAnswers.tsx tracks these forms for one Conversation. An item counts only when a message from the viewer would close it. This uses the same rule as the server: an open action item that the agent added in this Conversation, not assigned to Everyone, and the viewer can act on it.
  • ConversationComposer takes an optional confirmSubmit. When it returns a promise, the send waits for the answer, and the draft stays if the answer is no. Without unsent input, the send goes at once, as before.
  • The reply footer shows an alert dialog: "Send without your answers?". Go back (also Escape) keeps the draft and the picks. Send message sends the reply as before, so the reply-closes-item decision from Review desk second pass: one way to ask a person, and every scenario lands on the desk #2488 does not change.

The review desk page and the item detail are outside a Conversation, so they do not ask.

Screenshots (mock Conversation, one choice picked, message typed)

Desktop Mobile
Desktop: the dialog names the review item whose answers are not sent Mobile: the same dialog above the composer

Checks

  • New e2e in review-desk.spec.ts: pick an answer on the transcript card, send from the composer, check that Go back keeps the draft and the pick and sends nothing, then check that Send message sends only the message.
  • review-desk, conversation-send, conversations, and conversations-mobile e2e specs pass locally.
  • Dashboard typecheck, lint, and unit tests (323) pass. file-length:check, dashboard-style:check, and Prettier pass.

Open question

This PR warns. It does not send the picks together with the message. If we want "Send answers and message" as a third choice, that is a follow-up. It needs a decision about the order of the two writes.

via @BYK.

--

View Session in Sentry

A dashboard message closes the open action items that it answers. Answers
that the person picked in the item form but did not send were lost without
a warning.

The conversation page now tracks answer forms with unsent input for items
that a reply would close. A send from the composer then asks first. Go back
keeps the draft and the answers. Send message sends the reply as before.

Fixes #2507

Co-Authored-By: BYK <[email protected]>
@vercel

vercel Bot commented Nov 2, 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 2, 2026 11:03am UTC

Request Review

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

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

11 screenshot changes — 9 changed · 2 added · 0 removed

Review screenshots in Frameshift

Conversation Attachment · Desktop
Conversation Attachment · Desktop
Changed
Conversation Attachment · Mobile
Conversation Attachment · Mobile
Changed
Conversation Attachment Modal · Desktop
Conversation Attachment Modal · Desktop
Changed
Conversation Child Agent Drawer · Desktop
Conversation Child Agent Drawer · Desktop
Changed
Conversation Child Agent Drawer · Mobile
Conversation Child Agent Drawer · Mobile
Changed
Review Desk · Desktop
Review Desk · Desktop
Changed
Show 3 more changed screenshots
Review Desk · Mobile
Review Desk · Mobile
Changed
Review Desk Light · Desktop
Review Desk Light · Desktop
Changed
Review Desk Light · Mobile
Review Desk Light · Mobile
Changed

@BYK
BYK merged commit 8625b3c into main Nov 2, 2026
43 checks passed
@BYK
BYK deleted the fix/dashboard-unsent-review-answers branch November 2, 2026 11:26

This branch was successfully deployed

1 active deployment
Preview – junior-docs — bf5d2041 Deployed Nov 2, 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.

Dashboard reply silently drops unsent review item picks

1 participant