Skip to content

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

Go

feat(issues): compact the sidebar execution log (MUL-8350) (#9659)

Jiayuan Zhang045fcdf19ab9
diff --git a/packages/views/issues/components/execution-log-section.test.tsx b/packages/views/issues/components/execution-log-section.test.tsx
index f9f0720eea..8e3e9a91c6 100644
--- a/packages/views/issues/components/execution-log-section.test.tsx
+++ b/packages/views/issues/components/execution-log-section.test.tsx
@@ -28,7 +28,11 @@ vi.mock("./terminate-task-confirm-dialog", () => ({
}));
vi.mock("@multica/core/workspace/hooks", () => ({
- useActorName: () => ({ getActorName: () => "Lambda" }),
+ useActorName: () => ({
+ getActorName: () => "Lambda",
+ getActorInitials: () => "L",
+ getActorAvatarUrl: () => null,
+ }),
}));
import {
@@ -332,10 +336,33 @@ describe("execution log header geometry", () => {
makeTask({ id: "old", status: "queued", trigger_summary: "Order: first", created_at: "2026-09-08T03:01:00Z" }),
makeTask({ id: "running", status: "running", trigger_summary: "Order: running", created_at: "2026-09-08T03:00:00Z" }),
]);
+ fireEvent.click(screen.getByRole("button", { name: /2 queued/ }));
expect(screen.getAllByText(/^Order:/).map((el) => el.textContent))
.toEqual(["Order: running", "Order: first", "Order: second"]);
});
+ it("folds several queued runs into one expandable row, but not a lone one", () => {
+ const { unmount } = renderSection([
+ makeTask({ id: "running", status: "running", trigger_summary: "Live run" }),
+ makeTask({ id: "q1", status: "queued", trigger_summary: "Queued one" }),
+ makeTask({ id: "q2", status: "queued", trigger_summary: "Queued two" }),
+ ]);
+ const group = screen.getByRole("button", { name: /2 queued/ });
+ expect(group).toHaveAttribute("aria-expanded", "false");
+ expect(group).toHaveTextContent("Lambda");
+ expect(screen.getByText("Live run")).toBeInTheDocument();
+ expect(screen.queryByText("Queued one")).not.toBeInTheDocument();
+ fireEvent.click(group);
+ expect(group).toHaveAttribute("aria-expanded", "true");
+ expect(screen.getByText("Queued one")).toBeInTheDocument();
+ expect(screen.getByText("Queued two")).toBeInTheDocument();
+ unmount();
+
+ renderSection([makeTask({ id: "q1", status: "queued", trigger_summary: "Queued one" })]);
+ expect(screen.queryByRole("button", { name: /queued/ })).not.toBeInTheDocument();
+ expect(screen.getByText("Queued one")).toBeInTheDocument();
+ });
+
function headerOf(): HTMLElement {
const label = screen.getByText("Execution log");
const header = label.closest("div");
@@ -415,16 +442,40 @@ describe("execution log past runs", () => {
expect(screen.getByText("MUL-1 · Wakeups")).toBeInTheDocument();
});
- it("keeps cost and agent duration visible with usage details in the tooltip", () => {
+ it("lets active runs take the three rows first and fills the rest with past runs", () => {
+ const active = [
+ makeTask({ id: "running", status: "running", trigger_summary: "Live run" }),
+ makeTask({ id: "q1", status: "queued", trigger_summary: "Queued one" }),
+ makeTask({ id: "q2", status: "queued", trigger_summary: "Queued two" }),
+ ];
+ const { unmount } = renderSection([...active, past(1), past(2), past(3), past(4)]);
+ // One running row + one folded queued row leave a single past slot.
+ expect(screen.getAllByText(/^Past run \d$/).map((el) => el.textContent)).toEqual(["Past run 4"]);
+ expect(screen.getByRole("button", { name: "Open timeline · Show 3 more" })).toBeInTheDocument();
+ unmount();
+
+ renderSection([
+ ...active,
+ makeTask({ id: "running-2", status: "running", trigger_summary: "Second live run" }),
+ makeTask({ id: "running-3", status: "running", trigger_summary: "Third live run" }),
+ past(1),
+ ]);
+ expect(screen.queryByText("Past run 1")).not.toBeInTheDocument();
+ expect(screen.getByText("Third live run")).toBeInTheDocument();
+ });
+
+ it("keeps a finished run to one line, with agent, duration and usage in the tooltip", () => {
renderSection([past(1)]);
const row = screen.getByText("Past run 1").closest("[title]") as HTMLElement;
expect(within(row).getByText("$2.00")).toBeInTheDocument();
- expect(row).toHaveTextContent("Lambda · 10m");
- // Detailed usage remains available without crowding the summary row.
+ expect(row).not.toHaveTextContent("Lambda");
+ expect(row).not.toHaveTextContent("10m");
expect(row).not.toHaveTextContent("892K tokens");
- expect(row.getAttribute("title")).toContain("892K tokens");
- expect(row.getAttribute("title")).toContain("claude-opus-5");
+ const title = row.getAttribute("title");
+ expect(title).toContain("Lambda · 10m");
+ expect(title).toContain("892K tokens");
+ expect(title).toContain("claude-opus-5");
});
it("puts a failed run's reason where its duration would be", () => {
@@ -463,13 +514,15 @@ describe("execution log past runs", () => {
expect(chart.querySelectorAll("[data-run]")[29]).toHaveAttribute("data-run", "past-35");
expect(screen.getByText("Spent", { selector: "dt" }).parentElement).toHaveTextContent("$70.00");
expect(screen.getAllByText(/^Past run \d+$/)).toHaveLength(3);
- fireEvent.click(screen.getByRole("button", { name: "Show 32 more" }));
+ expect(screen.queryByText("Latest")).not.toBeInTheDocument();
+ fireEvent.click(screen.getByRole("button", { name: "Open timeline · Show 32 more" }));
expect(screen.getByRole("heading", { name: "Runs" })).toBeInTheDocument();
});
it("keeps all active tasks reachable in a separate scrolling region", () => {
renderSection(Array.from({ length: 8 }, (_, i) => makeTask({ id: `active-${i}`, status: "queued", trigger_summary: `Queued ${i}`, usage: [] })));
const active = screen.getByRole("region", { name: "8 active" });
+ fireEvent.click(within(active).getByRole("button", { name: /8 queued/ }));
expect(within(active).getAllByText(/^Queued \d$/)).toHaveLength(8);
expect(active).toHaveAttribute("tabindex", "0");
});
@@ -480,8 +533,8 @@ describe("execution log past runs", () => {
past(2, { usage: [usageSlice({ input_tokens: 1000, output_tokens: 0, cache_read_tokens: 0, cache_write_tokens: 0, cost_usd_ticks: 10_000_000_000 })] }),
]);
const bars = screen.getByRole("button", { name: /Cost per run/ }).querySelectorAll("[data-run]");
- expect((bars[0] as HTMLElement).style.height).toBe("40px");
- expect((bars[1] as HTMLElement).style.height).toBe("4px");
+ expect((bars[0] as HTMLElement).style.height).toBe("24px");
+ expect(parseFloat((bars[1] as HTMLElement).style.height)).toBeCloseTo(2.4);
});
it.each([1, 8, 15, 30])("preserves upstream slots for %i runs", (count) => {
@@ -491,7 +544,7 @@ describe("execution log past runs", () => {
})));
const chart = screen.getByRole("button", { name: /Cost per run/ });
const plot = chart.querySelector("[aria-hidden]") as HTMLElement;
- expect(plot.style.height).toBe("40px");
+ expect(plot.style.height).toBe("24px");
expect(plot.children).toHaveLength(Math.max(20, count));
expect(chart.querySelectorAll("[data-run]")).toHaveLength(count);
expect(plot.children[plot.children.length - count]).toHaveAttribute("data-run");
@@ -512,7 +565,6 @@ describe("execution log past runs", () => {
expect(chart.querySelector('[data-run="past-2"]')).toHaveClass("bg-faint-foreground");
expect(chart.querySelector('[data-run="past-3"]')).toHaveClass("border-dashed");
expect(chart.querySelector('[data-run="active"]')).toHaveClass("bg-info");
- expect(chart).toHaveTextContent("Now");
});
it("makes full details reachable from the first priced run", () => {
diff --git a/packages/views/issues/components/execution-log-section.tsx b/packages/views/issues/components/execution-log-section.tsx
index 378c7320aa..74555c70d0 100644
--- a/packages/views/issues/components/execution-log-section.tsx
+++ b/packages/views/issues/components/execution-log-section.tsx
@@ -1,8 +1,8 @@
"use client";
-import { Fragment, useEffect, useMemo, useState } from "react";
+import { useEffect, useMemo, useState } from "react";
import { useQuery } from "@tanstack/react-query";
-import { Loader2, Maximize2, Square } from "@multica/ui/icons";
+import { ChevronRight, Loader2, Maximize2, Square } from "@multica/ui/icons";
import { toast } from "sonner";
import { api } from "@multica/core/api";
import { issueTasksOptions } from "@multica/core/issues/queries";
@@ -11,13 +11,14 @@ import { useCustomPricingStore } from "@multica/core/runtimes/custom-pricing-sto
import type { AgentTask } from "@multica/core/types";
import { IconButton } from "@multica/ui/components/common/icon-button";
import { cn } from "@multica/ui/lib/utils";
-import { useLocale, useTimeAgo } from "../../i18n";
+import { useTimeAgo } from "../../i18n";
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from "@multica/ui/components/ui/tooltip";
import { ActorAvatar } from "../../common/actor-avatar";
+import { AgentAvatarStack } from "../../agents/components/agent-avatar-stack";
import { formatDuration } from "../../agents/components/agent-activity-hover-content";
import { TranscriptButton } from "../../common/task-transcript";
import { cancellationActorLabel, cancelReasonLabel, failureReasonLabel } from "../../agents/components/tabs/task-failure";
@@ -68,8 +69,13 @@ interface ExecutionLogSectionProps {
issueTitle?: string;
}
-// How many past runs the sidebar lists before deferring to the Runs dialog.
-const LATEST_PAST_RUNS = 3;
+// The sidebar lists this many rows; everything else is in the Runs dialog.
+// Active runs come first and are never cut (they carry the stop action);
+// past runs fill whatever is left.
+const LIST_ROWS = 3;
+// Queued runs at or past this count fold into one expandable row: they have
+// nothing to show yet but their trigger, so a row each mostly costs height.
+const MIN_QUEUED_GROUP = 2;
// Past-runs sort priority: newest first by timestamp. When two runs
// share the same timestamp, failed ranks above cancelled, which ranks
@@ -136,7 +142,11 @@ export function ExecutionLogSection({ issueId, identifier, issueTitle }: Executi
if (activeTasks.length === 0 && pastTasks.length === 0) return null;
- const latest = pastTasks.slice(0, LATEST_PAST_RUNS);
+ const queuedTasks = activeTasks.filter((task) => task.status === "queued");
+ const startedTasks = activeTasks.filter((task) => task.status !== "queued");
+ const groupQueued = queuedTasks.length >= MIN_QUEUED_GROUP;
+ const activeRows = startedTasks.length + (groupQueued ? 1 : queuedTasks.length);
+ const latest = pastTasks.slice(0, Math.max(0, LIST_ROWS - activeRows));
const hiddenCount = pastTasks.length - latest.length;
const openRuns = () => setRunsOpen(true);
@@ -166,15 +176,16 @@ export function ExecutionLogSection({ issueId, identifier, issueTitle }: Executi
)}
{activeTasks.length > 0 && (
<div className="max-h-48 space-y-0.5 overflow-y-auto overscroll-contain rounded-md focus-visible:outline-2 focus-visible:outline-ring" role="region" aria-label={t(($) => $.runs_timeline.count_active, { count: activeTasks.length })} tabIndex={0}>
- {activeTasks.map((task) => <ActiveTaskRow key={task.id} task={task} issueId={issueId} />)}
+ {startedTasks.map((task) => <ActiveTaskRow key={task.id} task={task} issueId={issueId} />)}
+ {groupQueued ? (
+ <QueuedTasksGroup tasks={queuedTasks} issueId={issueId} />
+ ) : (
+ queuedTasks.map((task) => <ActiveTaskRow key={task.id} task={task} issueId={issueId} />)
+ )}
</div>
)}
{latest.length > 0 && <div className="space-y-0.5">
- {activeTasks.length > 0 && <p className="px-2 text-micro text-muted-foreground">{t(($) => $.execution_log.latest)}</p>}
{latest.map((task) => <PastRow key={task.id} task={task} issueId={issueId} />)}
- {hiddenCount > 0 && <button type="button" onClick={openRuns} className="flex min-h-8 w-full items-center rounded-md px-2 text-caption text-muted-foreground hover:bg-accent/50 hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring">
- {t(($) => $.execution_log.more_runs, { count: hiddenCount })}
- </button>}
</div>}
</div>
)}
@@ -203,7 +214,7 @@ function RunTotals({ timeline }: { timeline: RunTimeline }) {
[t(($) => $.runs_timeline.stat_agent_time), formatAgentTime(timeline.agentMs / 1000, "0s")],
] as const;
return (
- <dl className="grid grid-cols-3 gap-2 px-1 pb-2">
+ <dl className="grid grid-cols-3 gap-2 px-1 pb-1.5">
{stats.map(([label, value]) => (
<div key={label} className="flex min-w-0 flex-col-reverse">
<dt className="truncate text-micro text-muted-foreground">{label}</dt>
@@ -221,11 +232,10 @@ function RunTotals({ timeline }: { timeline: RunTimeline }) {
// slabs; past the minimum the slots narrow to fit, up to the maximum.
const MIN_BAR_SLOTS = 20;
const MAX_BAR_SLOTS = 30;
-const MIN_START_LABEL_RUNS = 6;
-const BAR_HEIGHT = 40;
+const BAR_HEIGHT = 24;
// A run that reported no cost still gets a mark, short enough to never read
// as a cheap run.
-const STUB_HEIGHT = 4;
+const STUB_HEIGHT = 3;
function costBarTone(run: TimelineRun): string {
if (run.active) return "bg-info animate-pulse";
@@ -238,10 +248,10 @@ function costBarTone(run: TimelineRun): string {
// One bar per recent run, oldest on the left: height is what the run cost
// against the most expensive one shown, colour is how it ended. It answers
// "which run was expensive, and which failed" at a glance; when it happened
-// is the Runs dialog's job, which clicking the strip opens.
+// is the Runs dialog's job, which clicking the strip opens — so the strip
+// carries no time axis.
function RunCostBars({ timeline, onOpen }: { timeline: RunTimeline; onOpen: () => void }) {
const { t } = useT("issues");
- const locale = useLocale();
const [hoverSlot, setHoverSlot] = useState<number | null>(null);
const shown = timeline.runs.slice(-MAX_BAR_SLOTS);
const slots = Math.max(MIN_BAR_SLOTS, shown.length);
@@ -256,26 +266,6 @@ function RunCostBars({ timeline, onOpen }: { timeline: RunTimeline; onOpen: () =
setHoverSlot(Math.min(Math.max(slot, 0), slots - 1));
};
- // The axis ends: clock times while every shown run is today's, days once
- // they span more; "Now" while a run is still going.
- const first = shown[0]?.startMs ?? 0;
- const last = shown.reduce((m, run) => Math.max(m, run.endMs), first);
- const [startLabel, endLabel] = useMemo(() => {
- const today = new Date().toDateString();
- const hour = new Intl.DateTimeFormat(locale, { hour: "2-digit", minute: "2-digit", hour12: false });
- const day = new Intl.DateTimeFormat(locale, { month: "short", day: "numeric" });
- const allToday = new Date(first).toDateString() === today;
- const end =
- timeline.activeCount > 0
- ? t(($) => $.execution_log.sparkline_now)
- : allToday
- ? hour.format(last)
- : new Date(last).toDateString() === today
- ? t(($) => $.runs_timeline.day_today)
- : day.format(last);
- return [allToday ? hour.format(first) : day.format(first), end];
- }, [first, last, timeline.activeCount, locale, t]);
-
return (
<div className="px-1">
<Tooltip trackCursorAxis="x">
@@ -298,7 +288,7 @@ function RunCostBars({ timeline, onOpen }: { timeline: RunTimeline; onOpen: () =
))}
{shown.map((run) => {
const height = run.usage && maxCost > 0
- ? Math.max(3, (run.usage.cost / maxCost) * BAR_HEIGHT)
+ ? Math.max(2, (run.usage.cost / maxCost) * BAR_HEIGHT)
: STUB_HEIGHT;
return (
<span
@@ -314,16 +304,6 @@ function RunCostBars({ timeline, onOpen }: { timeline: RunTimeline; onOpen: () =
);
})}
</span>
- <span aria-hidden className="mt-1 flex justify-between text-micro tabular-nums text-muted-foreground">
- {/* Under the oldest run, not the empty slots before it — and only
- with runs enough to keep it clear of the end label. */}
- {shown.length >= MIN_START_LABEL_RUNS ? (
- <span style={{ marginLeft: `${(emptySlots / slots) * 100}%` }}>{startLabel}</span>
- ) : (
- <span />
- )}
- <span>{endLabel}</span>
- </span>
</TooltipTrigger>
<TooltipContent className="max-w-64 flex-col items-start gap-0">
{hovered ? <RunBarSummary run={hovered} /> : t(($) => $.execution_log.usage_total_tooltip)}
@@ -601,6 +581,42 @@ export function ActiveTaskRow({
);
}
+// ─── Queued group ──────────────────────────────────────────────────────────
+
+// Several queued runs as one row: who is waiting and how many. Expanding it
+// lists each run in place, with its cancel action.
+function QueuedTasksGroup({ tasks, issueId }: { tasks: AgentTask[]; issueId: string }) {
+ const { t } = useT("issues");
+ const { getActorName } = useActorName();
+ const [expanded, setExpanded] = useState(false);
+ const agentIds = [...new Set(tasks.map((task) => task.agent_id).filter((id): id is string => Boolean(id)))];
+
+ return (
+ <>
+ <button
+ type="button"
+ aria-expanded={expanded}
+ onClick={() => setExpanded((v) => !v)}
+ className="flex w-full items-center gap-2 rounded-md px-2 py-1 text-left transition-colors hover:bg-accent/50 focus-visible:outline-2 focus-visible:outline-ring"
+ >
+ {agentIds.length > 0 ? (
+ <AgentAvatarStack agentIds={agentIds} size="sm" max={3} className="shrink-0" />
+ ) : (
+ <span className="inline-block h-5 w-5 shrink-0 rounded-full bg-muted" />
+ )}
+ <span className="min-w-0 flex-1 truncate text-caption text-muted-foreground">
+ {agentIds.map((id) => getActorName("agent", id)).join(", ")}
+ </span>
+ <span className="flex h-6 shrink-0 items-center gap-1 whitespace-nowrap text-caption text-warning">
+ {t(($) => $.execution_log.queued_count, { count: tasks.length })}
+ <ChevronRight aria-hidden="true" className={cn("size-3 text-faint-foreground transition-transform motion-reduce:transition-none", expanded && "rotate-90")} />
+ </span>
+ </button>
+ {expanded && tasks.map((task) => <ActiveTaskRow key={task.id} task={task} issueId={issueId} />)}
+ </>
+ );
+}
+
// ─── Past row ──────────────────────────────────────────────────────────────
function PastRow({ task, issueId }: { task: AgentTask; issueId: string }) {
@@ -630,32 +646,28 @@ function PastRow({ task, issueId }: { task: AgentTask; issueId: string }) {
? [cancellationLabel, failureLabel].filter(Boolean).join(" · ")
: failureLabel ?? label;
- // Keep per-run usage and model details in the tooltip and Runs dialog.
- // Failure and cancellation reasons remain visible beside the agent name.
+ // A run that ended normally is one line: trigger, status, cost. Agent,
+ // duration, usage and model live in the tooltip and the Runs dialog. Only a
+ // failure or cancellation reason earns a second line, since it is the one
+ // detail that changes what the reader does next.
const usage = summarizeTaskUsage(task.usage);
+ const agentName = task.agent_id ? getActorName("agent", task.agent_id) : null;
const reason = cancellationLabel
? [cancellationLabel, failureLabel].filter(Boolean).join(" · ")
: failureLabel;
+ const duration = task.started_at && task.completed_at
+ ? formatAgentTime((new Date(task.completed_at).getTime() - new Date(task.started_at).getTime()) / 1000, "0s")
+ : null;
const rowTitle = [
+ agentName,
+ reason ? null : duration,
time,
usage ? t(($) => $.runs_timeline.tokens_count, { tokens: formatTokens(usage.tokens) }) : null,
usage?.models.join(", "),
].filter(Boolean).join(" · ");
- const meta: { key: string; node: React.ReactNode }[] = [];
- if (task.agent_id) meta.push({ key: "agent", node: getActorName("agent", task.agent_id) });
- if (reason) {
- meta.push({
- key: "reason",
- node: <span className={task.status === "failed" ? "text-destructive" : undefined}>{reason}</span>,
- });
- } else if (task.started_at && task.completed_at) {
- const seconds = (new Date(task.completed_at).getTime() - new Date(task.started_at).getTime()) / 1000;
- meta.push({ key: "duration", node: formatAgentTime(seconds, "0s") });
- }
-
return (
- <RowShell task={task} title={rowTitle} multiline>
+ <RowShell task={task} title={rowTitle} multiline={Boolean(reason)}>
<div className="min-w-0 flex-1">
<div className="flex min-w-0 items-center gap-2">
{task.wakeup_id ? (
@@ -678,14 +690,15 @@ function PastRow({ task, issueId }: { task: AgentTask; issueId: string }) {
{canRetryRun(task) && <RetryRunButton task={task} issueId={issueId} />}
</RowActions>
</div>
- {meta.length > 0 && (
- <p className="-mt-1 break-words text-micro text-muted-foreground">
- {meta.map((part, i) => (
- <Fragment key={part.key}>
- {i > 0 && <span className="text-faint-foreground"> · </span>}
- {part.node}
- </Fragment>
- ))}
+ {reason && (
+ <p className="break-words text-micro text-muted-foreground">
+ {agentName && (
+ <>
+ {agentName}
+ <span className="text-faint-foreground"> · </span>
+ </>
+ )}
+ <span className={task.status === "failed" ? "text-destructive" : undefined}>{reason}</span>
</p>
)}
</div>
@@ -715,11 +728,11 @@ function RowShell({
<div
title={title || undefined}
className={cn(
- "group/execution-log-row flex gap-2 overflow-hidden rounded-md px-2 py-1.5 transition-colors hover:bg-accent/50",
+ "group/execution-log-row flex gap-2 overflow-hidden rounded-md px-2 py-1 transition-colors hover:bg-accent/50",
multiline ? "items-start" : "items-center",
)}
>
- <span className={cn("flex shrink-0", multiline && "mt-1")}>
+ <span className={cn("flex shrink-0", multiline && "mt-0.5")}>
{task.agent_id ? (
<ActorAvatar
actorType="agent"
@@ -797,7 +810,7 @@ function RowStatus({
return (
<div
title={title}
- className="flex h-7 shrink-0 items-center justify-end gap-1 overflow-hidden whitespace-nowrap text-caption [@media(hover:hover)]:group-hover/execution-log-row:hidden"
+ className="flex h-6 shrink-0 items-center justify-end gap-1 overflow-hidden whitespace-nowrap text-caption [@media(hover:hover)]:group-hover/execution-log-row:hidden"
>
{children}
</div>
@@ -808,7 +821,7 @@ function RowStatus({
// surfaces, it replaces the status column in place on row hover.
function RowActions({ children }: { children: React.ReactNode }) {
return (
- <div className="flex h-7 items-center gap-0.5 [@media(hover:hover)]:hidden [@media(hover:hover)]:group-hover/execution-log-row:flex">
+ <div className="flex h-6 items-center gap-0.5 [@media(hover:hover)]:hidden [@media(hover:hover)]:group-hover/execution-log-row:flex">
{children}
</div>
);
diff --git a/packages/views/issues/components/issue-detail.tsx b/packages/views/issues/components/issue-detail.tsx
index 64c4872334..e1eed695cf 100644
--- a/packages/views/issues/components/issue-detail.tsx
+++ b/packages/views/issues/components/issue-detail.tsx
@@ -4041,7 +4041,7 @@ export function IssueDetail({ issueId, onDelete, onDone, defaultSidebarOpen = tr
<div className="flex flex-1 min-h-0">
{detailContent}
<Sheet open={mobileSidebarOpen} onOpenChange={setMobileSidebarOpen}>
- <SheetContent side="right" showCloseButton={false} className="w-[320px] overflow-y-auto [scrollbar-gutter:stable] p-4">
+ <SheetContent side="right" showCloseButton={false} className="w-[320px] overflow-y-auto [scrollbar-gutter:stable] px-2 py-4">
{sidebarContent}
</SheetContent>
</Sheet>
@@ -4067,7 +4067,9 @@ export function IssueDetail({ issueId, onDelete, onDone, defaultSidebarOpen = tr
panelRef={sidebarRef}
onResize={handleDesktopSidebarResize}
>
- <AnimatedRightSidebar open={desktopSidebarVisualOpen} motionEnabled={desktopSidebarMotionEnabled}>
+ {/* Sections inset their own bodies and rows, so the panel itself only
+ needs a narrow gutter. */}
+ <AnimatedRightSidebar open={desktopSidebarVisualOpen} motionEnabled={desktopSidebarMotionEnabled} contentClassName="px-2 py-4">
{sidebarContent}
</AnimatedRightSidebar>
</ResizablePanel>
diff --git a/packages/views/layout/animated-right-sidebar.tsx b/packages/views/layout/animated-right-sidebar.tsx
index 6eb7046546..450c40f5d6 100644
--- a/packages/views/layout/animated-right-sidebar.tsx
+++ b/packages/views/layout/animated-right-sidebar.tsx
@@ -124,11 +124,13 @@ export function AnimatedRightSidebar({
motionEnabled,
children,
className,
+ contentClassName = "p-4",
}: {
open: boolean;
motionEnabled?: boolean;
children: ReactNode;
className?: string;
+ contentClassName?: string;
}) {
return (
<motion.div
@@ -147,7 +149,7 @@ export function AnimatedRightSidebar({
initial={false}
transition={motionEnabled ? rightSidebarTransition : { duration: 0 }}
>
- <div className="p-4">{children}</div>
+ <div className={contentClassName}>{children}</div>
</motion.div>
);
}
diff --git a/packages/views/locales/en/issues.json b/packages/views/locales/en/issues.json
index 3c81190ccf..70d6e1e0c4 100644
--- a/packages/views/locales/en/issues.json
+++ b/packages/views/locales/en/issues.json
@@ -774,13 +774,13 @@
"trigger_image": "[Image]",
"summary_runs_one": "{{count}} run",
"summary_runs_other": "{{count}} runs",
- "latest": "Latest",
"open_timeline": "Open timeline",
"more_runs_one": "Show {{count}} more",
"more_runs_other": "Show {{count}} more",
"strip_aria": "Cost per run — open the run timeline",
"strip_no_usage": "No usage recorded",
- "sparkline_now": "Now"
+ "queued_count_one": "{{count}} queued",
+ "queued_count_other": "{{count}} queued"
},
"runs_timeline": {
"title": "Runs",
diff --git a/packages/views/locales/fr/issues.json b/packages/views/locales/fr/issues.json
index 3dedb41903..26ee7b4733 100644
--- a/packages/views/locales/fr/issues.json
+++ b/packages/views/locales/fr/issues.json
@@ -773,13 +773,13 @@
"trigger_image": "[Image]",
"summary_runs_one": "{{count}} exécution",
"summary_runs_other": "{{count}} exécutions",
- "latest": "Récentes",
"open_timeline": "Ouvrir la chronologie",
"more_runs_one": "Afficher {{count}} de plus",
"more_runs_other": "Afficher {{count}} de plus",
"strip_aria": "Coût par exécution — ouvrir la chronologie",
"strip_no_usage": "Aucune consommation enregistrée",
- "sparkline_now": "Maintenant"
+ "queued_count_one": "{{count}} en attente",
+ "queued_count_other": "{{count}} en attente"
},
"runs_timeline": {
"title": "Exécutions",
diff --git a/packages/views/locales/ja/issues.json b/packages/views/locales/ja/issues.json
index d2107d75d0..c84661a118 100644
--- a/packages/views/locales/ja/issues.json
+++ b/packages/views/locales/ja/issues.json
@@ -744,12 +744,11 @@
"trigger_wakeup": "起動 · {{condition}}",
"trigger_image": "[画像]",
"summary_runs_other": "{{count}} 回の実行",
- "latest": "最新",
"open_timeline": "タイムラインを開く",
"more_runs_other": "残り {{count}} 件を表示",
"strip_aria": "実行ごとの費用 — 実行タイムラインを開く",
"strip_no_usage": "使用量の記録なし",
- "sparkline_now": "現在"
+ "queued_count_other": "{{count}} 件待機中"
},
"runs_timeline": {
"title": "実行履歴",
diff --git a/packages/views/locales/ko/issues.json b/packages/views/locales/ko/issues.json
index b8b98bcf65..a304f85735 100644
--- a/packages/views/locales/ko/issues.json
+++ b/packages/views/locales/ko/issues.json
@@ -744,12 +744,11 @@
"trigger_wakeup": "깨우기 · {{condition}}",
"trigger_image": "[이미지]",
"summary_runs_other": "실행 {{count}}회",
- "latest": "최근",
"open_timeline": "타임라인 열기",
"more_runs_other": "{{count}}개 더 보기",
"strip_aria": "실행별 비용 — 실행 타임라인 열기",
"strip_no_usage": "사용량 기록 없음",
- "sparkline_now": "지금"
+ "queued_count_other": "{{count}}개 대기 중"
},
"runs_timeline": {
"title": "실행 기록",
diff --git a/packages/views/locales/zh-Hans/issues.json b/packages/views/locales/zh-Hans/issues.json
index 6082c78939..4497e8f121 100644
--- a/packages/views/locales/zh-Hans/issues.json
+++ b/packages/views/locales/zh-Hans/issues.json
@@ -744,12 +744,11 @@
"trigger_wakeup": "由唤醒触发 · {{condition}}",
"trigger_image": "[图片]",
"summary_runs_other": "{{count}} 次运行",
- "latest": "最近",
"open_timeline": "打开时间线",
"more_runs_other": "显示其余 {{count}} 次运行",
"strip_aria": "每次运行的费用——打开运行时间线",
"strip_no_usage": "没有用量记录",
- "sparkline_now": "现在"
+ "queued_count_other": "{{count}} 个排队中"
},
"runs_timeline": {
"title": "运行记录",
diff --git a/packages/views/locales/zh-Hant/issues.json b/packages/views/locales/zh-Hant/issues.json
index e7fd45b59a..a149d63ff0 100644
--- a/packages/views/locales/zh-Hant/issues.json
+++ b/packages/views/locales/zh-Hant/issues.json
@@ -743,12 +743,11 @@
"trigger_wakeup": "由喚醒觸發 · {{condition}}",
"trigger_image": "[圖片]",
"summary_runs_other": "{{count}} 次執行",
- "latest": "最近",
"open_timeline": "開啟時間線",
"more_runs_other": "顯示其餘 {{count}} 次執行",
"strip_aria": "每次執行的費用——開啟執行時間線",
"strip_no_usage": "沒有用量記錄",
- "sparkline_now": "現在"
+ "queued_count_other": "{{count}} 個排隊中"
},
"runs_timeline": {
"title": "執行記錄",