Skip to content

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

Go

feat(views): let readers choose and order issue sidebar sections (MUL-8999) (#10364)

Jiayuan Zhang4c051bfc5cf8
diff --git a/packages/core/issues/stores/index.ts b/packages/core/issues/stores/index.ts
index 0cf7a764d0..4135d07b46 100644
--- a/packages/core/issues/stores/index.ts
+++ b/packages/core/issues/stores/index.ts
@@ -22,6 +22,16 @@ export {
type IssuesScopePageKey,
} from "./issues-scope-store";
export { useCommentCollapseStore } from "./comment-collapse-store";
+export {
+ useIssueSidebarSectionsStore,
+ selectIssueSidebarOrder,
+ selectIssueSidebarCustomized,
+ resolveIssueSidebarOrder,
+ resolveIssueSidebarHidden,
+ ISSUE_SIDEBAR_SECTIONS,
+ ISSUE_SIDEBAR_ALWAYS_SHOWN,
+ type IssueSidebarSection,
+} from "./issue-sidebar-sections-store";
export {
useResolvedExpandStore,
selectExpandedResolved,
diff --git a/packages/core/issues/stores/issue-sidebar-sections-store.test.ts b/packages/core/issues/stores/issue-sidebar-sections-store.test.ts
new file mode 100644
index 0000000000..cd71666526
--- /dev/null
+++ b/packages/core/issues/stores/issue-sidebar-sections-store.test.ts
@@ -0,0 +1,79 @@
+import { beforeEach, describe, expect, it } from "vitest";
+import {
+ ISSUE_SIDEBAR_SECTIONS,
+ resolveIssueSidebarHidden,
+ resolveIssueSidebarOrder,
+ selectIssueSidebarCustomized,
+ selectIssueSidebarOrder,
+ useIssueSidebarSectionsStore,
+} from "./issue-sidebar-sections-store";
+
+describe("resolveIssueSidebarOrder", () => {
+ it("falls back to the default order", () => {
+ expect(resolveIssueSidebarOrder(null)).toEqual([...ISSUE_SIDEBAR_SECTIONS]);
+ });
+
+ it("drops unknown and repeated ids", () => {
+ const order = resolveIssueSidebarOrder(["execution_log", "nope", "execution_log", 3, ...ISSUE_SIDEBAR_SECTIONS]);
+ expect(order[0]).toBe("execution_log");
+ expect(order).toHaveLength(ISSUE_SIDEBAR_SECTIONS.length);
+ expect(new Set(order).size).toBe(order.length);
+ });
+
+ it("puts a section the save predates after the one it follows by default", () => {
+ const saved = ISSUE_SIDEBAR_SECTIONS.filter((id) => id !== "plugins").reverse();
+ const order = resolveIssueSidebarOrder(saved);
+ expect(order.indexOf("plugins")).toBe(order.indexOf("wakeups") + 1);
+ });
+});
+
+describe("resolveIssueSidebarHidden", () => {
+ it("keeps known sections once and never hides properties", () => {
+ expect(resolveIssueSidebarHidden(["details", "details", "properties", "nope"])).toEqual(["details"]);
+ });
+});
+
+describe("useIssueSidebarSectionsStore", () => {
+ beforeEach(() => useIssueSidebarSectionsStore.getState().reset());
+
+ it("stores no order while it matches the default", () => {
+ const { setOrder } = useIssueSidebarSectionsStore.getState();
+ setOrder(["execution_log", ...ISSUE_SIDEBAR_SECTIONS]);
+ expect(selectIssueSidebarOrder(useIssueSidebarSectionsStore.getState())[0]).toBe("execution_log");
+
+ setOrder(ISSUE_SIDEBAR_SECTIONS);
+ expect(useIssueSidebarSectionsStore.getState().order).toBeNull();
+ });
+
+ it("hides and shows sections", () => {
+ const { setHidden } = useIssueSidebarSectionsStore.getState();
+ setHidden("details", true);
+ setHidden("metadata", true);
+ setHidden("properties", true);
+ expect(useIssueSidebarSectionsStore.getState().hidden).toEqual(["details", "metadata"]);
+
+ setHidden("details", false);
+ expect(useIssueSidebarSectionsStore.getState().hidden).toEqual(["metadata"]);
+ });
+
+ it("resets order and visibility together", () => {
+ const state = useIssueSidebarSectionsStore.getState();
+ state.setOrder(["metadata"]);
+ state.setHidden("apps", true);
+ expect(selectIssueSidebarCustomized(useIssueSidebarSectionsStore.getState())).toBe(true);
+
+ useIssueSidebarSectionsStore.getState().reset();
+ expect(selectIssueSidebarCustomized(useIssueSidebarSectionsStore.getState())).toBe(false);
+ });
+
+ it("sanitizes what it reads back from storage", () => {
+ const { merge } = useIssueSidebarSectionsStore.persist.getOptions();
+ const state = merge!(
+ { order: ["metadata", "bogus", ...ISSUE_SIDEBAR_SECTIONS], hidden: ["properties", "apps"] },
+ useIssueSidebarSectionsStore.getState(),
+ );
+ expect(state.order?.[0]).toBe("metadata");
+ expect(state.order).toHaveLength(ISSUE_SIDEBAR_SECTIONS.length);
+ expect(state.hidden).toEqual(["apps"]);
+ });
+});
diff --git a/packages/core/issues/stores/issue-sidebar-sections-store.ts b/packages/core/issues/stores/issue-sidebar-sections-store.ts
new file mode 100644
index 0000000000..b410f6bead
--- /dev/null
+++ b/packages/core/issues/stores/issue-sidebar-sections-store.ts
@@ -0,0 +1,104 @@
+"use client";
+
+import { create } from "zustand";
+import { createJSONStorage, persist } from "zustand/middleware";
+import { defaultStorage } from "../../platform/storage";
+
+/** The issue sidebar's sections, in their default order. */
+export const ISSUE_SIDEBAR_SECTIONS = [
+ "properties",
+ "quick_actions",
+ "wakeups",
+ "plugins",
+ "parent",
+ "duplicates",
+ "pull_requests",
+ "environments",
+ "deliverables",
+ "apps",
+ "execution_log",
+ "details",
+ "metadata",
+] as const;
+
+export type IssueSidebarSection = (typeof ISSUE_SIDEBAR_SECTIONS)[number];
+
+/** Sections every issue shows. They can move, but not be hidden. */
+export const ISSUE_SIDEBAR_ALWAYS_SHOWN: readonly IssueSidebarSection[] = ["properties"];
+
+const SECTION_IDS = new Set<string>(ISSUE_SIDEBAR_SECTIONS);
+const isSection = (id: unknown): id is IssueSidebarSection => typeof id === "string" && SECTION_IDS.has(id);
+
+/**
+ * The sections in the user's order. Unknown and repeated ids are dropped; a
+ * section missing from the saved order (one added since it was saved) is
+ * placed right after the section it follows by default.
+ */
+export function resolveIssueSidebarOrder(saved: readonly unknown[] | null): IssueSidebarSection[] {
+ if (!saved) return [...ISSUE_SIDEBAR_SECTIONS];
+ const order = [...new Set(saved)].filter(isSection);
+ ISSUE_SIDEBAR_SECTIONS.forEach((id, i) => {
+ if (order.includes(id)) return;
+ const previous = i === 0 ? -1 : order.indexOf(ISSUE_SIDEBAR_SECTIONS[i - 1]!);
+ order.splice(previous + 1, 0, id);
+ });
+ return order;
+}
+
+/** Known sections the user hid, without repeats or the always-shown ones. */
+export function resolveIssueSidebarHidden(saved: readonly unknown[] | null): IssueSidebarSection[] {
+ if (!saved) return [];
+ return [...new Set(saved)].filter(
+ (id): id is IssueSidebarSection => isSection(id) && !ISSUE_SIDEBAR_ALWAYS_SHOWN.includes(id),
+ );
+}
+
+interface IssueSidebarSectionsState {
+ /** `null` until the user reorders, so the default order can still evolve. */
+ order: IssueSidebarSection[] | null;
+ hidden: IssueSidebarSection[];
+ setOrder: (order: readonly IssueSidebarSection[]) => void;
+ setHidden: (section: IssueSidebarSection, hidden: boolean) => void;
+ reset: () => void;
+}
+
+/** This device's issue sidebar sections, shared by every issue and workspace. */
+export const useIssueSidebarSectionsStore = create<IssueSidebarSectionsState>()(
+ persist(
+ (set, get) => ({
+ order: null,
+ hidden: [],
+ setOrder: (next) => {
+ const order = resolveIssueSidebarOrder(next);
+ const isDefault = order.every((id, i) => id === ISSUE_SIDEBAR_SECTIONS[i]);
+ set({ order: isDefault ? null : order });
+ },
+ setHidden: (section, hidden) => {
+ const current = get().hidden.filter((id) => id !== section);
+ set({ hidden: resolveIssueSidebarHidden(hidden ? [...current, section] : current) });
+ },
+ reset: () => set({ order: null, hidden: [] }),
+ }),
+ {
+ name: "multica_issue_sidebar_sections",
+ storage: createJSONStorage(() => defaultStorage),
+ partialize: (state) => ({ order: state.order, hidden: state.hidden }),
+ merge: (persisted, current) => {
+ const saved = persisted as { order?: unknown; hidden?: unknown } | undefined;
+ const order = Array.isArray(saved?.order) ? resolveIssueSidebarOrder(saved.order) : null;
+ const isDefault = order?.every((id, i) => id === ISSUE_SIDEBAR_SECTIONS[i]) ?? true;
+ return {
+ ...current,
+ order: isDefault ? null : order,
+ hidden: Array.isArray(saved?.hidden) ? resolveIssueSidebarHidden(saved.hidden) : [],
+ };
+ },
+ },
+ ),
+);
+
+export const selectIssueSidebarOrder = (state: IssueSidebarSectionsState): readonly IssueSidebarSection[] =>
+ state.order ?? ISSUE_SIDEBAR_SECTIONS;
+
+export const selectIssueSidebarCustomized = (state: IssueSidebarSectionsState) =>
+ state.order !== null || state.hidden.length > 0;
diff --git a/packages/views/issues/components/issue-detail.test.tsx b/packages/views/issues/components/issue-detail.test.tsx
index 0eb808e511..46f9c349d3 100644
--- a/packages/views/issues/components/issue-detail.test.tsx
+++ b/packages/views/issues/components/issue-detail.test.tsx
@@ -17,6 +17,13 @@ import {
import enAgents from "../../locales/en/agents.json";
import enCommon from "../../locales/en/common.json";
import enIssues from "../../locales/en/issues.json";
+import { useIssueSidebarSectionsStore } from "@multica/core/issues/stores/issue-sidebar-sections-store";
+
+vi.mock("./issue-wakeup-header-chip", () => ({
+ IssueWakeupHeaderChip: ({ onOpen }: { onOpen: () => void }) => (
+ <button type="button" onClick={onOpen}>Review open wakeups</button>
+ ),
+}));
const TEST_RESOURCES = { en: { agents: enAgents, common: enCommon, issues: enIssues } };
@@ -388,6 +395,10 @@ vi.mock("@multica/core/issues/stores", async () => ({
...(await vi.importActual<
typeof import("@multica/core/issues/stores/sub-issues-collapse-store")
>("@multica/core/issues/stores/sub-issues-collapse-store")),
+ // Real store, in-memory: the sidebar reads its section order and visibility.
+ ...(await vi.importActual<
+ typeof import("@multica/core/issues/stores/issue-sidebar-sections-store")
+ >("@multica/core/issues/stores/issue-sidebar-sections-store")),
useRecentIssuesStore: Object.assign(
(selector?: any) => {
const state = { byWorkspace: {}, recordVisit: mockRecordVisit, pruneWorkspaces: vi.fn() };
@@ -825,6 +836,66 @@ describe("IssueDetail (shared)", () => {
// Reset project mock — individual tests override per case. Default fixture
// has project_id: null so getProject is not invoked.
mockApiObj.getProject.mockReset();
+ useIssueSidebarSectionsStore.getState().reset();
+ });
+
+ describe("sidebar section settings", () => {
+ const wakeupsSlot = (container: HTMLElement) => container.querySelector('[data-issue-sidebar-section="wakeups"]');
+ const wakeupsSwitch = async () => {
+ fireEvent.click(screen.getByRole("button", { name: "Customize sidebar" }));
+ return within(await screen.findByRole("dialog")).getByRole("switch", { name: "Wakeups" });
+ };
+
+ it("hides wakeups from settings after the header chip opened them", async () => {
+ const { container } = renderIssueDetail();
+ fireEvent.click(await screen.findByRole("button", { name: "Review open wakeups" }));
+ expect(wakeupsSlot(container)).not.toBeNull();
+
+ fireEvent.click(await wakeupsSwitch());
+ expect(useIssueSidebarSectionsStore.getState().hidden).toContain("wakeups");
+ expect(wakeupsSlot(container)).toBeNull();
+ });
+
+ it("lets settings hide again the wakeups the header chip revealed", async () => {
+ useIssueSidebarSectionsStore.getState().setHidden("wakeups", true);
+ const { container } = renderIssueDetail();
+ fireEvent.click(await screen.findByRole("button", { name: "Review open wakeups" }));
+ expect(wakeupsSlot(container)).not.toBeNull();
+ expect(useIssueSidebarSectionsStore.getState().hidden).toContain("wakeups");
+
+ const toggle = await wakeupsSwitch();
+ fireEvent.click(toggle);
+ expect(useIssueSidebarSectionsStore.getState().hidden).not.toContain("wakeups");
+ fireEvent.click(toggle);
+ expect(useIssueSidebarSectionsStore.getState().hidden).toContain("wakeups");
+ expect(wakeupsSlot(container)).toBeNull();
+ });
+
+ it("ends the header chip's reveal when the reader moves to another issue", async () => {
+ useIssueSidebarSectionsStore.getState().setHidden("wakeups", true);
+ const issue2 = { ...mockIssue, id: "issue-2", title: "Second issue", description: "Second description" };
+ mockApiObj.getIssue.mockImplementation((issueId: string) =>
+ Promise.resolve(issueId === "issue-2" ? issue2 : mockIssue),
+ );
+ const queryClient = createTestQueryClient();
+ queryClient.setQueryData(["issues", "ws-1", "detail", "issue-2"], issue2);
+ const ui = (issueId: string) => (
+ <I18nProvider locale="en" resources={TEST_RESOURCES}>
+ <QueryClientProvider client={queryClient}>
+ <IssueDetail issueId={issueId} />
+ </QueryClientProvider>
+ </I18nProvider>
+ );
+ const { container, rerender } = render(ui("issue-1"));
+ fireEvent.click(await screen.findByRole("button", { name: "Review open wakeups" }));
+ expect(wakeupsSlot(container)).not.toBeNull();
+
+ rerender(ui("issue-2"));
+ await screen.findByDisplayValue("Second description");
+ rerender(ui("issue-1"));
+ await screen.findByDisplayValue("Add JWT auth to the backend");
+ expect(wakeupsSlot(container)).toBeNull();
+ });
});
it("passes the issue's agent assignment to the local-directory hint", async () => {
diff --git a/packages/views/issues/components/issue-detail.tsx b/packages/views/issues/components/issue-detail.tsx
index 67564fe0b1..2541ad83b5 100644
--- a/packages/views/issues/components/issue-detail.tsx
+++ b/packages/views/issues/components/issue-detail.tsx
@@ -124,6 +124,8 @@ import { PluginPanelSection } from "../../plugins";
import { PullRequestsSection } from "./pull-requests-section";
import { IssueEnvironmentsSection } from "./issue-environments-section";
import { useGitHubSettings } from "@multica/core/github";
+import { useFeatureEnabled } from "@multica/core/config";
+import { PLUGINS_V1_FLAG } from "@multica/core/feature-flags";
import { DeliverablesSection } from "./deliverables/deliverables-section";
import { IssueAppsSection } from "./issue-apps-section";
import { DeliverablesOverview } from "./deliverables/deliverables-overview";
@@ -169,6 +171,8 @@ import {
SUB_ISSUE_ROW_PROPERTY_KEYS,
type SubIssueRowProperties,
type SubIssueRowPropertyKey,
+ ISSUE_SIDEBAR_SECTIONS,
+ type IssueSidebarSection,
} from "@multica/core/issues/stores";
import { BatchActionToolbar } from "./batch-action-toolbar";
import {
@@ -199,7 +203,8 @@ import { useShowInSidebar } from "../../layout/panels/show-in-sidebar";
import { ProgressRing } from "./progress-ring";
import { matchesPinyin } from "../../editor/extensions/pinyin-match";
import { MetadataSection } from "./metadata-section";
-import { IssueSidebarSectionHeader, IssueSidebarStack, IssueSidebarPropertyGrid } from "./issue-sidebar-section";
+import { IssueSidebarSectionHeader, IssueSidebarPropertyGrid } from "./issue-sidebar-section";
+import { IssueSidebarSections, letSidebarSettingsDragKeysThrough } from "./issue-sidebar-settings";
import { useT } from "../../i18n";
import { useIssueDetailScrollRestore } from "../hooks/use-issue-detail-scroll-restore";
import { useIssueTimelineAnchor } from "../hooks/use-issue-timeline-anchor";
@@ -1378,6 +1383,7 @@ export function IssueLoadError({
// Loading skeleton
const ISSUE_DETAIL_LAYOUT_ID = "multica_issue_detail_layout";
+const REVEALED_WAKEUPS: readonly IssueSidebarSection[] = ["wakeups"];
/**
* Exported so `IssueDetailRoute` can show the identical frame while it resolves
@@ -1536,6 +1542,7 @@ export function IssueDetail({ issueId, onDelete, onDone, defaultSidebarOpen = tr
const [parentIssueOpen, setParentIssueOpen] = useState(true);
const [pullRequestsOpen, setPullRequestsOpen] = useState(true);
const githubSettings = useGitHubSettings();
+ const pluginsEnabled = useFeatureEnabled(PLUGINS_V1_FLAG, false);
// Per-issue, per-session set of optional properties currently visible in
// the sidebar Properties section. Seeded on issue switch with whichever
@@ -2893,8 +2900,13 @@ export function IssueDetail({ issueId, onDelete, onDone, defaultSidebarOpen = tr
}, [beginDesktopSidebarToggle, isMobile, sidebarRef]);
// The header's wakeup chip opens the sidebar and brings the Wakeups section
- // into view with focus on its heading.
+ // into view with focus on its heading, showing it on this issue even when
+ // the reader hid it from the sidebar. The reveal lasts until the reader
+ // switches the section in settings or moves to another issue.
+ const [revealedWakeupsFor, setRevealedWakeupsFor] = useState<string | null>(null);
+ if (revealedWakeupsFor !== null && revealedWakeupsFor !== id) setRevealedWakeupsFor(null);
const openWakeups = useCallback(() => {
+ setRevealedWakeupsFor(id);
if (!sidebarOpen) handleToggleSidebar();
window.requestAnimationFrame(() => {
const heading = document.getElementById(`issue-wakeups-${id}`);
@@ -3094,9 +3106,8 @@ export function IssueDetail({ issueId, onDelete, onDone, defaultSidebarOpen = tr
</div>
);
- const sidebarContent = (
- <IssueSidebarStack>
- {/* Properties */}
+ const sidebarSections: Record<IssueSidebarSection, ReactNode> = {
+ properties: (
<div>
<IssueSidebarSectionHeader title={t(($) => $.detail.section_properties)} open={propertiesOpen} onOpenChange={setPropertiesOpen} />
{propertiesOpen && <IssueSidebarPropertyGrid>
@@ -3209,22 +3220,21 @@ export function IssueDetail({ issueId, onDelete, onDone, defaultSidebarOpen = tr
{addPropertyRow}
</IssueSidebarPropertyGrid>}
</div>
-
- <QuickActionsSection issueId={issue.id} />
-
+ ),
+ quick_actions: <QuickActionsSection issueId={issue.id} />,
+ wakeups: (
<WakeupsSection
issueId={issue.id}
closed={["done", "closed"].includes(resolveStatusCategory(issue.status))}
defaultAgentId={issue.assignee_type === "agent" ? (issue.assignee_id ?? undefined) : undefined}
/>
-
- <PluginPanelSection issueId={issue.id} />
-
- {/* Parent issue — standalone section, only when the issue has a
- parent. Setting a parent is reachable via the issue actions menu;
- this card surfaces an existing parent without occupying sidebar
- space for issues that don't have one. */}
- {parentIssue && (
+ ),
+ plugins: <PluginPanelSection issueId={issue.id} />,
+ // Parent issue — standalone section, only when the issue has a
+ // parent. Setting a parent is reachable via the issue actions menu;
+ // this card surfaces an existing parent without occupying sidebar
+ // space for issues that don't have one.
+ parent: parentIssue && (
<div>
<IssueSidebarSectionHeader title={t(($) => $.detail.section_parent_issue)} open={parentIssueOpen} onOpenChange={setParentIssueOpen}
actions={<IconButton size="icon-xs" label={t(($) => $.actions.remove_parent_issue)} onClick={() => actions.removeParent()}><Unlink /></IconButton>} />
@@ -3248,43 +3258,39 @@ export function IssueDetail({ issueId, onDelete, onDone, defaultSidebarOpen = tr
</div>
</div>}
</div>
- )}
-
- <IssueDuplicatesSection issueId={issue.id} />
-
- {/* Pull requests — hidden when the workspace disables the PR sidebar
- (or the GitHub master switch is off). Backend data is kept either
- way so re-enabling restores the section instantly. */}
- {githubSettings.prSidebar && (
- <PullRequestsSection
- issueId={id}
- identifier={issue.identifier}
- open={pullRequestsOpen}
- onOpenChange={setPullRequestsOpen}
- />
- )}
-
- {/* Environments the issue's runs left running, and the "+" that starts one. */}
- <IssueEnvironmentsSection issueId={id} assigneeType={issue.assignee_type} assigneeId={issue.assignee_id} />
-
- {/* Deliverables — the files this issue's comments delivered. Hidden
- while there are none. */}
+ ),
+ duplicates: <IssueDuplicatesSection issueId={issue.id} />,
+ // Pull requests — unavailable when the workspace disables the PR sidebar
+ // (or the GitHub master switch is off). Backend data is kept either
+ // way so re-enabling restores the section instantly.
+ pull_requests: (
+ <PullRequestsSection
+ issueId={id}
+ identifier={issue.identifier}
+ open={pullRequestsOpen}
+ onOpenChange={setPullRequestsOpen}
+ />
+ ),
+ // Environments the issue's runs left running, and the "+" that starts one.
+ environments: <IssueEnvironmentsSection issueId={id} assigneeType={issue.assignee_type} assigneeId={issue.assignee_id} />,
+ // Deliverables — the files this issue's comments delivered. Hidden
+ // while there are none.
+ deliverables: (
<DeliverablesSection
files={deliverableFiles}
onOpenOverview={openOverview}
onCopyLink={copyDeliverableLink}
/>
-
- {/* Apps the issue's runs used. Hidden until one makes a call. */}
- <IssueAppsSection issueId={id} />
-
- {/* Execution summary owns its query, realtime updates and disclosure. */}
- <ExecutionLogSection key={id} issueId={id} identifier={issue.identifier} issueTitle={issue.title} hasChildren={childIssues.length > 0} />
-
- {/* Details — creator and timestamps. Sits below the execution log
- because it is the least-read block in the sidebar: the values
- never change once the issue exists, while the log above it is
- what people actually come here to check. */}
+ ),
+ // Apps the issue's runs used. Hidden until one makes a call.
+ apps: <IssueAppsSection issueId={id} />,
+ // Execution summary owns its query, realtime updates and disclosure.
+ execution_log: <ExecutionLogSection key={id} issueId={id} identifier={issue.identifier} issueTitle={issue.title} hasChildren={childIssues.length > 0} />,
+ // Details — creator and timestamps. Defaults to below the execution
+ // log because it is the least-read block in the sidebar: the values
+ // never change once the issue exists, while the log above it is
+ // what people actually come here to check.
+ details: (
<div>
<IssueSidebarSectionHeader title={t(($) => $.detail.section_details)} open={detailsOpen} onOpenChange={setDetailsOpen} />
{detailsOpen && <IssueSidebarPropertyGrid>
@@ -3300,9 +3306,19 @@ export function IssueDetail({ issueId, onDelete, onDone, defaultSidebarOpen = tr
</PropRow>
</IssueSidebarPropertyGrid>}
</div>
+ ),
+ metadata: <MetadataSection metadata={issue.metadata ?? {}} />,
+ };
- <MetadataSection metadata={issue.metadata ?? {}} />
- </IssueSidebarStack>
+ const sidebarContent = (
+ <IssueSidebarSections
+ sections={sidebarSections}
+ available={ISSUE_SIDEBAR_SECTIONS.filter(
+ (section) => (section !== "pull_requests" || githubSettings.prSidebar) && (section !== "plugins" || pluginsEnabled),
+ )}
+ revealed={revealedWakeupsFor === id ? REVEALED_WAKEUPS : undefined}
+ onRevealEnd={() => setRevealedWakeupsFor(null)}
+ />
);
// Shared row renderer for both timeline render modes (flat / virtualized).
@@ -4256,7 +4272,12 @@ 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] px-2 py-4">
+ <SheetContent
+ side="right"
+ showCloseButton={false}
+ className="w-[320px] overflow-y-auto [scrollbar-gutter:stable] px-2 py-4"
+ onKeyDown={letSidebarSettingsDragKeysThrough}
+ >
{sidebarContent}
</SheetContent>
</Sheet>
diff --git a/packages/views/issues/components/issue-sidebar-section.tsx b/packages/views/issues/components/issue-sidebar-section.tsx
index 4bad1eebfb..c7e7c28246 100644
--- a/packages/views/issues/components/issue-sidebar-section.tsx
+++ b/packages/views/issues/components/issue-sidebar-section.tsx
@@ -25,7 +25,7 @@ export function IssueSidebarSectionHeader({
id?: string;
}) {
return (
- <div className="mb-1 flex min-w-0 items-center gap-1 px-2">
+ <div data-slot="issue-sidebar-section-header" className="mb-1 flex min-w-0 items-center gap-1 px-2">
{collapsible ? <Button
id={id}
type="button"
@@ -55,8 +55,8 @@ export function IssueSidebarSectionHeader({
}
/** Shared spacing separates rendered sections without adding divider lines. */
-export function IssueSidebarStack({ children }: { children: ReactNode }) {
- return <div className="flex flex-col gap-6 [overflow-anchor:none] [&>*]:flow-root">{children}</div>;
+export function IssueSidebarStack({ children, className }: { children: ReactNode; className?: string }) {
+ return <div className={cn("flex flex-col gap-6 [overflow-anchor:none] [&>*]:flow-root", className)}>{children}</div>;
}
/** Fits labels to their content while reserving space for values and the hover gutter. */
diff --git a/packages/views/issues/components/issue-sidebar-settings.test.tsx b/packages/views/issues/components/issue-sidebar-settings.test.tsx
new file mode 100644
index 0000000000..3d0ef0e351
--- /dev/null
+++ b/packages/views/issues/components/issue-sidebar-settings.test.tsx
@@ -0,0 +1,110 @@
+import { act, fireEvent, render, screen, within } from "@testing-library/react";
+import { beforeEach, describe, expect, it, vi } from "vitest";
+import { I18nProvider } from "@multica/core/i18n/react";
+import {
+ ISSUE_SIDEBAR_SECTIONS,
+ useIssueSidebarSectionsStore,
+ type IssueSidebarSection,
+} from "@multica/core/issues/stores";
+import enCommon from "../../locales/en/common.json";
+import enIssues from "../../locales/en/issues.json";
+import { IssueSidebarSections, letSidebarSettingsDragKeysThrough } from "./issue-sidebar-settings";
+
+const TEST_RESOURCES = { en: { common: enCommon, issues: enIssues } };
+
+// Every section renders its id, except Apps, which has nothing on this issue.
+const sections = Object.fromEntries(
+ ISSUE_SIDEBAR_SECTIONS.map((id) => [id, id === "apps" ? null : <section>{`body:${id}`}</section>]),
+) as Record<IssueSidebarSection, React.ReactNode>;
+const available = ISSUE_SIDEBAR_SECTIONS.filter((id) => id !== "plugins");
+
+function renderSections(revealed?: IssueSidebarSection[]) {
+ return render(
+ <I18nProvider resources={TEST_RESOURCES} locale="en">
+ <IssueSidebarSections sections={sections} available={available} revealed={revealed} />
+ </I18nProvider>,
+ );
+}
+
+const renderedOrder = () => screen.getAllByText(/^body:/).map((el) => el.textContent!.slice("body:".length));
+
+async function openSettings() {
+ fireEvent.click(screen.getByRole("button", { name: "Customize sidebar" }));
+ return screen.findByRole("dialog");
+}
+
+describe("IssueSidebarSections", () => {
+ beforeEach(() => useIssueSidebarSectionsStore.getState().reset());
+
+ it("renders the available sections in the default order", () => {
+ renderSections();
+ expect(renderedOrder()).toEqual(available.filter((id) => id !== "apps"));
+ });
+
+ it("follows the saved order and leaves hidden sections out", () => {
+ act(() => {
+ useIssueSidebarSectionsStore.getState().setOrder(["execution_log", ...ISSUE_SIDEBAR_SECTIONS]);
+ useIssueSidebarSectionsStore.getState().setHidden("details", true);
+ useIssueSidebarSectionsStore.getState().setHidden("metadata", true);
+ });
+ renderSections();
+
+ expect(renderedOrder().slice(0, 2)).toEqual(["execution_log", "properties"]);
+ expect(screen.queryByText("body:details")).toBeNull();
+ expect(screen.getByRole("button", { name: /2 sections hidden/ })).toBeInTheDocument();
+ });
+
+ it("shows a hidden section the reader jumped to", () => {
+ act(() => useIssueSidebarSectionsStore.getState().setHidden("wakeups", true));
+ renderSections(["wakeups"]);
+ expect(screen.getByText("body:wakeups")).toBeInTheDocument();
+ expect(screen.queryByRole("button", { name: /hidden/ })).toBeNull();
+ });
+
+ it("lists the available sections, marks the empty and locked ones, and hides on toggle", async () => {
+ renderSections();
+ const dialog = await openSettings();
+
+ expect(within(dialog).queryByRole("switch", { name: "Plugins" })).toBeNull();
+ expect(within(dialog).getByRole("switch", { name: "Properties" })).toHaveAttribute("aria-disabled", "true");
+ expect(within(dialog).getByText("Always shown")).toBeInTheDocument();
+ expect(within(dialog).getByRole("switch", { name: "Apps" }).closest("li")).toHaveTextContent("None on this issue");
+
+ fireEvent.click(within(dialog).getByRole("switch", { name: "Details" }));
+ expect(useIssueSidebarSectionsStore.getState().hidden).toEqual(["details"]);
+ expect(screen.queryByText("body:details")).toBeNull();
+
+ fireEvent.click(within(dialog).getByRole("button", { name: /Reset/ }));
+ expect(useIssueSidebarSectionsStore.getState().hidden).toEqual([]);
+ expect(screen.getByText("body:details")).toBeInTheDocument();
+ });
+
+ it("opens settings from the hidden-sections hint", async () => {
+ act(() => useIssueSidebarSectionsStore.getState().setHidden("metadata", true));
+ renderSections();
+
+ fireEvent.click(screen.getByRole("button", { name: /1 section hidden/ }));
+ const dialog = await screen.findByRole("dialog");
+ expect(within(dialog).getByRole("switch", { name: "Metadata" })).not.toBeChecked();
+ });
+});
+
+describe("letSidebarSettingsDragKeysThrough", () => {
+ const keyDownOn = (target: EventTarget) => {
+ const preventBaseUIHandler = vi.fn();
+ letSidebarSettingsDragKeysThrough({ target, preventBaseUIHandler } as unknown as Parameters<
+ typeof letSidebarSettingsDragKeysThrough
+ >[0]);
+ return preventBaseUIHandler;
+ };
+
+ it("lets keys out of the dialog only while a settings row is held", () => {
+ const handle = document.createElement("button");
+ handle.setAttribute("data-sidebar-settings-handle", "");
+ expect(keyDownOn(handle)).not.toHaveBeenCalled();
+
+ handle.setAttribute("aria-pressed", "true");
+ expect(keyDownOn(handle)).toHaveBeenCalledOnce();
+ expect(keyDownOn(document.createElement("button"))).not.toHaveBeenCalled();
+ });
+});
diff --git a/packages/views/issues/components/issue-sidebar-settings.tsx b/packages/views/issues/components/issue-sidebar-settings.tsx
new file mode 100644
index 0000000000..e9ba0817c0
--- /dev/null
+++ b/packages/views/issues/components/issue-sidebar-settings.tsx
@@ -0,0 +1,297 @@
+"use client";
+
+import { useRef, useState, type KeyboardEvent, type ReactElement, type ReactNode } from "react";
+import {
+ DndContext,
+ KeyboardSensor,
+ PointerSensor,
+ closestCenter,
+ useSensor,
+ useSensors,
+ type DragEndEvent,
+} from "@dnd-kit/core";
+import { restrictToParentElement, restrictToVerticalAxis } from "@dnd-kit/modifiers";
+import {
+ SortableContext,
+ arrayMove,
+ sortableKeyboardCoordinates,
+ useSortable,
+ verticalListSortingStrategy,
+} from "@dnd-kit/sortable";
+import { CSS } from "@dnd-kit/utilities";
+import { EyeOff, GripVertical, RotateCcw, SlidersHorizontal } from "@multica/ui/icons";
+import { IconButton } from "@multica/ui/components/common/icon-button";
+import { Popover, PopoverContent, PopoverTrigger } from "@multica/ui/components/ui/popover";
+import { Switch } from "@multica/ui/components/ui/switch";
+import { cn } from "@multica/ui/lib/utils";
+import {
+ ISSUE_SIDEBAR_ALWAYS_SHOWN,
+ selectIssueSidebarCustomized,
+ selectIssueSidebarOrder,
+ useIssueSidebarSectionsStore,
+ type IssueSidebarSection,
+} from "@multica/core/issues/stores";
+import { useT } from "../../i18n";
+import { IssueSidebarStack } from "./issue-sidebar-section";
+
+const DRAG_MODIFIERS = [restrictToVerticalAxis, restrictToParentElement];
+
+/**
+ * Keyboard reordering listens for arrow keys on the document, but a Base UI
+ * dialog (the mobile sidebar sheet) stops them from leaving it. Pass this as
+ * the dialog popup's onKeyDown to let them through while a row is held.
+ */
+export function letSidebarSettingsDragKeysThrough(event: KeyboardEvent & { preventBaseUIHandler: () => void }) {
+ if (event.target instanceof Element && event.target.closest('[data-sidebar-settings-handle][aria-pressed="true"]')) {
+ event.preventBaseUIHandler();
+ }
+}
+
+export function useIssueSidebarSectionLabels(): Record<IssueSidebarSection, string> {
+ const { t } = useT("issues");
+ return {
+ properties: t(($) => $.detail.section_properties),
+ quick_actions: t(($) => $.detail.section_quick_actions),
+ wakeups: t(($) => $.wakeups.title),
+ plugins: t(($) => $.plugins.panels),
+ parent: t(($) => $.detail.section_parent_issue),
+ duplicates: t(($) => $.duplicates.section_title),
+ pull_requests: t(($) => $.detail.section_pull_requests),
+ environments: t(($) => $.environments.section_title),
+ deliverables: t(($) => $.deliverables.section_title),
+ apps: t(($) => $.app_calls.section_title),
+ execution_log: t(($) => $.execution_log.section),
+ details: t(($) => $.detail.section_details),
+ metadata: t(($) => $.detail.section_metadata),
+ };
+}
+
+/**
+ * The issue sidebar's sections in the reader's order, minus the ones they
+ * hid. Each section sits in its own slot, which collapses while the section
+ * renders nothing; that is how settings tells an empty section from a shown one.
+ */
+export function IssueSidebarSections({
+ sections,
+ available,
+ revealed = [],
+ onRevealEnd,
+}: {
+ sections: Record<IssueSidebarSection, ReactNode>;
+ available: readonly IssueSidebarSection[];
+ /**
+ * Hidden sections to show anyway, such as the one a header chip jumped to.
+ * Switching one of them in settings ends its reveal, so the switch wins.
+ */
+ revealed?: readonly IssueSidebarSection[];
+ onRevealEnd?: (section: IssueSidebarSection) => void;
+}) {
+ const { t } = useT("issues");
+ const order = useIssueSidebarSectionsStore(selectIssueSidebarOrder);
+ const hidden = useIssueSidebarSectionsStore((s) => s.hidden);
+ const containerRef = useRef<HTMLDivElement>(null);
+
+ const isShown = (id: IssueSidebarSection) => !hidden.includes(id) || revealed.includes(id);
+ const visible = order.filter((id) => available.includes(id) && isShown(id));
+ const hiddenCount = available.filter((id) => !isShown(id)).length;
+ const onShownChange = (id: IssueSidebarSection) => {
+ if (revealed.includes(id)) onRevealEnd?.(id);
+ };
+ const getEmptySections = () =>
+ new Set(
+ visible.filter(
+ (id) => containerRef.current?.querySelector(`[data-issue-sidebar-section="${id}"]`)?.childElementCount === 0,
+ ),
+ );
+
+ return (
+ <div ref={containerRef} className="relative">
+ <IssueSidebarSettings
+ available={available}
+ getEmptySections={getEmptySections}
+ onShownChange={onShownChange}
+ trigger={
+ <IconButton
+ variant="ghost"
+ size="icon-xs"
+ label={t(($) => $.detail.sidebar_settings.open)}
+ className="absolute top-0.5 right-2 z-10 text-muted-foreground data-popup-open:bg-accent data-popup-open:text-foreground"
+ >
+ <SlidersHorizontal />
+ </IconButton>
+ }
+ />
+ {/* The first header to render shares its row with the settings button. */}
+ <IssueSidebarStack className="[&>:nth-child(1_of_:not(:empty))>*>[data-slot=issue-sidebar-section-header]]:pr-9">
+ {visible.map((id) => (
+ <div key={id} data-issue-sidebar-section={id} className="empty:hidden">
+ {sections[id]}
+ </div>
+ ))}
+ {hiddenCount > 0 && (
+ <div className="px-2">
+ <IssueSidebarSettings
+ available={available}
+ getEmptySections={getEmptySections}
+ onShownChange={onShownChange}
+ side="top"
+ align="start"
+ trigger={
+ <button
+ type="button"
+ className="flex h-7 max-w-full items-center gap-1.5 rounded-md px-2 text-caption text-muted-foreground transition-colors hover:bg-accent/50"
+ >
+ <EyeOff className="size-3.5 shrink-0" />
+ <span className="truncate">{t(($) => $.detail.sidebar_settings.hidden_count, { count: hiddenCount })}</span>
+ <span aria-hidden="true" className="text-faint-foreground">·</span>
+ <span className="shrink-0 font-medium text-foreground">{t(($) => $.detail.sidebar_settings.customize)}</span>
+ </button>
+ }
+ />
+ </div>
+ )}
+ </IssueSidebarStack>
+ </div>
+ );
+}
+
+/**
+ * Chooses which sections the issue sidebar shows and in what order. Changes
+ * apply as they are made and hold for every issue on this device.
+ */
+export function IssueSidebarSettings({
+ available,
+ trigger,
+ getEmptySections,
+ onShownChange,
+ side = "bottom",
+ align = "end",
+}: {
+ /** Sections this sidebar can show at all; the rest stay out of the list. */
+ available: readonly IssueSidebarSection[];
+ trigger: ReactElement;
+ /** Shown sections with nothing to render on this issue, read when the popover opens. */
+ getEmptySections?: () => ReadonlySet<IssueSidebarSection>;
+ onShownChange?: (section: IssueSidebarSection, shown: boolean) => void;
+ side?: "top" | "bottom";
+ align?: "start" | "end";
+}) {
+ const { t } = useT("issues");
+ const labels = useIssueSidebarSectionLabels();
+ const fullOrder = useIssueSidebarSectionsStore(selectIssueSidebarOrder);
+ const hidden = useIssueSidebarSectionsStore((s) => s.hidden);
+ const customized = useIssueSidebarSectionsStore(selectIssueSidebarCustomized);
+ const setOrder = useIssueSidebarSectionsStore((s) => s.setOrder);
+ const setHidden = useIssueSidebarSectionsStore((s) => s.setHidden);
+ const reset = useIssueSidebarSectionsStore((s) => s.reset);
+ const [empty, setEmpty] = useState<ReadonlySet<IssueSidebarSection>>(new Set());
+ const sensors = useSensors(
+ useSensor(PointerSensor, { activationConstraint: { distance: 4 } }),
+ useSensor(KeyboardSensor, { coordinateGetter: sortableKeyboardCoordinates }),
+ );
+
+ const order = fullOrder.filter((id) => available.includes(id));
+
+ const onDragEnd = ({ active, over }: DragEndEvent) => {
+ if (!over || active.id === over.id) return;
+ const from = fullOrder.indexOf(active.id as IssueSidebarSection);
+ const to = fullOrder.indexOf(over.id as IssueSidebarSection);
+ setOrder(arrayMove([...fullOrder], from, to));
+ };
+
+ return (
+ <Popover onOpenChange={(open) => open && setEmpty(getEmptySections?.() ?? new Set())}>
+ <PopoverTrigger render={trigger} />
+ <PopoverContent side={side} align={align} className="max-h-(--available-height) w-72 gap-0 overflow-hidden p-1">
+ <div className="flex shrink-0 items-center gap-2 py-1 pr-1 pl-2">
+ <span className="flex-1 text-label font-medium">{t(($) => $.detail.sidebar_settings.title)}</span>
+ <button
+ type="button"
+ disabled={!customized}
+ onClick={reset}
+ className="inline-flex h-6 items-center gap-1 rounded-md px-2 text-caption text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:pointer-events-none disabled:opacity-50"
+ >
+ <RotateCcw className="size-3" />
+ {t(($) => $.detail.sidebar_settings.reset)}
+ </button>
+ </div>
+ <DndContext sensors={sensors} collisionDetection={closestCenter} modifiers={DRAG_MODIFIERS} onDragEnd={onDragEnd}>
+ <SortableContext items={order} strategy={verticalListSortingStrategy}>
+ <ul className="relative flex min-h-0 flex-col overflow-y-auto">
+ {order.map((id) => {
+ const locked = ISSUE_SIDEBAR_ALWAYS_SHOWN.includes(id);
+ const shown = !hidden.includes(id);
+ const note = locked
+ ? t(($) => $.detail.sidebar_settings.always_shown)
+ : shown && empty.has(id)
+ ? t(($) => $.detail.sidebar_settings.empty)
+ : null;
+ return (
+ <SectionRow
+ key={id}
+ id={id}
+ label={labels[id]}
+ note={note}
+ shown={shown}
+ locked={locked}
+ onShownChange={(next) => {
+ setHidden(id, !next);
+ onShownChange?.(id, next);
+ }}
+ />
+ );
+ })}
+ </ul>
+ </SortableContext>
+ </DndContext>
+ <p className="-mx-1 mt-1 shrink-0 border-t px-3 pt-2 pb-1.5 text-micro text-muted-foreground">
+ {t(($) => $.detail.sidebar_settings.footer)}
+ </p>
+ </PopoverContent>
+ </Popover>
+ );
+}
+
+function SectionRow({
+ id,
+ label,
+ note,
+ shown,
+ locked,
+ onShownChange,
+}: {
+ id: IssueSidebarSection;
+ label: string;
+ note: string | null;
+ shown: boolean;
+ locked: boolean;
+ onShownChange: (shown: boolean) => void;
+}) {
+ const { t } = useT("issues");
+ const { attributes, listeners, setNodeRef, setActivatorNodeRef, transform, transition, isDragging } = useSortable({ id });
+ return (
+ <li
+ ref={setNodeRef}
+ style={{ transform: CSS.Translate.toString(transform), transition }}
+ className={cn(
+ "flex h-8 shrink-0 items-center gap-1.5 rounded-md pr-2 pl-1 text-label",
+ isDragging ? "relative z-10 bg-popover shadow-[var(--menu-shadow)] ring-1 ring-surface-border" : "hover:bg-accent/50",
+ )}
+ >
+ <button
+ ref={setActivatorNodeRef}
+ type="button"
+ {...attributes}
+ {...listeners}
+ data-sidebar-settings-handle=""
+ aria-label={t(($) => $.detail.sidebar_settings.drag_handle, { section: label })}
+ className="flex size-5 shrink-0 cursor-grab touch-none items-center justify-center rounded-sm text-faint-foreground outline-none hover:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring active:cursor-grabbing"
+ >
+ <GripVertical className="size-3.5" />
+ </button>
+ <span className={cn("min-w-0 flex-1 truncate", !shown && "text-muted-foreground")}>{label}</span>
+ {note && <span className="shrink-0 text-micro text-faint-foreground">{note}</span>}
+ <Switch size="sm" checked={shown} disabled={locked} onCheckedChange={onShownChange} aria-label={label} />
+ </li>
+ );
+}
diff --git a/packages/views/locales/en/issues.json b/packages/views/locales/en/issues.json
index f620263186..f6e5aedbe2 100644
--- a/packages/views/locales/en/issues.json
+++ b/packages/views/locales/en/issues.json
@@ -492,6 +492,18 @@
"section_pull_requests": "Pull requests",
"section_metadata": "Metadata",
"section_details": "Details",
+ "sidebar_settings": {
+ "open": "Customize sidebar",
+ "title": "Sidebar",
+ "reset": "Reset",
+ "footer": "Drag to reorder. Applies to every issue.",
+ "always_shown": "Always shown",
+ "empty": "None on this issue",
+ "customize": "Customize",
+ "drag_handle": "Reorder {{section}}",
+ "hidden_count_one": "{{count}} section hidden",
+ "hidden_count_other": "{{count}} sections hidden"
+ },
"section_quick_actions": "Quick Actions",
"quick_actions_more": "Show {{count}} more",
"quick_action_runs_as": "Runs as {{name}}",
diff --git a/packages/views/locales/es/issues.json b/packages/views/locales/es/issues.json
index 91b3fe8184..0c57494c90 100644
--- a/packages/views/locales/es/issues.json
+++ b/packages/views/locales/es/issues.json
@@ -464,6 +464,18 @@
"section_pull_requests": "Pull requests",
"section_metadata": "Metadatos",
"section_details": "Detalles",
+ "sidebar_settings": {
+ "open": "Personalizar barra lateral",
+ "title": "Barra lateral",
+ "reset": "Restablecer",
+ "footer": "Arrastra para reordenar. Se aplica a todas las tareas.",
+ "always_shown": "Siempre visible",
+ "empty": "Nada en esta tarea",
+ "customize": "Personalizar",
+ "drag_handle": "Reordenar {{section}}",
+ "hidden_count_one": "{{count}} sección oculta",
+ "hidden_count_other": "{{count}} secciones ocultas"
+ },
"section_quick_actions": "Acciones rápidas",
"quick_actions_more": "Mostrar {{count}} más",
"quick_action_runs_as": "Se ejecuta como {{name}}",
diff --git a/packages/views/locales/fr/issues.json b/packages/views/locales/fr/issues.json
index c99428d59f..ee7a3a0f05 100644
--- a/packages/views/locales/fr/issues.json
+++ b/packages/views/locales/fr/issues.json
@@ -492,6 +492,18 @@
"section_pull_requests": "Pull requests",
"section_metadata": "Métadonnées",
"section_details": "Détails",
+ "sidebar_settings": {
+ "open": "Personnaliser la barre latérale",
+ "title": "Barre latérale",
+ "reset": "Réinitialiser",
+ "footer": "Faites glisser pour réordonner. S'applique à toutes les tâches.",
+ "always_shown": "Toujours affiché",
+ "empty": "Rien sur cette tâche",
+ "customize": "Personnaliser",
+ "drag_handle": "Réordonner {{section}}",
+ "hidden_count_one": "{{count}} section masquée",
+ "hidden_count_other": "{{count}} sections masquées"
+ },
"section_quick_actions": "Actions rapides",
"quick_actions_more": "Afficher {{count}} de plus",
"quick_action_runs_as": "S'exécute en tant que {{name}}",
diff --git a/packages/views/locales/ja/issues.json b/packages/views/locales/ja/issues.json
index 9c35d666e3..eeeba8c1aa 100644
--- a/packages/views/locales/ja/issues.json
+++ b/packages/views/locales/ja/issues.json
@@ -486,6 +486,17 @@
"section_pull_requests": "Pull requests",
"section_metadata": "メタデータ",
"section_details": "詳細",
+ "sidebar_settings": {
+ "open": "サイドバーをカスタマイズ",
+ "title": "サイドバー",
+ "reset": "リセット",
+ "footer": "ドラッグで並べ替え。すべてのタスクに適用されます。",
+ "always_shown": "常に表示",
+ "empty": "このタスクにはありません",
+ "customize": "カスタマイズ",
+ "drag_handle": "{{section}}を並べ替え",
+ "hidden_count_other": "{{count}} 個のセクションを非表示"
+ },
"section_quick_actions": "クイックアクション",
"quick_actions_more": "残り {{count}} 件を表示",
"quick_action_runs_as": "{{name}} が実行します",
diff --git a/packages/views/locales/ko/issues.json b/packages/views/locales/ko/issues.json
index cab1d8e8d6..0a07d1b983 100644
--- a/packages/views/locales/ko/issues.json
+++ b/packages/views/locales/ko/issues.json
@@ -486,6 +486,17 @@
"section_pull_requests": "Pull requests",
"section_metadata": "메타데이터",
"section_details": "세부 정보",
+ "sidebar_settings": {
+ "open": "사이드바 사용자 지정",
+ "title": "사이드바",
+ "reset": "초기화",
+ "footer": "드래그해 순서를 바꿉니다. 모든 태스크에 적용됩니다.",
+ "always_shown": "항상 표시",
+ "empty": "이 태스크에는 없음",
+ "customize": "사용자 지정",
+ "drag_handle": "{{section}} 순서 변경",
+ "hidden_count_other": "섹션 {{count}}개 숨김"
+ },
"section_quick_actions": "퀵 액션",
"quick_actions_more": "{{count}}개 더 보기",
"quick_action_runs_as": "{{name}}이(가) 실행합니다",
diff --git a/packages/views/locales/ru/issues.json b/packages/views/locales/ru/issues.json
index 25b011021a..2d7336c020 100644
--- a/packages/views/locales/ru/issues.json
+++ b/packages/views/locales/ru/issues.json
@@ -500,6 +500,20 @@
"section_pull_requests": "Pull request'ы",
"section_metadata": "Метаданные",
"section_details": "Детали",
+ "sidebar_settings": {
+ "open": "Настроить боковую панель",
+ "title": "Боковая панель",
+ "reset": "Сбросить",
+ "footer": "Перетаскивайте, чтобы менять порядок. Применяется ко всем задачам.",
+ "always_shown": "Показывается всегда",
+ "empty": "В этой задаче нет",
+ "customize": "Настроить",
+ "drag_handle": "Переместить «{{section}}»",
+ "hidden_count_one": "Скрыт {{count}} раздел",
+ "hidden_count_few": "Скрыто {{count}} раздела",
+ "hidden_count_many": "Скрыто {{count}} разделов",
+ "hidden_count_other": "Скрыто {{count}} раздела"
+ },
"section_quick_actions": "Быстрые действия",
"quick_actions_more": "Показать ещё: {{count}}",
"quick_action_runs_as": "Выполняется от имени {{name}}",
diff --git a/packages/views/locales/zh-Hans/issues.json b/packages/views/locales/zh-Hans/issues.json
index 33add37abd..6e1afb4694 100644
--- a/packages/views/locales/zh-Hans/issues.json
+++ b/packages/views/locales/zh-Hans/issues.json
@@ -486,6 +486,17 @@
"section_pull_requests": "Pull Request",
"section_metadata": "元数据",
"section_details": "详情",
+ "sidebar_settings": {
+ "open": "自定义侧边栏",
+ "title": "侧边栏",
+ "reset": "恢复默认",
+ "footer": "拖动调整顺序。所有任务共用这套设置。",
+ "always_shown": "始终显示",
+ "empty": "本任务暂无",
+ "customize": "自定义",
+ "drag_handle": "调整{{section}}的位置",
+ "hidden_count_other": "已隐藏 {{count}} 个区块"
+ },
"section_quick_actions": "快捷操作",
"quick_actions_more": "显示其余 {{count}} 条",
"quick_action_runs_as": "由 {{name}} 执行",
diff --git a/packages/views/locales/zh-Hant/issues.json b/packages/views/locales/zh-Hant/issues.json
index 8e27b3ceea..598db81d82 100644
--- a/packages/views/locales/zh-Hant/issues.json
+++ b/packages/views/locales/zh-Hant/issues.json
@@ -486,6 +486,17 @@
"section_pull_requests": "Pull Request",
"section_metadata": "後設資料",
"section_details": "詳情",
+ "sidebar_settings": {
+ "open": "自訂側邊欄",
+ "title": "側邊欄",
+ "reset": "恢復預設",
+ "footer": "拖動調整順序。所有任務共用這套設定。",
+ "always_shown": "始終顯示",
+ "empty": "本任務暫無",
+ "customize": "自訂",
+ "drag_handle": "調整{{section}}的位置",
+ "hidden_count_other": "已隱藏 {{count}} 個區塊"
+ },
"section_quick_actions": "快捷操作",
"quick_actions_more": "顯示其餘 {{count}} 條",
"quick_action_runs_as": "由 {{name}} 執行",