Skip to content

ref(dashboard): Split ConversationPage into dock and details parts - #2833

Merged
dcramer merged 3 commits into
mainfrom
ref/split-conversation-page
Nov 7, 2026
Merged

dcramer merged 3 commits into
mainfrom
ref/split-conversation-page

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

Prep for #2792 (PR 8). No behavior change.

  • ConversationPageDock owns the reply composer dock, including the child Conversation check and the mailbox memos.
  • ConversationDetailsPanel owns the details side panel composition (stats, usage, auto-archive, participants).
  • isChildConversation in conversations/transcript.ts is the one child Conversation check. The page, the dock, and conversationDetailTitle use it.

ConversationPage.tsx goes from 942 to 841 lines. format.ts goes from 920 to 918 lines.

via @dcramer.

--

View Session [Sentry]

Move the reply composer dock and the Conversation details panel out of
ConversationPage, and check for a child Conversation in one helper,
isChildConversation. No behavior change.

Prep for #2792 (PR 8).

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

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

Request Review

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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

Review screenshots in Frameshift

Automation Page · Desktop
Automation Page · Desktop
Changed
Conversation Attachment Zoom · Desktop
Conversation Attachment Zoom · Desktop
Changed
Conversation Captured Memories Popover · Desktop
Conversation Captured Memories Popover · Desktop
Changed
Conversation Details Watched Linked Work · Desktop
Conversation Details Watched Linked Work · Desktop
Changed
Conversation Details Watched Linked Work · Mobile
Conversation Details Watched Linked Work · Mobile
Changed
Conversation Fork Dialog · Desktop
Conversation Fork Dialog · Desktop
Changed
Show 7 more changed screenshots
Conversation Fork Dialog · Mobile
Conversation Fork Dialog · Mobile
Changed
Conversation Long Transcript Touch · Mobile
Conversation Long Transcript Touch · Mobile
Changed
Conversation Recalled Memories Popover · Desktop
Conversation Recalled Memories Popover · Desktop
Changed
Conversation Recalled Memories Popover · Mobile
Conversation Recalled Memories Popover · Mobile
Changed
Conversation Stop Active · Mobile
Conversation Stop Active · Mobile
Changed
Conversations Sections Collapsed · Desktop
Conversations Sections Collapsed · Desktop
Changed
Settings Mcp · Desktop
Settings Mcp · Desktop
Changed

@sentry-junior sentry-junior Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I could not find a behavior change. ChatLayout renders {props.dock} directly, so null renders the same as undefined. ConversationPage has one return and renders the dock unconditionally with no key, so the dock lives exactly as long as the page did. The memos and pendingGeneratedAtRef keep their lifetime, and the ref is still reassigned on every render. The composer condition is the De Morgan form of the old one, and hasNewerPage equals !history.newer. The details panel gets the same detail.data, links, and participant identity as before. For PR 8, the dock's early return is the one place where the Task/Thread composer rule goes.

Checked at 3605416: pnpm typecheck, pnpm lint, and pnpm file-length:check pass. The dashboard vitest run fails only the known dashboard-output.test.ts Nitro build test. Dashboard e2e: 106 passed.

One small thing, inline: the isChildConversation JSDoc says a child takes input only from its parent agent. That stops being true once Threads land.


type AgentTreeDetail = Pick<ConversationDetailReport, "agentTree">;

/** True for a child Conversation, which takes input only from its parent agent. */

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: this predicate checks tree shape, but the JSDoc states the input rule, and PR 8 makes that rule false for Threads. The header and conversationDetailTitle still want "is a child" after Threads land. Consider /** True for a child Conversation, which has a parent agent. */ and leave the input rule in the dock comment, where PR 8 changes it.

…n-page

# Conflicts:
#	packages/junior-dashboard/src/client/conversations/ConversationPage.tsx
#	packages/junior-dashboard/src/client/format.ts
@dcramer
dcramer merged commit ec54af0 into main Nov 7, 2026
42 checks passed
@dcramer
dcramer deleted the ref/split-conversation-page branch November 7, 2026 20:13

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 870fc356 Deployed Nov 7, 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