Skip to content

fix(dashboard): Send the viewer's answer with each Conversation row - #3720

Merged
BYK merged 7 commits into
mainfrom
fix/inbox-answer-from-server
Nov 19, 2026
Merged

BYK merged 7 commits into
mainfrom
fix/inbox-answer-from-server

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

A Conversation row says "You answered Hold" until the Conversation moves on. The dashboard looked for that answer only in the first page of the viewer's closed Review items. After 50 newer closes, the answer was no longer on that page, and the row showed the old ask again. Bugbot found this on #3690.

Now the Conversation list API sends viewerAnswer on each row of the viewer's own feed: the options they picked and the close time. A text-only answer has no options, and the row says "You replied". The value comes from a scalar subquery on the row read, so the feed sends no new statement. A partial index on answered items keeps the subquery cheap. The dashboard no longer reads closed items for this, and the mock reporting API sends the same field.

Since #3712, the Inbox lists no Conversation rows, so the answer line shows only in Conversations.

The UI does not change visibly, so there are no screenshots.

via @BYK.

--

View Session [Sentry]

A Conversation row says "You answered Hold" until the Conversation moves
on. The dashboard found that answer in the first page of the viewer's
closed Review items, so after a page of newer closes the row showed the
old ask again.

The Conversation list API now sends `viewerAnswer`, the picked options
and the close time, on each row of the viewer's own feed. It is a scalar
subquery on the row read, so the feed sends no new statement, and a
partial index on answered items keeps it cheap. The dashboard drops its
closed-items read.

The Inbox lists no Conversation rows since #3712, so the answer e2e checks
the row in Conversations.

Co-Authored-By: BYK <[email protected]>
@sentry-junior
sentry-junior Bot requested a review from BYK November 18, 2026 23:02
@vercel

vercel Bot commented Nov 18, 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 9:28am UTC

Request Review

@github-actions github-actions Bot added the risk: high PR risk score: high label Nov 18, 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.

The answer used to show from the refreshed closed-items read. Now the
row reads it from the feed, which did not refetch after an answer, so a
mounted Conversations feed kept the old ask until the next refresh.

A submit now patches the cached feed rows of its Conversation with the
answer, as the next feed read sends it.

Co-Authored-By: BYK <[email protected]>
…-server

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

# Conflicts:
#	packages/junior-dashboard/e2e/inbox/inbox-answers.spec.ts
#	packages/junior-dashboard/src/client/review-desk/InboxList.tsx
#	packages/junior-dashboard/src/client/review-desk/inboxData.tsx

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

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Review screenshots in Frameshift

Automation Run Details · Desktop
Automation Run Details · Desktop
Changed
Conversation Question Picks And Text · Desktop
Conversation Question Picks And Text · Desktop
Changed
Conversation Question Stepper · Desktop
Conversation Question Stepper · Desktop
Changed
Conversations Pinned · Desktop
Conversations Pinned · Desktop
Changed
Conversations Pinned Light · Desktop
Conversations Pinned Light · Desktop
Changed
Inbox Conversations · Desktop
Inbox Conversations · Desktop
Changed
Show 5 more changed screenshots
Inbox Conversations · Mobile
Inbox Conversations · Mobile
Changed
Inbox Conversations Light · Desktop
Inbox Conversations Light · Desktop
Changed
Inbox Conversations Light · Mobile
Inbox Conversations Light · Mobile
Changed
Inbox Row Answer · Desktop
Inbox Row Answer · Desktop
Changed
Inbox Row Answer Light · Desktop
Inbox Row Answer Light · Desktop
Changed

A feed read that started before the answer has no viewerAnswer, and
its response replaced the patch. Cancel those reads first, as the
rename patch does.
…-server

# Conflicts:
#	packages/junior-dashboard/e2e/inbox/inbox-answers.spec.ts

@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 70492c7. Configure here.

The feed sends viewerAnswer on root rows only. Patching a Thread row
gave it an answer that the next read took away.
@BYK
BYK enabled auto-merge (squash) November 19, 2026 09:18
…-server

# Conflicts:
#	packages/junior/migrations/meta/0124_snapshot.json
#	packages/junior/migrations/meta/_journal.json
@BYK
BYK merged commit 918f7d2 into main Nov 19, 2026
53 of 55 checks passed
@BYK
BYK deleted the fix/inbox-answer-from-server branch November 19, 2026 09:42

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 88f186fa 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: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant