diff --git a/packages/junior-dashboard/src/client/components/Tooltip.tsx b/packages/junior-dashboard/src/client/components/Tooltip.tsx index 9fe92ba56..29c309b0c 100644 --- a/packages/junior-dashboard/src/client/components/Tooltip.tsx +++ b/packages/junior-dashboard/src/client/components/Tooltip.tsx @@ -162,7 +162,7 @@ export function Tooltip({ className={cn( "z-50 select-text outline-none", className ?? - "min-w-36 max-w-64 rounded-md border border-dashboard-border-emphasis bg-dashboard-surface-raised px-3 py-2 font-mono text-xs leading-relaxed text-dashboard-text-muted shadow-2xl shadow-black/70", + "min-w-36 max-w-lg rounded-md border border-dashboard-border-emphasis bg-dashboard-surface-raised px-3 py-2 font-mono text-xs leading-relaxed text-dashboard-text-muted shadow-2xl shadow-black/70", )} collisionPadding={VIEWPORT_GAP} hideWhenDetached diff --git a/packages/junior-dashboard/src/client/conversations/ConversationMeta.tsx b/packages/junior-dashboard/src/client/conversations/ConversationMeta.tsx index 75223e962..00a323a5b 100644 --- a/packages/junior-dashboard/src/client/conversations/ConversationMeta.tsx +++ b/packages/junior-dashboard/src/client/conversations/ConversationMeta.tsx @@ -545,7 +545,6 @@ function SourceTask(props: { }) { const kindLabel = props.sourceTask.kind === "scheduled" ? "Scheduled Task" : "Event Task"; - const label = props.sourceTask.label?.trim(); const taskId = props.sourceTask.id?.trim(); const title = props.sourceTask.title?.trim(); const link = taskId ? ( @@ -558,24 +557,16 @@ function SourceTask(props: { ) : ( Triggered by {kindLabel} ); - if (!label && !title) return link; + // Keep tooltips to short identity fields. Full task prompts belong on the + // task details page, not in hover chrome. + if (!title) return link; return ( - {title ? ( - <> - Title - {title} - - ) : null} - {label ? ( - <> - Instruction - {label} - - ) : null} + Title + {title} {taskId ? ( <> ID diff --git a/packages/junior-dashboard/tests/telemetry-components.test.tsx b/packages/junior-dashboard/tests/telemetry-components.test.tsx index 1313e15c7..ca08fc7be 100644 --- a/packages/junior-dashboard/tests/telemetry-components.test.tsx +++ b/packages/junior-dashboard/tests/telemetry-components.test.tsx @@ -1879,6 +1879,9 @@ describe("dashboard canonical-event components", () => { expect(html).toMatch( /href="\/tasks\/sched_source_task"[^>]*>Triggered by Scheduled Task<\/a>/, ); + // Full task prompts stay off hover chrome; open the task page for those. + expect(html).not.toContain("Update getsentry/yc-scraper"); + expect(html).not.toContain("Instruction"); expect(html).not.toContain( "Triggered by Scheduled Task ยท Update getsentry/yc-scraper", );