Repository navigation
feat(dashboard): Ask Review item questions in the composer - #3037
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
130 screenshot changes — 109 changed · 16 added · 5 removed Review screenshots in Frameshift Show 12 more changed screenshots91 more changed screenshots in Frameshift. |
BYK
left a comment
There was a problem hiding this comment.
The composer and the question dock both send messages to the agent so they should not be separate. The "Anything else?" and "Or type your answer" boxes serve the same thing and are redundant but even worse a user cannot "type their answer" and also answer some of the questions. We should fix this scenario.
I liked your multi question system and the placeholders though.
|
how is this going to work if there are a dozen review items? |
|
Fixed in d3dc670. Send in the message box now sends the docked picks first, then the typed message. The docked form's "Anything else?" note and its own Send are gone, so you can pick some answers and type the rest in one send. The stepper and the placeholders are unchanged. Screenshots are in the PR body under "Review follow-up: one Send". |
|
@dcramer Here's how it handles a dozen open items:
Known limit: the dock reads only the first page of the Conversation's open items, 50 by default. With more than 50 open questions it would show "of 50". The review desk and the details panel still page through all of them. I can add pagination to the dock if you want it. |
d3dc670 to
f8403bb
Compare
This comment has been minimized.
This comment has been minimized.
7323914 to
106756f
Compare
|
@dcramer Correction: the 50-item first-page limit is gone. The dock now loads every page of open questions ( |
An open question that waits on the viewer now docks above the message box instead of hiding it. The question shows its title, "1 of N" with previous and next when several are open, choices as buttons with number keys, the form fields inline, and Dismiss on Esc. A typed message still answers it through the reply matching on the server, and Respond quotes land in the same box. The transcript keeps a one-line record of each ask after the final message of its Turn, with the answer once there is one. The full card and the pin-start scroll that only it used are gone. Mock reporting now serves two Conversations with open questions, so the docked question can be checked with JUNIOR_DASHBOARD_MOCK_CONVERSATIONS. Co-Authored-By: BYK <[email protected]> Co-Authored-By: David Cramer <[email protected]>
Every open question stays mounted, so a step to another question keeps its picks and notes, and each still reports its unsent answer. Take leaves the question open, so it keeps focus on the question. Co-Authored-By: BYK <[email protected]> Co-Authored-By: David Cramer <[email protected]>
The docked form had its own note and Send next to the message box, so a reader could not pick some answers and type the rest. Send in the message box now sends the picks of every docked question first, then the typed message, which the server matches to the questions left open. The docked form drops its note and Send; Send in the message box is enabled when only picks wait. Picks in the details panel still ask before a message drops them. Co-Authored-By: BYK <[email protected]> Co-Authored-By: David Cramer <[email protected]>
…e a message The dock read only the loaded page of open items, which holds notices too, so a later question never docked. It now loads every page. Send with an empty draft sends only the docked picks, so it no longer asks about details-panel picks that no message drops. Co-Authored-By: David Cramer <[email protected]> Co-Authored-By: BYK <[email protected]>
A step, an answer that moves to the next question, or a click on the question title scrolls the transcript to that question's record and marks it for a moment. A question that docks by itself moves the transcript only while the reader follows the latest. Opening a Conversation keeps its start position. With reduced motion the transcript jumps. A record outside the loaded rows opens the page around its Turn, like a link. Co-Authored-By: BYK <[email protected]> Co-Authored-By: David Cramer <[email protected]>
A question on a later page docked after the open had already focused the message box, so its number keys did not work. The docked questions are now pending until every page is in. Co-Authored-By: David Cramer <[email protected]> Co-Authored-By: BYK <[email protected]>
The reveal marked a request done before its row mounted or its record loaded its item, so a step to an unmounted record never scrolled. It now waits until the record is in the DOM. Co-Authored-By: David Cramer <[email protected]> Co-Authored-By: BYK <[email protected]>
While later Review item pages load, a question from an early page docks before the open snapshot exists. It was open on load, so it must not move or mark the transcript. A question that docks by itself counts as an arrival only after the snapshot of the open exists. Co-Authored-By: David Cramer <[email protected]> Co-Authored-By: BYK <[email protected]>
A docked question now takes the open's focus at once, so a later page does not pull the focus out of the message box. When Send fails on a pick of a hidden question, that question shows with its error. Each loaded page asks for the next one, so a slow page no longer stops the load of later pages. Co-Authored-By: BYK <[email protected]>
12db616 to
7e65139
Compare
…to load A moved ask now gets the New marker before it when it is unread, so it does not sort above the marker under the seq of the row before it. When a page of open questions fails to load, the reply footer says so and offers Try again, instead of treating the list as complete.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit a23e6fa. Configure here.
A failed page of open questions now keeps the list pending until Try again loads it. The open-time snapshot and the focus request then wait for the full list, so recovered questions take the focus and do not count as just asked.
…3046) Refs #3030 #3037 added a mock that reports waiting Conversations, so this PR also moves that mock to the new `items` shape (`mock-reporting/review-items.ts`). "Needs attention" mixed three signals: Review items that wait on you, unread messages, and any open PR while Junior was idle. Rows jumped into it for an ack from Junior or for a PR nobody needed to touch. This PR narrows the section to one rule and renames it **Needs you**. ## The rule A Conversation is in **Needs you** when it has an open **action** Review item assigned to you. That rule already existed (`reviewItemNeedsUser`, `/api/review-items/waiting-conversations`). This PR makes it the only input: - **Unread** no longer moves a row. The unread dot and bold title stay as they are (the row-marker redesign is #3032). - **Open PR while idle** (`unfinishedWork`) no longer counts. The client field is deleted. The server field stays because auto-archive and Priority use it. The same rule drives the Inbox count, the Inbox "Needs you" group, and the Board, so one item shows the same way everywhere. ## PR asks become Review items Plugins already put items on the review desk through `PluginConversationReviewItems`. A plugin can now mark an item as an ask with `waitsOnAssignees: true`. Core stores it as an `action` with no question, so the existing rule counts it. I did not add a separate hook. A second channel would count the same fact twice, and the review desk already owns assignment (Participants, #3021), dedupe, visibility, close, and the Slack card. - **Schema:** the `junior_review_items_kind_check` constraint now also allows an action with no `request` when its dedupe key starts with `plugin:` (migration `0098_review_item_plugin_actions`). An agent's action still needs a question. - **Replies:** reply matching skips plugin items (`listReplyActionItems`). The plugin closes them when the provider state changes, so a "merged it, thanks" reply cannot close one by mistake. - **GitHub, Ready to merge:** the existing item becomes an ask, titled `Ready to merge · #946`. It closes when the PR merges, closes, or stops being ready, as before. - **GitHub, Review requested (new):** when GitHub requests a review on a Junior PR from the requester (matched through their linked GitHub account), the plugin adds `Review requested · #946` to the requester's Conversation. The ask updates in place on a new request (same dedupe key). It closes when they submit a review, when the request is removed, or when the PR closes. Every fact comes from the webhook payload, so the ask needs no GitHub read and no new table. Team requests are skipped. ## Row chip The chip keeps its place and its `?review=open` link. It shows the newest title with "+N more". A plugin item shows the plugin's mark (GitHub) in place of the Inbox icon. The accessible `Tooltip` lists every waiting title in full, with no native `title` attribute. The API now returns `items: [{ title, plugin? }]`, newest first, in place of `title` and `count`. | Before | After | | --- | --- | |  |  | |  |  | Tooltip with every waiting item:  All shots come from the mock-mode e2e harness (`conversations-attention.spec.ts`). The "after" mock has a GitHub ask plus an agent question on one Conversation. ## Things to know - **Board:** "Ready" still means an open plugin item about the change. I dropped the `kind = notice` filter so it keeps working after the cutover. A PR waiting on the requester's review now also shows as Ready. That is a guess the Board already names in `columns.ts`. - **Cutover:** Ready-to-merge notices that are open now stay notices until the PR's readiness changes. Until then they show as FYI, not Needs you. I did not backfill, because a core migration would need to name a GitHub dedupe key. - **Collapsed section state:** the section key changes from `attention` to `needs-you`, so anyone who collapsed it sees it expanded once. ## Follow-ups (why this says Refs, not Fixes) - **Reviews on PRs Junior did not open.** A colleague's PR has no Conversation to hold the ask, and Junior maps a GitHub login to a person only through a linked account. Doing this needs Review items without a Conversation (or an Inbox-only home) and a login → Identity lookup in the plugin API. - **Review requested from someone other than the requester** on a Junior PR. Same login → Identity gap. - **Changes requested.** On a Junior PR, Junior handles that feedback, so it is not an ask of the viewer today. It needs a product decision. ## Likely conflicts - **#3032 (sort order, reorder freeze, row markers):** both edit `conversationSections.ts` and `ConversationSidebar.tsx`. Here the section rename and the `attentionIds` → `waitingIds` option are the main changes. The chip moved to `WaitingChip.tsx`. - **#3031 (progress replies don't mark unread):** touches unread, not section membership. Small overlap at most. - **#3036 (Inbox bundles):** consumes Review items. The new plugin asks land in its "Needs you" group with no change there. - **Migrations:** this adds `0098_review_item_plugin_actions`. A parallel PR that also adds a migration needs a renumber. ## Frameshift changes I pulled the baseline, candidate, and diff images for `ed2372e9a` (report on `085c4f39c`). I measured where each of the 59 changed pairs differs, and I looked at every pair that changed outside the conversation list. | Count | Cause | Status | | --- | --- | --- | | 44 | Conversation list only, desktop and mobile. Rows that were unread or had an open PR leave the waiting section, and the section is renamed "Needs you" (collapsed count 3 → 1). Row menus and row tooltips move with their row. | Expected | | 4 | `conversations-pinned` and `conversation-sidebar-review-chip`, dark and light. The chip shows the GitHub ask with the GitHub mark. | Intended | | 6 | List changes plus noise: `conversation-unsent-answers` desktop (transcript scroll), `share-details` and `event-log-virtual` (a header tooltip shows), and `captured-memories-popover`, `details-watched-linked-work`, and `push-notifications-tip` (another video frame). | Expected + noise | | 5 | Noise only: `conversation-unsent-answers` mobile and `long-transcript-touch` (transcript scroll), `memories` mobile (chart hover tooltip), `settings-mcp` (random port), and `automation-page` (the rail ends 10px short in a 910px capture). | Noise, not from this PR | How I checked the noise: - **`conversation-unsent-answers`:** I ran it 3 times on `main` and 3 times on this branch. Both flip between the same two transcript scroll positions. - **`automation-page`:** it renders the same pixels on `main` and on this branch locally, so the CI difference does not come from this PR. One finding, now fixed in `48b9d20c0`: the new tooltip check hovered the chip before the existing `conversation-sidebar-review-chip` shots, so they captured the row's hover actions. The plain shots now come first, and the tooltip shot follows. The "after" chip shot above is retaken from the fixed order. ## Testing - Integration: `plugin-review-items.test.ts` (a plugin ask waits on its assignee, counts, carries the plugin name, and a reply does not close it), `review-items/actions.test.ts` (new `items` shape), `board.test.ts`. - GitHub plugin: new `pull-request-review-request.test.ts` through the real webhook route (requester match in any case, other people and teams skipped, close on review or removal, update in place on a new request), and the updated `pull-request-ready.test.ts`. - Dashboard unit: `conversationSections.test.ts`. - Dashboard e2e: `conversations-attention.spec.ts` (Needs you, unread stays in place, chip mark and tooltip) and `conversation-threads.spec.ts`. Full e2e run: 132/133 passed. The one failure (`conversations-event-log`) timed out under 4 workers and passes alone. - `pnpm typecheck`, `pnpm lint`, `pnpm file-length:check`. The full test suites for junior-github and junior-dashboard pass, and so do the core API and review-item integration tests. <!-- junior-request-attribution:start --> via @BYK, @dcramer. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3A347ecd22af4f5aa5e0960cd65ba322a4 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A347ecd22af4f5aa5e0960cd65ba322a4) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A347ecd22af4f5aa5e0960cd65ba322a4/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <[email protected]> Co-authored-by: David Cramer <[email protected]>
Fixes #3032 **Stacked on #3046** (stack [#3058](https://github.com/getsentry/junior/stack/3058): #3037 → #3046 → #3047 → #3035 → #3036). #3046 owns who is in Needs you; this PR owns the order. Review the diff against `fix/dashboard-needs-you`. The conversation list moved under the reader's pointer. Every event moved a row, and the waiting section put the newest activity first, so a queue you were working through kept changing order. This PR fixes the order and cuts the row markers to three channels. ## Order - **Needs you: the oldest wait goes first.** `/api/review-items/waiting-conversations` now returns `waitingSince` next to #3046's `items`. It is the `createdAt` of the conversation's oldest open item for the viewer. New activity no longer moves the queue. - **Date sections: sorted by the last Message.** Feed rows get `lastMessageAt`, which is the newer of the last true user Message and the last Junior reply that the transcript shows. Like the unread reply, it skips tool calls, status changes, Events, and quiet replies, so they don't move a row. It also skips progress acks (`meta.progress`). That exclusion starts working when #3044, a separate PR, lands on main; until then nothing writes the flag. The row age and the home card time show this time too. A row with no Message yet uses `lastSeenAt`. - `pinnedAndWaitingFirst` sorts the same way before paging, so pages split where the sections do. ## Hold while you work in the list - **One list component.** The sidebar and the home card list both render through `ConversationSectionList`. It builds the sections, holds the order, shows the pill, and owns pin reorder. Each list keeps only its own row look. A dashboard lint rule (`no-restricted-imports` in `.oxlintrc.json`) allows `buildConversationSections` and `heldListOrder` only in that component, so a new list can't skip the hold. - While the pointer is over the list, or focus is in it, rows keep their section and position. The hold covers the whole list area, including its padding and scrollbar, from the first paint. Their data still updates: bold, dot, spinner, and the review chip. - An **"N updated"** pill offers the new order. N is the number of rows that the new order would add or move, using the longest increasing run, so moving one row counts as 1. Clicking the pill applies the new order. So does moving the pointer out once focus has left the list. - **Row actions apply at once.** Pin, unpin, reorder, archive, and mark read/unread release the hold, so you see their result. Opening a row does not release it, so the row you just read stays where it was. - The hold starts only after the feed and waiting reads finish. A pointer resting on the list during a page load does not hold back the first rows. - Rows that sort after every held row, such as the next page of the home list, show at the end. Loading more doesn't wait on the pill. - Touch has no hover, so only a mouse or pen holds the order. On a phone only focus holds it. The pill fades in only under `motion-safe`. `AnimatedList` is unchanged and still animates rows in and out. | Held, dark | Held, light | |---|---| |  |  | In these shots, *Checkout latency triage* has started waiting. It gets its dot, bold title, and chip in place, and the pill offers to move it into Needs you. The home card list in a 700px window with a mouse, held and then applied: | Home held, dark | Home held, light | Home applied, light | |---|---|---| |  |  |  | ## Three marker channels - **Position:** the section, such as Needs you. - **Read state:** a dot plus a bold title. This is one channel, so unread and waiting rows keep both. The separate violet "waiting" dot and orange "unread" dot are now one accent dot. The section and the review chip already show that a row is waiting. - **Motion:** the running spinner. - **Secondary text:** the private lock, and "Failed" or "Stopped", sit beside the age, not in the marker slot. The idle glyph is gone. This applies to the sidebar, the home and mobile list cards, and the Code page's recent conversations rows. Thread rows under a parent keep their own child status icon, which is unchanged. ### Mark as unread does not change Every read/unread control works as on `main`: - The dot slot in the sidebar is still the read toggle. It shows on unread rows, shows a preview on hover or focus, and has the "Mark as read/unread" tooltip. - The row context menu still has Mark as unread/read. - The mobile conversation menu still has Mark as unread. This PR adds no shortcuts. The only change is that these actions release the hold, so the row moves right away. | Needs you, before / after (dark) | Sidebar, before / after (light) | |---|---| |  |  | | Read toggle on hover, before / after | Row menu, before / after | |---|---| |  |  | Before is #3046 (`470f3a73f`). In the read toggle and row menu shots, Needs you now lists the longest wait first, so *Plan the billing migration* moves above *Roll out payments-v42*. | Mobile list, before / after | Mobile Needs you, before / after | Mobile conversation menu | |---|---|---| |  |  |  | On mobile, "Failed" is now text beside the time, not a rose dot on the tile. A running card shows one spinner, in place of the time, not a second one on the tile. The waiting card's dot is the same accent dot as unread, not the glowing violet one. ## Pins stay manual Pins don't change, and nothing pins on its own. For diagnosis, a pin change tags its request span with `app.conversation.pin.action` (`pin`, `unpin`, or `reorder`) and `app.conversation.pin.count`, which is the viewer's pin count after the change. The names and a query recipe are in `TELEMETRY.md`. The browser still sends only spans and ratings. ## Notes for reviewers - **Ordering on top of #3046:** in `conversationSections.ts`, `buildConversationSections` and `pinnedAndWaitingFirst` now take `waiting` (the waiting map with `waitingSince`) in place of #3046's `waitingIds` set. Membership is unchanged: a row is in Needs you only when it is in that map. - **Feed query cost:** the feed reads `lastMessageAt` from a new `junior_conversations.last_message_at` column, so it adds no per-row event reads. Recent perf work on main took two routes: #3006 caches usage sums in Redis with a seq watermark, and #2761 reads previews through bounded index walks. I chose a column over a Redis cache because this time changes only when a Message is appended, and the append already writes the Conversation row in its transaction. So there is nothing to invalidate or watermark. - **Write:** `refreshLastMessageAt` (`sql/last-message.ts`) runs in the append transaction, only when the append adds a `message` or `user_message` event. It does the three index walks once per append, not once per root on every feed read. - **Migration `0099_conversation_last_message_at`:** adds the nullable column, with no backfill. An update of every root would lock the rows that appends write (the `migration-locks` check rejects it). A row with no stored time reads it from its events in `coalesce`, which skips that read for every row that has one. Old idle rows drop out of the feed page over time. - **API change:** `waitingSince` is a required field on the strict waiting-conversations schema. The dashboard is the only consumer. The e2e mocks and `mock-reporting/review-items.ts` send it. ## Frameshift changes Report for `8e5f8c40a`: 67 changed and 3 added. I measured every pair and looked at each one that changed outside the sidebar rows. | Count | Cause | Verdict | |---|---|---| | 45 | The private lock on *Direct Message* moves from the leading slot to beside the age. This is the only change. | Expected | | 8 | The same lock move, plus noise elsewhere: transcript scroll position (4), a different demo video frame (3), or a "Conversation details" tooltip (1). | Expected, plus noise | | 5 | Mobile home cards: one accent dot for unread and waiting, and "Failed" as text. The cards also showed a bug: an empty status slot added a flex gap, so every title cut off 12px early. Fixed in `a63504507`. | Expected, bug fixed | | 2 | The Code page recent rows lose the idle dot. | Expected | | 7 | Noise only: transcript scroll (4 mobile), a chart tooltip on a different day on Memories, the random MCP port, and the nav rail height in one full-page capture. | Noise | | 3 added | `conversations-list-held` (dark and light) and `conversation-menu-mark-unread` (mobile). | New in this PR | I checked the noise locally against `main` where it was cheap. `conversation-unsent-answers` (desktop and mobile) is the same on the branch and on `main`, except for the lock, in two runs each. `automation-page` differs between two runs of the branch, and one of them matches `main`. ## Testing - **Unit:** the `conversationSections` wait and last-Message order, and the new `heldListOrder` tests (held order, pending count, new and removed rows). - **Integration (Postgres):** - `unread.test.ts`: a quiet reply or a progress ack doesn't move `lastMessageAt`, and a shown reply does. The append stores the time on the row, and a row with no stored time still reads it from its events. - `review-items/actions.test.ts`: `waitingSince` is the oldest item's time. - `list.test.ts` and `pin.test.ts` pass. - **E2E:** - New: "holds the order under the pointer and offers the new one". It checks the hold, the pill, applying on click, and applying on leave plus blur. - New: "holds the home list order under the pointer", in a 700px window with a mouse. - New: "holds the order for a pointer on the list edge through the first load". It fails on `51a864b37`, before the hold covered the whole list area. - `conversations.spec` "scrolls long conversation and transcript panes independently" now finds the sidebar scroll area by its slot, because the list has a wrapper. - The mobile mark-unread test now saves a menu screenshot. - The `conversations-attention` spec passed 3 times in a row with 3 workers. - **Full dashboard e2e:** 144 of 146 passed with 4 workers. `conversations-attention` "puts waiting conversations in Needs you first" timed out under load and passes on its own. The scroll test failed on the old locator and passes with the fix. - **Checks:** `pnpm typecheck`, `pnpm lint` (with `migration-locks`, `file-length`, and `test-architecture`), and the dashboard unit suite (432 tests) pass. Full integration: 926 passed. `any-resource-event-automations` times out here with or without this change, and `attachment-s3-storage` needs a local S3 server. <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3A8bfa5732f44bc4f91116d3ee1be8f6d7 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A8bfa5732f44bc4f91116d3ee1be8f6d7) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A8bfa5732f44bc4f91116d3ee1be8f6d7/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <[email protected]>

