Repository navigation
fix(dashboard): Send the viewer's answer with each Conversation row - #3720
Merged
Merged
Conversation
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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
Contributor
|
11 screenshot changes — 11 changed · 0 added · 0 removed Review screenshots in Frameshift |
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
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 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
approved these changes
Nov 19, 2026
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
22 tasks done
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 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
viewerAnsweron 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]