Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions apps/desktop/src/renderer/workhub-surface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,6 @@ export function WorkHubSurface(props: {
<div className="maka-chat-shell">
<ChatMessageList
className="maka-chat-message-list maka-chatContent workhub-message-list"
density="compact"
gap={4}
isStreaming={pending}
>
Expand Down Expand Up @@ -508,7 +507,6 @@ export function WorkHubCoordinationStatus(props: {
<div className="maka-chat-shell">
<ChatMessageList
className="maka-chat-message-list maka-chatContent workhub-message-list"
density="compact"
gap={4}
isStreaming={resolving}
>
Expand Down Expand Up @@ -769,12 +767,12 @@ function WorkHubMessageFrame(props: {
data-state={props.state}
data-link-state={props.linkState}
>
<ChatMessage sender="user" density="compact" className="workhub-message">
<ChatMessage sender="user" className="workhub-message">
<ChatMessageBubble className="maka-chat-message-bubble maka-chat-message-bubble-user workhub-user-bubble">
<p>{props.text}</p>
</ChatMessageBubble>
</ChatMessage>
<ChatMessage sender="assistant" density="compact" className="workhub-message">
<ChatMessage sender="assistant" className="workhub-message">
<ChatMessageBubble
variant="ghost"
width="100%"
Expand Down
16 changes: 16 additions & 0 deletions apps/desktop/stories/workhub.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,21 @@ export const SubmittedWorkKeepsTargetMetadataInside: Story = {
expect(button.getBoundingClientRect().bottom).toBeGreaterThanOrEqual(
project.getBoundingClientRect().bottom,
);

// #4914: WorkHub's conversation is one surface — the user bubble rounds
// like the composer plate beneath it, both resolving Astryx's
// `--radius-chat`. `density="compact"` on WorkHub's chat primitives had
// pinned the bubble to `--radius-container` (12px) while the composer
// stayed 28px, splitting a transcript and a dock on the same surface by
// more than 2x. Compared against the real composer plate, not a literal,
// so an upstream `--radius-chat` change moves both or fails here.
const bubble = canvasElement.querySelector<HTMLElement>(
'.workhub-projected-turn .workhub-user-bubble',
);
const plate = canvasElement.querySelector('.maka-composer-astryx')?.firstElementChild;
if (!bubble || !plate) throw new Error('WorkHub bubble or composer plate is missing');
const bubbleRadius = getComputedStyle(bubble).borderTopLeftRadius;
expect(bubbleRadius).not.toBe('0px');
expect(bubbleRadius).toBe(getComputedStyle(plate).borderTopLeftRadius);
},
};