Repository navigation
ref(dashboard): Split ConversationPage into dock and details parts - #2833
Conversation
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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: David Cramer <[email protected]>
|
13 screenshot changes — 13 changed · 0 added · 0 removed Review screenshots in Frameshift Show 7 more changed screenshots |
There was a problem hiding this comment.
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. */ |
There was a problem hiding this comment.
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
Prep for #2792 (PR 8). No behavior change.
ConversationPageDockowns the reply composer dock, including the child Conversation check and the mailbox memos.ConversationDetailsPanelowns the details side panel composition (stats, usage, auto-archive, participants).isChildConversationinconversations/transcript.tsis the one child Conversation check. The page, the dock, andconversationDetailTitleuse it.ConversationPage.tsxgoes from 942 to 841 lines.format.tsgoes from 920 to 918 lines.via @dcramer.
--
View Session [Sentry]