Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,7 @@
font-weight: var(--openbitfun-type-label-selected-font-weight);
}

/* The words behind the glyph stay for assistive tech; sighted users get
them in the bubble's tooltip. */
/* The words behind the glyph stay for assistive tech. */
&__bubble-status {
position: absolute;
width: 1px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,21 @@ describe('AgentCompanionDesktopPet', () => {
);
});

it('shows no tooltip on a session bubble while keeping its status for assistive tech', () => {
pushActivity({
mood: 'working',
tasks: [task()],
sequence: 1,
emittedAt: 1,
});

const bubble = query('.openbitfun-agent-companion-window__bubble');

expect(bubble?.hasAttribute('title')).toBe(false);
expect(query('.openbitfun-agent-companion-window__bubble-title')?.getAttribute('data-overflow-tooltip')).toBeNull();
expect(bubble?.querySelector('.openbitfun-agent-companion-window__bubble-status')?.textContent).toBeTruthy();
});

it('hides the composer entry for sessions that cannot be replied to directly', () => {
pushActivity({
mood: 'working',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function menuAnchorFromEvent(event: React.MouseEvent): MenuAnchor {
};
}

/** A bubble states its task with a glyph; the words stay for tooltips and assistive tech. */
/** A bubble states its task with a glyph; the words stay for assistive tech. */
const TASK_STATE_GLYPHS: Record<AgentCompanionTaskState, LucideIcon> = {
running: LucideLoaderCircle,
waiting: LucideHourglass,
Expand Down Expand Up @@ -1128,7 +1128,7 @@ export const AgentCompanionDesktopPet: React.FC = () => {
strokeWidth={2.25}
aria-hidden="true"
/>
{/* The bubble's own tooltip carries title and status together. */}
{/* Bubbles show no tooltip; an overflowing title scrolls on hover instead. */}
<OverflowText className="openbitfun-agent-companion-window__bubble-title" title="" data-openbitfun-component="agent-companion-desktop-pet" data-openbitfun-part="bubbleTitle">
{task.title}
</OverflowText>
Expand Down Expand Up @@ -1215,7 +1215,6 @@ export const AgentCompanionDesktopPet: React.FC = () => {
<button
type="button"
className={bubbleClassName}
title={`${task.title} · ${statusLabel}`}
onClick={() => void openTaskSession(task)}
data-openbitfun-component="agent-companion-desktop-pet"
data-openbitfun-part="bubble"
Expand Down
Loading