When Junior asks a question (an open action Review item that waits on the viewer), the question now docks directly above the message box. Before, a full card appeared in the transcript at the tool-call position, above Junior's final message, and the message box and queued messages were hidden until the reader answered or dismissed it.
What changes
Docked question (
review-desk/ComposerQuestion.tsx)aria-keyshortcuts.multi_choiceandtextfields stay inline. The docked form has no note field ("Anything else?"), no Other…, and no Send of its own: the message box is the one place to write and send. Its placeholder changes to "Or type your answer…".ComposerDockaboveslot. It rides the keyboard with the message box and scrolls inside the dock when it is tall.Message box
ConversationReplyFooter: thereviewItemIdprop,composerShownForItemId, focus tracking, and the hidden wrappers. The message box and queued messages always show.api/conversations/create.ts→closeReviewItemsAnsweredByReply. That path matches the reply to open questions with the decision model and closes the matches with the reply asother. Coverage for it already exists intests/integration/slack/review-item-card-webhook.test.ts(dashboard post) and in thereview-item-repliesclassifier eval. This PR does not change that path.appendTexthandle. The box is always visible now, so the quote always lands.Transcript
ReviewItemCardat the tool-call position is replaced by a one-line record: "Asked title", then "Waiting on you", the one-line answer, or "Dismissed". The title links to the review desk. If the viewer cannot read the item, the raw tool frame shows as before.transcriptListRowsmoves each ask to the end of its Turn, after the final message, so the reader sees why before what. The moved row takes the seq of the row before it, so row order stays monotonic forrowIndexForSeqand the New marker. Activity on both sides of an ask stays one group.TranscriptReviewItemCardand the pin-start scroll mechanism intranscriptBottomPinning.tsare deleted. The card was their only consumer.ReviewItemCardandReviewItemActionsunchanged. The Inbox page and the app shell are not touched.Mock mode
mock-reporting/review-items.tsserves Review items from process-local state. It has two new Conversations:Review follow-up: one Send
@BYK pointed out that the docked form and the message box both send to the agent. The form's "Anything else?" note and the message box were redundant, and a reader could not type an answer and also answer some of the questions. The docked form now has no note and no Send. The message box sends the picks first, then the typed words. The stepper and the placeholder are unchanged.
The details panel form keeps its own note and Send. Its picks still ask before a message drops them:
Scroll to context
The docked question now shows where Junior asked it. A step with Previous or Next, an answer that moves to the next question, or a click on the question title scrolls the transcript so that question's "Asked …" record sits in the middle. The record gets a short violet ring, the same ring style that
ConversationReviewItemsuses.prefers-reduced-motion, the transcript jumps instead of a smooth scroll. Only the transcript scrolls, never the page. This is checked on desktop and on mobile.showRowintranscriptBottomPinning.ts). It updates the saved place, so a dock resize does not pull the reader back.openLink). There is no new paging path. While a search hides the record, or in the event log, nothing scrolls. A question added from a child Conversation has no record here, so it does not scroll either.A page of questions that fails to load
If a page of open questions fails to load, the footer says "Some questions did not load." with Try again. Before this, the dock treated the list as complete, so questions on that page and later ones never docked.
Why
Screenshots
Single choice question, dark and light:
Several open questions, "2 of 3" (multi_choice plus text), dark and light:
A typed answer in the message box:
Answered: the transcript records show both answers, and the box is back to "Message Junior…":
Mobile, dark and light, and a tall form that scrolls inside the dock:
Supersedes #2533's hide-composer approach
#2533 (for #2508) hid the message box and queued messages while a question waited, so the question was the last thing on the page. This PR removes that hiding. Each #2533 concern is still covered:
onStopstill depends only onstoppable.Testing
e2e/composer-questions.spec.ts, run against the mock Conversations:conversations-event-log.spec.ts: docked, Esc dismiss, record says Dismissed.command-palette.spec.ts: the question takes focus.review-desk.spec.ts: docked picks go out before the typed message with no confirm; picks in the details panel still get the confirm.tests/transcriptListRows.test.ts: asks move to the end of their Turn, seq order holds, and activity merges around them.pnpm --filter @sentry/junior-dashboard typecheck, the dashboard vitest suite (425 tests),pnpm file-length:check,test-architecture:check,dashboard-style:check, dashboard lint,ast-grep:lint.conversation-send,conversations-event-loginspect,conversationsviews) pass when rerun alone.Frameshift changes
I diffed each of the 103 changed screenshots against its baseline (report for f56e1f0):
conversations-pinned(dark and light): the open question docks above the message box.conversation-unsent-answers(desktop and mobile): the confirm now covers the docked form, and the transcript shows the "Asked …" record. The details panel lists only this Conversation's items, because thereview-desk.spec.tsmock now applies theconversationIdfilter.locations(desktop and mobile), private Conversations go from 4 to 6, because the new mock Conversations count as private.conversation-attachmentviews andconversation-long-transcript-touchstop at a different scroll position.conversation-share-detailsandconversation-event-log-virtualshow or hide a hover tooltip.settings-mcphas a random port.person-profilewas captured before its charts loaded.settings-notificationsdiffers only in anti-aliasing.No layout, spacing, or transcript change appears outside the question rows and the docked question.
Follow-ups (out of scope)
requestdo not dock. Their transcript record links to the review desk.Mock preview:
JUNIOR_DASHBOARD_MOCK_CONVERSATIONS=true pnpm dev, then open Roll out payments-v42 or Plan the billing migration.via @BYK.
--
View Session in Sentry