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
4 changes: 3 additions & 1 deletion apps/web/src/components/chat/ThreadDetailsIssueRows.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ function LinkedIssueRow({
</TooltipPopup>
</Tooltip>
<div className="flex h-5 min-w-0 items-center gap-1.5 ps-9 pe-2.5 text-xs text-muted-foreground">
<span className="shrink-0 tabular-nums">{link.displayKey}</span>
<span aria-hidden className="shrink-0 tabular-nums">
{link.displayKey}
</span>
{trackerIcon}
{comments}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,13 @@ it("names a linked issue row by its kind, number and title, not its URL", async
expect(name).toMatch(/issue/i);
expect(name).toContain("#123");
expect(name).toContain("Sidebar flickers on resize");
const exposedKeys = [...screen.container.querySelectorAll("span")].filter(
(span) =>
span.textContent?.trim() === "#123" &&
span.closest("a") === null &&
span.closest('[aria-hidden="true"]') === null,
);
expect(exposedKeys).toHaveLength(0);
const externalClick = new MouseEvent("click", { bubbles: true, cancelable: true });
await act(async () => {
row.dispatchEvent(externalClick);
Expand Down
Loading