Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

MUL-6796 fix(issues): keep mobile activity status compact (#7703)

icepro9a57d689b446
diff --git a/packages/views/issues/components/issue-agent-header-chip.test.tsx b/packages/views/issues/components/issue-agent-header-chip.test.tsx
index bb475c8aaf..dfe992aaae 100644
--- a/packages/views/issues/components/issue-agent-header-chip.test.tsx
+++ b/packages/views/issues/components/issue-agent-header-chip.test.tsx
@@ -318,6 +318,20 @@ describe("IssueAgentHeaderChip", () => {
expect(screen.getByText("Walt 在工作")).toBeInTheDocument();
});
+ it("hides the visible label on mobile while preserving a larger tap target and accessible name", () => {
+ mockState.tasks = [makeTask({ status: "queued" })];
+
+ renderWithI18n(<IssueAgentHeaderChip issueId="issue-1" />);
+
+ const trigger = screen.getByRole("button", { name: "Walt is queued" });
+ expect(trigger.querySelector("[data-slot='avatar']")).not.toBeNull();
+ expect(trigger.className).toContain("h-9 min-w-9");
+ expect(trigger.className).toContain("md:h-7 md:min-w-0");
+ const label = screen.getByText("Walt is queued");
+ expect(label.className).toContain("hidden");
+ expect(label.className).toContain("md:inline");
+ });
+
it("does not render when the issue has only terminal tasks", () => {
// The list is issue-scoped by the endpoint, so the chip's only job is to
// ignore terminal statuses (those are the execution log's story).
diff --git a/packages/views/issues/components/issue-agent-header-chip.tsx b/packages/views/issues/components/issue-agent-header-chip.tsx
index 6cf8440879..d48a92052c 100644
--- a/packages/views/issues/components/issue-agent-header-chip.tsx
+++ b/packages/views/issues/components/issue-agent-header-chip.tsx
@@ -178,7 +178,7 @@ function ActiveChip({
// header. Queued-only state stays calm (no beam) to reserve the
// motion for work that is genuinely in flight.
className={cn(
- "flex h-7 max-w-[11rem] items-center gap-1.5 rounded-md px-1.5 text-muted-foreground outline-none transition-colors hover:bg-accent/60 focus-visible:ring-2 focus-visible:ring-ring",
+ "flex h-9 min-w-9 max-w-[11rem] items-center justify-center gap-1.5 rounded-md px-2 text-muted-foreground outline-none transition-colors hover:bg-accent/60 focus-visible:ring-2 focus-visible:ring-ring md:h-7 md:min-w-0 md:justify-start md:px-1.5",
anyRunning && "border-beam bg-brand/5",
)}
/>
@@ -191,7 +191,10 @@ function ActiveChip({
opacity={anyRunning ? "full" : "half"}
/>
<span
- className={`min-w-0 truncate text-caption ${anyRunning ? "text-info" : "text-muted-foreground"}`}
+ className={cn(
+ "hidden min-w-0 truncate text-caption md:inline",
+ anyRunning ? "text-info" : "text-muted-foreground",
+ )}
>
{label}
</span>