Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
feat(views): unify empty states and add first-run guidance (#9843)
Jiayuan Zhang8fde89a69580
diff --git a/packages/core/modals/store.ts b/packages/core/modals/store.tsindex 53d680c2ca..75ddccdeb2 100644--- a/packages/core/modals/store.ts+++ b/packages/core/modals/store.ts@@ -11,6 +11,7 @@ type ModalType =| "issue-set-parent"| "issue-mark-duplicate"| "issue-add-child"+ | "project-add-issue"| "issue-rename"| "issue-delete-confirm"| "issue-run-confirm"diff --git a/packages/views/agents/components/agent-setup-checklist.test.ts b/packages/views/agents/components/agent-setup-checklist.test.tsnew file mode 100644index 0000000000..4ff98714cd--- /dev/null+++ b/packages/views/agents/components/agent-setup-checklist.test.ts@@ -0,0 +1,22 @@+import { describe, expect, it } from "vitest";+import { agentSetupSteps } from "./agent-setup-checklist";++describe("agentSetupSteps", () => {+ it("starts at the runtime when none is connected", () => {+ const steps = agentSetupSteps({ hasRuntime: false, hasAgent: false, hasAssignedIssue: false });+ expect(steps.map((s) => s.id)).toEqual(["runtime", "agent", "issue"]);+ expect(steps.find((s) => s.current)?.id).toBe("runtime");+ expect(steps.every((s) => !s.done)).toBe(true);+ });++ it("moves on to the agent once a runtime is connected", () => {+ const steps = agentSetupSteps({ hasRuntime: true, hasAgent: false, hasAssignedIssue: false });+ expect(steps[0]).toEqual({ id: "runtime", done: true, current: false });+ expect(steps.find((s) => s.current)?.id).toBe("agent");+ });++ it("has no current step when everything is done", () => {+ const steps = agentSetupSteps({ hasRuntime: true, hasAgent: true, hasAssignedIssue: true });+ expect(steps.some((s) => s.current)).toBe(false);+ });+});diff --git a/packages/views/agents/components/agent-setup-checklist.tsx b/packages/views/agents/components/agent-setup-checklist.tsxnew file mode 100644index 0000000000..407fa6c249--- /dev/null+++ b/packages/views/agents/components/agent-setup-checklist.tsx@@ -0,0 +1,87 @@+"use client";++import { CheckCircle2, Circle } from "@multica/ui/icons";+import { buttonVariants } from "@multica/ui/components/ui/button";+import { cn } from "@multica/ui/lib/utils";+import { useT } from "../../i18n";+import { AppLink } from "../../navigation";++export type AgentSetupStepId = "runtime" | "agent" | "issue";++export interface AgentSetupStep {+ id: AgentSetupStepId;+ done: boolean;+ /** The first step not yet done; the one the user should do now. */+ current: boolean;+}++/** An agent needs a runtime to run on, then an issue to work on. */+export function agentSetupSteps({+ hasRuntime,+ hasAgent,+ hasAssignedIssue,+}: {+ hasRuntime: boolean;+ hasAgent: boolean;+ hasAssignedIssue: boolean;+}): AgentSetupStep[] {+ const done: Record<AgentSetupStepId, boolean> = {+ runtime: hasRuntime,+ agent: hasAgent,+ issue: hasAssignedIssue,+ };+ const order: AgentSetupStepId[] = ["runtime", "agent", "issue"];+ const current = order.find((id) => !done[id]);+ return order.map((id) => ({ id, done: done[id], current: id === current }));+}++export function AgentSetupChecklist({+ hasRuntime,+ runtimesHref,+}: {+ hasRuntime: boolean;+ runtimesHref: string;+}) {+ const { t } = useT("agents");+ const steps = agentSetupSteps({ hasRuntime, hasAgent: false, hasAssignedIssue: false });+ const label: Record<AgentSetupStepId, string> = {+ runtime: t(($) => $.empty.setup.runtime),+ agent: t(($) => $.empty.setup.agent),+ issue: t(($) => $.empty.setup.issue),+ };++ return (+ <ol+ aria-label={t(($) => $.empty.setup.label)}+ className="mt-2 w-full max-w-sm divide-y rounded-lg border bg-card text-left"+ >+ {steps.map((step) => (+ <li key={step.id} className="flex min-h-11 items-center gap-2.5 px-3 py-2 text-label">+ {step.done ? (+ <CheckCircle2 aria-hidden="true" className="size-4 shrink-0 text-success" />+ ) : (+ <Circle aria-hidden="true" className="size-4 shrink-0 text-faint-foreground" />+ )}+ <span+ className={cn(+ "min-w-0 flex-1",+ step.done ? "text-muted-foreground line-through" : "text-foreground",+ step.current && "font-medium",+ )}+ >+ {label[step.id]}+ {step.done ? <span className="sr-only">{t(($) => $.empty.setup.done)}</span> : null}+ </span>+ {step.id === "runtime" && !step.done ? (+ <AppLink+ href={runtimesHref}+ className={buttonVariants({ variant: "ghost", size: "xs" })}+ >+ {t(($) => $.empty.setup.connect_runtime)}+ </AppLink>+ ) : null}+ </li>+ ))}+ </ol>+ );+}diff --git a/packages/views/agents/components/agents-page.test.tsx b/packages/views/agents/components/agents-page.test.tsxindex 8d5fc9c312..a1f566f29a 100644--- a/packages/views/agents/components/agents-page.test.tsx+++ b/packages/views/agents/components/agents-page.test.tsx@@ -132,6 +132,7 @@ vi.mock("@multica/core/paths", () => ({newAgent: () => "/test-workspace/agents/new",newAgentManual: () => "/test-workspace/agents/new/manual",agentDetail: (id: string) => `/test-workspace/agents/${id}`,+ runtimes: () => "/test-workspace/runtimes",}),}));diff --git a/packages/views/agents/components/agents-page.tsx b/packages/views/agents/components/agents-page.tsxindex 7680f35694..5f62b176b7 100644--- a/packages/views/agents/components/agents-page.tsx+++ b/packages/views/agents/components/agents-page.tsx@@ -51,6 +51,7 @@ import { ActorAvatar } from "../../common/actor-avatar";import { ProviderLogo } from "../../runtimes/components/provider-logo";import {CollectionCreateButton,+ CollectionNoMatches,CollectionPageHeader,CollectionPageState,CollectionResetButton,@@ -68,6 +69,7 @@ import {} from "../../layout/collection-list";import { availabilityConfig } from "../presence";import { AgentRowActions } from "./agent-row-actions";+import { AgentSetupChecklist } from "./agent-setup-checklist";import {AgentListFilterMenu,countActiveFilterDimensions,@@ -215,7 +217,17 @@ function ListError({);}-function EmptyState({ onCreate }: { onCreate: () => void }) {+function EmptyState({+ onCreate,+ runtimesLoaded,+ hasRuntime,+ runtimesHref,+}: {+ onCreate: () => void;+ runtimesLoaded: boolean;+ hasRuntime: boolean;+ runtimesHref: string;+}) {const { t } = useT("agents");return (<CollectionPageState@@ -224,11 +236,15 @@ function EmptyState({ onCreate }: { onCreate: () => void }) {description={t(($) => $.empty.description)}actions={<Button type="button" onClick={onCreate} size="sm">- <Plus aria-hidden="true" className="size-3" />+ <Plus aria-hidden="true" />{t(($) => $.page.new_agent)}</Button>}- />+ >+ {runtimesLoaded ? (+ <AgentSetupChecklist hasRuntime={hasRuntime} runtimesHref={runtimesHref} />+ ) : null}+ </CollectionPageState>);}@@ -400,7 +416,7 @@ export function AgentsPage(_props: AgentsPageProps = {}) {error: listError,refetch: refetchList,} = useQuery(agentListOptions(wsId));- const { data: runtimes = [] } = useQuery(+ const { data: runtimes = [], isSuccess: runtimesLoaded } = useQuery(runtimeListOptions(wsId),);const { data: members = [] } = useQuery(memberListOptions(wsId));@@ -562,7 +578,7 @@ export function AgentsPage(_props: AgentsPageProps = {}) {if (countActiveFilterDimensions(filters) > 0) {return t(($) => $.no_matches.no_filter_match);}- return t(($) => $.no_matches.title);+ return null;}, [filters, scope, search, t]);// Straight to the manual form: a duplicate already has every field decided,@@ -755,7 +771,12 @@ export function AgentsPage(_props: AgentsPageProps = {}) {<ListError listError={listError} onRetry={() => refetchList()} />) : showEmpty ? (<div className="flex flex-1 items-center justify-center">- <EmptyState onCreate={openCreate} />+ <EmptyState+ onCreate={openCreate}+ runtimesLoaded={runtimesLoaded}+ hasRuntime={runtimes.length > 0}+ runtimesHref={paths.runtimes()}+ /></div>) : (<CollectionList@@ -777,7 +798,15 @@ export function AgentsPage(_props: AgentsPageProps = {}) {)}sort={sort}selection={{ selectedIds, onChange: setSelectedIds }}- empty={noMatchText}+ empty={+ <CollectionNoMatches+ title={t(($) => $.no_matches.title)}+ description={noMatchText}+ onReset={resetNarrowing}+ hasFilters={countActiveFilterDimensions(filters) > 0}+ hasSearch={search.trim() !== ""}+ />+ }/>)}diff --git a/packages/views/agents/components/tabs/agent-mcp-tab.tsx b/packages/views/agents/components/tabs/agent-mcp-tab.tsxindex 2d4051483c..c6c1e29b7e 100644--- a/packages/views/agents/components/tabs/agent-mcp-tab.tsx+++ b/packages/views/agents/components/tabs/agent-mcp-tab.tsx@@ -13,10 +13,12 @@ import {} from "@multica/core/composio";import { COMPOSIO_MCP_APPS_FLAG } from "@multica/core/feature-flags";import { useWorkspacePaths } from "@multica/core/paths";+import { buttonVariants } from "@multica/ui/components/ui/button";import { Checkbox } from "@multica/ui/components/ui/checkbox";import { ComposioToolkitLogo } from "../../../common/composio-toolkit-logo";import { AppLink } from "../../../navigation";import { useT } from "../../../i18n";+import { ObjectSectionEmpty } from "../../../layout/object-page";/*** Creator-only MCP tab on the agent detail page (MUL-3870). Lets the agent@@ -157,18 +159,19 @@ export function AgentMcpTab({ agent }: { agent: Agent }) {{t(($) => $.tab_body.composio_mcp.load_failed)}</p>) : activeSlugs.length === 0 ? (- <div className="space-y-2 rounded-lg border border-dashed p-6 text-center">- <p className="text-body font-medium">- {t(($) => $.tab_body.composio_mcp.empty_title)}- </p>- <AppLink- href={settingsHref}- className="inline-flex items-center gap-1.5 text-caption font-medium text-primary hover:underline"- >- <Plug className="h-3 w-3" />- {t(($) => $.tab_body.composio_mcp.empty_link_to_settings)}- </AppLink>- </div>+ <ObjectSectionEmpty+ icon={Plug}+ title={t(($) => $.tab_body.composio_mcp.empty_title)}+ description={t(($) => $.tab_body.composio_mcp.empty_link_to_settings)}+ action={+ <AppLink+ href={settingsHref}+ className={buttonVariants({ variant: "outline", size: "sm" })}+ >+ {t(($) => $.tab_body.composio_mcp.open_settings)}+ </AppLink>+ }+ />) : (<ul className="divide-y rounded-lg border">{activeSlugs.map((slug) => {diff --git a/packages/views/agents/components/tabs/skills-tab.tsx b/packages/views/agents/components/tabs/skills-tab.tsxindex 6c3e402ab7..26affc2555 100644--- a/packages/views/agents/components/tabs/skills-tab.tsx+++ b/packages/views/agents/components/tabs/skills-tab.tsx@@ -31,6 +31,7 @@ import {} from "@multica/core/workspace/queries";import { Badge } from "@multica/ui/components/ui/badge";import { Button } from "@multica/ui/components/ui/button";+import { ObjectSectionEmpty } from "../../../layout/object-page";import { IconButton } from "@multica/ui/components/common/icon-button";import {Dialog,@@ -166,9 +167,9 @@ export function SkillsTab({}>{agent.skills.length === 0 ? (- <EmptyState- icon={<SkillIcon className="h-6 w-6" />}- title={t(($) => $.tab_body.skills.empty_title)}+ <ObjectSectionEmpty+ icon={SkillIcon}+ description={t(($) => $.tab_body.skills.empty_title)}/>) : (<ul className="divide-y rounded-lg border bg-surface-raised/40">@@ -403,16 +404,6 @@ function CapabilitySection({);}-function EmptyState({ icon, title, hint }: { icon: React.ReactNode; title: string; hint?: string }) {- return (- <div className="flex flex-col items-center justify-center rounded-lg border border-dashed py-10 text-muted-foreground">- <span className="opacity-50">{icon}</span>- <p className="mt-3 text-body">{title}</p>- {hint && <p className="mt-1 max-w-sm text-center text-caption">{hint}</p>}- </div>- );-}-function RuntimeNotice({ text, loading = false }: { text: string; loading?: boolean }) {return (<div className="flex items-center gap-2 rounded-lg border border-dashed px-4 py-6 text-caption text-muted-foreground">diff --git a/packages/views/autopilots/components/autopilot-access-manager.tsx b/packages/views/autopilots/components/autopilot-access-manager.tsxindex bf9d89981a..afa86143bb 100644--- a/packages/views/autopilots/components/autopilot-access-manager.tsx+++ b/packages/views/autopilots/components/autopilot-access-manager.tsx@@ -1,7 +1,7 @@"use client";import { useMemo, useState } from "react";-import { Plus, X } from "@multica/ui/icons";+import { Plus, Users, X } from "@multica/ui/icons";import { useQuery } from "@tanstack/react-query";import { useWorkspaceId } from "@multica/core/hooks";import { memberListOptions } from "@multica/core/workspace/queries";@@ -21,6 +21,7 @@ import {} from "../../issues/components/pickers/property-picker";import { matchesPinyin } from "../../editor/extensions/pinyin-match";import { useT } from "../../i18n";+import { ObjectSectionEmpty } from "../../layout/object-page";// Grant / revoke explicit write access to an autopilot. Members-only, mirroring// the subscriber picker. Creators and workspace admins always have access and@@ -125,9 +126,7 @@ export function AutopilotAccessManager({</div>{collaborators.length === 0 ? (- <p className="rounded-md border border-dashed px-3 py-4 text-center text-body text-muted-foreground">- {t(($) => $.access.empty)}- </p>+ <ObjectSectionEmpty icon={Users} description={t(($) => $.access.empty)} />) : (<ul className="space-y-1">{collaborators.map((c) => (diff --git a/packages/views/autopilots/components/autopilot-detail-page.tsx b/packages/views/autopilots/components/autopilot-detail-page.tsxindex 25d9d043b5..57bb6baf54 100644--- a/packages/views/autopilots/components/autopilot-detail-page.tsx+++ b/packages/views/autopilots/components/autopilot-detail-page.tsx@@ -4,7 +4,7 @@ import { useMemo, useState, type ReactNode } from "react";import {Zap, Play, Clock, Plus, Trash2, CheckCircle2, XCircle, Loader2, Pencil,Ban, ChevronDown, ChevronRight, MoreHorizontal, Link2, ArrowUpRight, FilePlus2,- Webhook, RotateCw, Server,+ Webhook, RotateCw, Server, FileQuestion, FileText,} from "@multica/ui/icons";import { useQuery } from "@tanstack/react-query";import { autopilotDetailOptions, autopilotRunsOptions, autopilotRunOptions } from "@multica/core/autopilots/queries";@@ -25,7 +25,7 @@ import { memberListOptions } from "@multica/core/workspace/queries";import { useNavigation, AppLink } from "../../navigation";import { ActorAvatar } from "../../common/actor-avatar";import { Skeleton } from "@multica/ui/components/ui/skeleton";-import { Button } from "@multica/ui/components/ui/button";+import { Button, buttonVariants } from "@multica/ui/components/ui/button";import { IconButton } from "@multica/ui/components/common/icon-button";import { Switch } from "@multica/ui/components/ui/switch";import { cn } from "@multica/ui/lib/utils";@@ -98,7 +98,9 @@ import {ObjectSection,ObjectSectionAction,ObjectSectionCard,+ ObjectSectionEmpty,} from "../../layout/object-page";+import { CollectionPageState } from "../../layout/collection-page";import { useT } from "../../i18n";const LAYOUT_ID = "multica_autopilot_detail_layout";@@ -1032,9 +1034,19 @@ export function AutopilotDetailPage({ autopilotId }: { autopilotId: string }) {if (!data) {return shell(<span className="min-w-0 truncate text-muted-foreground">{t(($) => $.detail.not_found)}</span>,- <div className="flex h-full items-center justify-center text-body text-muted-foreground">- {t(($) => $.detail.not_found)}- </div>,+ <CollectionPageState+ icon={FileQuestion}+ title={t(($) => $.detail.not_found)}+ description={t(($) => $.detail.not_found_description)}+ actions={+ <AppLink+ href={wsPaths.autopilots()}+ className={buttonVariants({ variant: "outline", size: "sm" })}+ >+ {t(($) => $.detail.back_to_list)}+ </AppLink>+ }+ />,);}@@ -1171,9 +1183,7 @@ export function AutopilotDetailPage({ autopilotId }: { autopilotId: string }) {<ReadonlyContent content={autopilot.description} /></ObjectSectionCard>) : (- <div className="rounded-lg border border-dashed p-4 text-center text-body text-muted-foreground">- {t(($) => $.detail.no_prompt)}- </div>+ <ObjectSectionEmpty icon={FileText} description={t(($) => $.detail.no_prompt)} />)}</ObjectSection>@@ -1189,9 +1199,7 @@ export function AutopilotDetailPage({ autopilotId }: { autopilotId: string }) {}>{triggers.length === 0 ? (- <div className="rounded-lg border border-dashed p-4 text-center text-body text-muted-foreground">- {t(($) => $.detail.no_triggers)}- </div>+ <ObjectSectionEmpty icon={Clock} description={t(($) => $.detail.no_triggers)} />) : (<ObjectSectionCard>{triggers.map((trig) => (@@ -1220,9 +1228,7 @@ export function AutopilotDetailPage({ autopilotId }: { autopilotId: string }) {))}</div>) : runs.length === 0 ? (- <div className="rounded-lg border border-dashed p-4 text-center text-body text-muted-foreground">- {t(($) => $.detail.no_runs)}- </div>+ <ObjectSectionEmpty icon={Play} description={t(($) => $.detail.no_runs)} />) : (<RunHistoryListruns={runs}diff --git a/packages/views/autopilots/components/autopilots-page.tsx b/packages/views/autopilots/components/autopilots-page.tsxindex ba4f8e631d..fa60d1b771 100644--- a/packages/views/autopilots/components/autopilots-page.tsx+++ b/packages/views/autopilots/components/autopilots-page.tsx@@ -30,6 +30,7 @@ import { ActorAvatar } from "../../common/actor-avatar";import { formatInTimeZone } from "../../common/format-in-time-zone";import {CollectionCreateButton,+ CollectionNoMatches,CollectionPageHeader,CollectionPageState,CollectionResetButton,@@ -513,15 +514,12 @@ function AutopilotList() {}/>) : showEmpty ? (- <div className="flex flex-col items-center px-5 py-16">- <Zap className="mb-3 h-10 w-10 text-faint-foreground" />- <p className="text-body text-muted-foreground">- {t(($) => $.page.empty.title)}- </p>- <p className="mb-6 mt-1 text-caption text-muted-foreground">- {t(($) => $.page.empty.hint)}- </p>- <div className="grid w-full max-w-3xl grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3">+ <CollectionPageState+ icon={Zap}+ title={t(($) => $.page.empty.title)}+ description={t(($) => $.page.empty.hint)}+ >+ <div className="grid w-full max-w-3xl grid-cols-1 gap-3 text-left sm:grid-cols-2 lg:grid-cols-3">{AUTOPILOT_TEMPLATES.map((tpl) => {const Icon = tpl.icon;return (@@ -544,16 +542,11 @@ function AutopilotList() {);})}</div>- <Button- size="sm"- variant="outline"- className="mt-4"- onClick={() => openCreate()}- >- <Plus className="mr-1 h-3.5 w-3.5" />+ <Button size="sm" variant="outline" onClick={() => openCreate()}>+ <Plus aria-hidden="true" />{t(($) => $.page.start_blank)}</Button>- </div>+ </CollectionPageState>) : (<CollectionListlabel={scopeLabels[scope]}@@ -567,7 +560,13 @@ function AutopilotList() {rowMenu={(a) => <AutopilotRowActions row={a} />}sort={sort}selection={{ selectedIds, onChange: setSelectedIds }}- empty={t(($) => $.page.no_matches)}+ empty={+ <CollectionNoMatches+ title={t(($) => $.page.no_matches)}+ onReset={clearFilters}+ hasFilters={narrowed}+ />+ }/>)}diff --git a/packages/views/autopilots/components/webhook-deliveries-section.tsx b/packages/views/autopilots/components/webhook-deliveries-section.tsxindex c4db7979c6..ed8a48ec07 100644--- a/packages/views/autopilots/components/webhook-deliveries-section.tsx+++ b/packages/views/autopilots/components/webhook-deliveries-section.tsx@@ -33,7 +33,7 @@ import { copyText } from "@multica/ui/lib/clipboard";import { TruncatedTooltip } from "@multica/ui/components/common/truncated-tooltip";import { toast } from "sonner";import { useLocale, useT } from "../../i18n";-import { ObjectSection, ObjectSectionCard } from "../../layout/object-page";+import { ObjectSection, ObjectSectionCard, ObjectSectionEmpty } from "../../layout/object-page";import type {WebhookDelivery,WebhookDeliveryStatus,@@ -132,9 +132,7 @@ export function WebhookDeliveriesSection({))}</div>) : deliveries.length === 0 ? (- <div className="rounded-lg border border-dashed p-4 text-center text-body text-muted-foreground">- {t(($) => $.deliveries.empty)}- </div>+ <ObjectSectionEmpty icon={Webhook} description={t(($) => $.deliveries.empty)} />) : (<ObjectSectionCard>{deliveries.map((delivery) => (diff --git a/packages/views/autopilots/components/workspace-wakeups.tsx b/packages/views/autopilots/components/workspace-wakeups.tsxindex 6abe69cea6..e12d45b499 100644--- a/packages/views/autopilots/components/workspace-wakeups.tsx+++ b/packages/views/autopilots/components/workspace-wakeups.tsx@@ -43,6 +43,7 @@ import { useLocale, useT } from "../../i18n";import {CollectionCreateButton,CollectionFilterButton,+ CollectionNoMatches,CollectionPageHeader,CollectionPageState,CollectionResetButton,@@ -498,23 +499,24 @@ export function WorkspaceWakeups() {body = <CollectionPageState icon={Clock3} title={t(($) => $.wakeups.loading)} />;} else if (!rows.length) {const hasAny = (page?.counts.all ?? 0) > 0;- body = (- <CollectionPageState- icon={Bell}- title={t(($) => (hasAny || filtered ? $.wakeups.empty_filtered : $.wakeups.empty))}- actions={- filtered && hasAny ? (- <Button- variant="outline"- size="sm"- onClick={() => change({ scope: "all", kind: "all", source: "", agent_id: "" })}- >- {t(($) => $.wakeups.clear_filters)}- </Button>- ) : undefined- }- />- );+ body =+ hasAny || filtered ? (+ <CollectionNoMatches+ title={t(($) => $.wakeups.empty_filtered)}+ onReset={+ hasAny+ ? () => change({ scope: "all", kind: "all", source: "", agent_id: "" })+ : undefined+ }+ hasFilters={filtered}+ />+ ) : (+ <CollectionPageState+ icon={AlarmClock}+ title={t(($) => $.wakeups.empty)}+ description={t(($) => $.wakeups.empty_description)}+ />+ );} else {body = (<CollectionListdiff --git a/packages/views/chat/chat-page.tsx b/packages/views/chat/chat-page.tsxindex da09d1a563..b66f991c71 100644--- a/packages/views/chat/chat-page.tsx+++ b/packages/views/chat/chat-page.tsx@@ -1,7 +1,7 @@"use client";import { useEffect, useMemo, useRef, useState } from "react";-import { ArrowLeft, MessageSquare } from "@multica/ui/icons";+import { ArrowLeft, Bot, MessageSquare, Plus } from "@multica/ui/icons";import { toast } from "sonner";import { Button } from "@multica/ui/components/ui/button";import { IconButton } from "@multica/ui/components/common/icon-button";@@ -15,6 +15,7 @@ import { useQuickActionsPendingTimeout } from "@multica/core/chat/use-quick-actiimport { useQuickActionsFailureToast } from "./components/use-quick-actions-failure-toast";import { useQuery } from "@tanstack/react-query";import type { Agent, ChatSession } from "@multica/core/types";+import { CollectionPageState } from "../layout/collection-page";import { CollapsedNavTrigger, PageHeader } from "../layout/page-header";import { PanelHeader } from "../layout/panel-nav";import { useListColumnCollapsed } from "../layout/app-shell-context";@@ -57,7 +58,7 @@ import { useRegisterCommandBarContext } from "../search/register-context";*/export function ChatPage() {const { t } = useT("chat");- const { pathname, searchParams, replace } = useNavigation();+ const { pathname, searchParams, push, replace } = useNavigation();const workspaceSlug = useRequiredWorkspaceSlug();const wsPaths = useWorkspacePaths();// App Router can retain this page after navigation. Once the URL belongs@@ -267,6 +268,22 @@ export function ChatPage() {);const compactConversation = isCompact && (!!c.activeSessionId || composingNew);+ // Nothing to talk to and nothing to reread: the composer would only be a+ // disabled box, so the page explains the prerequisite instead.+ const noAgentPage = c.noAgent && c.sessions.length === 0;+ const noAgentState = (+ <CollectionPageState+ icon={Bot}+ title={t(($) => $.page.no_agent_title)}+ description={t(($) => $.page.no_agent_description)}+ actions={+ <Button size="sm" onClick={() => push(wsPaths.newAgent())}>+ <Plus aria-hidden="true" />+ {t(($) => $.page.no_agent_action)}+ </Button>+ }+ />+ );const backToList = () => {c.setActiveSession(null);setComposingNew(false);@@ -425,7 +442,11 @@ export function ChatPage() {return (<div className="flex flex-1 flex-col min-h-0">{listHeader}- <div className="flex-1 min-h-0 overflow-y-auto">{listBody}</div>+ {noAgentPage ? (+ noAgentState+ ) : (+ <div className="flex-1 min-h-0 overflow-y-auto">{listBody}</div>+ )}</div>);}@@ -445,6 +466,8 @@ export function ChatPage() {{listCollapsed && !c.currentSession && <PageHeader>{newChatButton}</PageHeader>}{hasTarget ? (conversation+ ) : noAgentPage ? (+ noAgentState) : (<div className="flex min-h-0 flex-1 flex-col items-center justify-center gap-3 text-muted-foreground"><MessageSquare className="h-10 w-10 text-faint-foreground" />diff --git a/packages/views/chat/use-start-chat-with-draft.ts b/packages/views/chat/use-start-chat-with-draft.tsnew file mode 100644index 0000000000..91fb0f87f4--- /dev/null+++ b/packages/views/chat/use-start-chat-with-draft.ts@@ -0,0 +1,43 @@+"use client";++import { useCallback } from "react";+import { useQuery } from "@tanstack/react-query";+import { useAuthStore } from "@multica/core/auth";+import { DRAFT_NEW_SESSION, useChatStore } from "@multica/core/chat";+import { useWorkspaceId } from "@multica/core/hooks";+import { useWorkspacePaths } from "@multica/core/paths";+import { agentListOptions, memberListOptions } from "@multica/core/workspace/queries";+import { canAssignAgent } from "../issues/components/pickers/assignee-picker";+import { useNavigation } from "../navigation";++/**+ * Opens a new chat with `draft` already in the composer, addressed to the+ * agent the user last chatted with (or the first one they may use). Returns+ * null while no agent is available, so callers can hide the entry point.+ */+export function useStartChatWithDraft(): ((draft: string) => void) | null {+ const wsId = useWorkspaceId();+ const userId = useAuthStore((s) => s.user?.id);+ const { data: agents = [] } = useQuery(agentListOptions(wsId));+ const { data: members = [] } = useQuery(memberListOptions(wsId));+ const selectedAgentId = useChatStore((s) => s.selectedAgentId);+ const paths = useWorkspacePaths();+ const { push } = useNavigation();++ const role = members.find((m) => m.user_id === userId)?.role;+ const available = agents.filter((a) => !a.archived_at && canAssignAgent(a, userId, role));+ const agentId = (available.find((a) => a.id === selectedAgentId) ?? available[0])?.id;++ const start = useCallback(+ (draft: string) => {+ if (!agentId) return;+ // The `?agent=` deep link starts a fresh compose, which keeps the+ // new-chat draft slot, so the text lands in the composer it opens.+ useChatStore.getState().setInputDraft(DRAFT_NEW_SESSION, draft);+ push(`${paths.chat()}?agent=${encodeURIComponent(agentId)}`);+ },+ [agentId, paths, push],+ );++ return agentId ? start : null;+}diff --git a/packages/views/common/actor-issues-panel.tsx b/packages/views/common/actor-issues-panel.tsxindex 69de25f83c..1c5a0f60dd 100644--- a/packages/views/common/actor-issues-panel.tsx+++ b/packages/views/common/actor-issues-panel.tsx@@ -23,6 +23,7 @@ import {import { FilterChipsBar } from "../issues/components/filter-chips-bar";import { IssueSurface } from "../issues/surface/issue-surface";import { useT } from "../i18n";+import { CollectionNoMatches, CollectionPageState } from "../layout/collection-page";import { PAGE_GUTTER } from "../layout/page-header";export type TaskActorType = "member" | "agent";@@ -156,17 +157,16 @@ export function ActorIssuesPanel({)}renderEmpty={() =>search.trim() === "" ? (- <div className="flex flex-1 min-h-0 flex-col items-center justify-center gap-2 text-muted-foreground">- <ListTodo className="h-10 w-10 text-faint-foreground" />- <p className="text-body">- {t(($) => $.actor_issues.empty[scope].title)}- </p>- </div>+ <CollectionPageState+ icon={ListTodo}+ title={t(($) => $.actor_issues.empty[scope].title)}+ />) : (- <div className="flex flex-1 min-h-0 flex-col items-center justify-center gap-2 text-muted-foreground">- <Search className="h-10 w-10 text-faint-foreground" />- <p className="text-body">{t(($) => $.actor_issues.search_empty)}</p>- </div>+ <CollectionNoMatches+ title={t(($) => $.actor_issues.search_empty)}+ onReset={() => setSearch("")}+ hasSearch+ />)}/>diff --git a/packages/views/dashboard/components/dashboard-page.tsx b/packages/views/dashboard/components/dashboard-page.tsxindex 5dd0b10626..5c9fbd12ab 100644--- a/packages/views/dashboard/components/dashboard-page.tsx+++ b/packages/views/dashboard/components/dashboard-page.tsx@@ -26,6 +26,7 @@ import {} from "@multica/core/dashboard";import { useCustomPricingStore } from "@multica/core/runtimes/custom-pricing-store";import { useViewingTimezone } from "../../common/use-viewing-timezone";+import { CollectionPageState } from "../../layout/collection-page";import { PageHeader } from "../../layout/page-header";import { KpiCard } from "../../runtimes/components/shared";import { useNavigation } from "../../navigation";@@ -642,12 +643,10 @@ function DashboardSkeleton() {function DashboardEmpty() {const { t } = useT("usage");return (- <div className="flex flex-col items-center rounded-lg border border-dashed py-12 text-center">- <BarChart3 className="h-6 w-6 text-faint-foreground" />- <p className="mt-3 text-body font-medium">{t(($) => $.empty.title)}</p>- <p className="mt-1 max-w-md text-caption text-muted-foreground">- {t(($) => $.empty.body)}- </p>- </div>+ <CollectionPageState+ icon={BarChart3}+ title={t(($) => $.empty.title)}+ description={t(($) => $.empty.body)}+ />);}diff --git a/packages/views/dashboard/components/errors-tab.tsx b/packages/views/dashboard/components/errors-tab.tsxindex 4aac699a08..659437c9c4 100644--- a/packages/views/dashboard/components/errors-tab.tsx+++ b/packages/views/dashboard/components/errors-tab.tsx@@ -14,6 +14,7 @@ import {} from "../../runtimes/components/charts";import { AppLink } from "../../navigation";import { useT } from "../../i18n";+import { CollectionPageState } from "../../layout/collection-page";import {aggregateDailyErrors,aggregateWeeklyErrors,@@ -165,12 +166,7 @@ export function ErrorsTab({</div>{totals.failed === 0 ? (- <div className="flex flex-col items-center rounded-lg border border-dashed py-12 text-center">- <BarChart3 className="h-6 w-6 text-faint-foreground" />- <p className="mt-3 text-caption text-muted-foreground">- {t(($) => $.errors.no_data)}- </p>- </div>+ <CollectionPageState icon={BarChart3} title={t(($) => $.errors.no_data)} />) : (<><ErrorTrendCarddiff --git a/packages/views/inbox/components/inbox-page.tsx b/packages/views/inbox/components/inbox-page.tsxindex bdd970e126..8673204b09 100644--- a/packages/views/inbox/components/inbox-page.tsx+++ b/packages/views/inbox/components/inbox-page.tsx@@ -229,6 +229,8 @@ export function InboxPage() {// leaves; opening an already-empty inbox shows it at rest. Archived and// filtered views are not inbox zero, so they never arm it.const inboxZeroCount = isArchivedView || hasActiveFilters ? -1 : visibleItems.length;+ const activityWaiting =+ inboxZeroCount === 0 && section === "action" ? sections.activity.length : 0;const [prevInboxZeroCount, setPrevInboxZeroCount] = useState(inboxZeroCount);const [inboxZeroRises, setInboxZeroRises] = useState(false);if (inboxZeroCount !== prevInboxZeroCount) {@@ -1142,6 +1144,16 @@ export function InboxPage() {: t(($) => $.sections.action_empty): t(($) => $.detail.empty)}</p>+ {activityWaiting > 0 ? (+ <div className="relative mt-1 flex flex-col items-center gap-3">+ <p className="text-label">+ {t(($) => $.sections.activity_waiting, { count: activityWaiting })}+ </p>+ <Button variant="outline" size="sm" onClick={() => setSection("activity")}>+ {t(($) => $.sections.open_activity)}+ </Button>+ </div>+ ) : null}</div></>)}diff --git a/packages/views/issue-views/all-views-page.tsx b/packages/views/issue-views/all-views-page.tsxindex 43264ebaea..5d0e16ad7d 100644--- a/packages/views/issue-views/all-views-page.tsx+++ b/packages/views/issue-views/all-views-page.tsx@@ -9,11 +9,13 @@ import {Layers,Link2,ListTodo,+ Plus,Star,Trash2,} from "@multica/ui/icons";import { cn } from "@multica/ui/lib/utils";import { IconButton } from "@multica/ui/components/common/icon-button";+import { Button } from "@multica/ui/components/ui/button";import {DropdownMenuItem,DropdownMenuSeparator,@@ -39,6 +41,7 @@ import { ActorAvatar } from "../common/actor-avatar";import {CollectionCreateButton,CollectionPageHeader,+ CollectionPageState,CollectionScopeItems,} from "../layout/collection-page";import {@@ -293,7 +296,19 @@ export function AllViewsPage() {</CollectionRowMenu>);}}- empty={t(($) => $.views.directory.no_matches)}+ empty={+ <CollectionPageState+ icon={Layers}+ title={t(($) => $.views.directory.empty_title)}+ description={t(($) => $.views.directory.empty_description)}+ actions={+ <Button type="button" size="sm" onClick={newView}>+ <Plus aria-hidden="true" />+ {t(($) => $.views.directory.new_view)}+ </Button>+ }+ />+ }/><DeleteViewDialogview={deleteTarget}diff --git a/packages/views/issues/components/issue-detail.tsx b/packages/views/issues/components/issue-detail.tsxindex 59683eaac3..405c815208 100644--- a/packages/views/issues/components/issue-detail.tsx+++ b/packages/views/issues/components/issue-detail.tsx@@ -23,6 +23,7 @@ import {ChevronLeft,ChevronRight,CircleCheck,+ FileQuestion,Milestone,MoreHorizontal,PanelRight,@@ -177,6 +178,7 @@ import {} from "../../platform";import { cn } from "@multica/ui/lib/utils";import { TruncatedTooltip } from "@multica/ui/components/common/truncated-tooltip";+import { CollectionPageState } from "../../layout/collection-page";import { PAGE_GUTTER } from "../../layout/page-header";import { ProgressRing } from "./progress-ring";@@ -1225,15 +1227,19 @@ export function IssueNotFound({{trailing && <div className="ml-auto flex shrink-0 items-center gap-1">{trailing}</div>}</div>)}- <div className="flex flex-1 min-h-0 flex-col items-center justify-center gap-3 text-body text-muted-foreground">- <p>{t(($) => $.detail.not_found)}</p>- {showBackLink && (- <Button variant="outline" size="sm" onClick={() => backOrReplace(paths.issues())}>- <ChevronLeft className="mr-1 h-3.5 w-3.5" />- {t(($) => $.detail.back)}- </Button>- )}- </div>+ <CollectionPageState+ icon={FileQuestion}+ title={t(($) => $.detail.not_found_title)}+ description={t(($) => $.detail.not_found)}+ actions={+ showBackLink ? (+ <Button variant="outline" size="sm" onClick={() => backOrReplace(paths.issues())}>+ <ChevronLeft aria-hidden="true" />+ {t(($) => $.detail.back)}+ </Button>+ ) : undefined+ }+ /></div>);}diff --git a/packages/views/issues/components/issues-page.test.tsx b/packages/views/issues/components/issues-page.test.tsxindex 335229a165..3b09ccf764 100644--- a/packages/views/issues/components/issues-page.test.tsx+++ b/packages/views/issues/components/issues-page.test.tsx@@ -56,6 +56,10 @@ vi.mock("../../navigation", () => ({NavigationProvider: ({ children }: { children: React.ReactNode }) => children,}));+vi.mock("../../chat/use-start-chat-with-draft", () => ({+ useStartChatWithDraft: () => null,+}));+// Mock workspace avatarvi.mock("../../workspace/workspace-avatar", () => ({WorkspaceAvatar: ({ name }: { name: string }) => <span data-testid="workspace-avatar">{name.charAt(0)}</span>,diff --git a/packages/views/issues/components/issues-page.tsx b/packages/views/issues/components/issues-page.tsxindex 30fc5087a4..1b2f930b1c 100644--- a/packages/views/issues/components/issues-page.tsx+++ b/packages/views/issues/components/issues-page.tsx@@ -1,8 +1,11 @@"use client";-import { ListTodo } from "@multica/ui/icons";+import { ListTodo, MessageSquare, Plus } from "@multica/ui/icons";+import { Button } from "@multica/ui/components/ui/button";import { useIssuesScope } from "@multica/core/issues/stores/issues-scope-store";+import { useStartChatWithDraft } from "../../chat/use-start-chat-with-draft";import { useT } from "../../i18n";+import { CollectionPageState } from "../../layout/collection-page";import { IssueSurface } from "../surface/issue-surface";import { IssueViewHeader } from "../../issue-views/view-header";@@ -11,6 +14,7 @@ const WORKSPACE_BASE = { kind: "workspace" } as const;export function IssuesPage() {const { t } = useT("issues");const scope = useIssuesScope("issues");+ const startChat = useStartChatWithDraft();return (<div className="flex flex-1 min-h-0 flex-col">@@ -19,11 +23,30 @@ export function IssuesPage() {modes={["board", "list", "table", "swimlane"]}batchToolbar="list"renderHeader={({ controller }) => <IssueViewHeader controller={controller} base={WORKSPACE_BASE} />}- renderEmpty={() => (- <div className="flex flex-1 min-h-0 flex-col items-center justify-center gap-2 text-muted-foreground">- <ListTodo className="h-10 w-10 text-faint-foreground" />- <p className="text-body">{t(($) => $.page.empty_title)}</p>- </div>+ renderEmpty={({ controller }) => (+ <CollectionPageState+ icon={ListTodo}+ title={t(($) => $.page.empty_title)}+ description={t(($) => $.page.empty_description)}+ actions={+ <>+ <Button size="sm" onClick={() => controller.openCreateIssue()}>+ <Plus aria-hidden="true" />+ {t(($) => $.views.new_issue)}+ </Button>+ {startChat ? (+ <Button+ variant="outline"+ size="sm"+ onClick={() => startChat(t(($) => $.page.break_down_prompt))}+ >+ <MessageSquare aria-hidden="true" />+ {t(($) => $.page.break_down_with_chat)}+ </Button>+ ) : null}+ </>+ }+ />)}/></div>diff --git a/packages/views/issues/surface/issue-surface.tsx b/packages/views/issues/surface/issue-surface.tsxindex afd1db0b73..42537a509d 100644--- a/packages/views/issues/surface/issue-surface.tsx+++ b/packages/views/issues/surface/issue-surface.tsx@@ -9,6 +9,7 @@ import { Button } from "@multica/ui/components/ui/button";import { Skeleton } from "@multica/ui/components/ui/skeleton";import { cn } from "@multica/ui/lib/utils";import { useWorkspaceId } from "@multica/core/hooks";+import { useModalStore } from "@multica/core/modals";import { useQuery } from "@tanstack/react-query";import { workspaceWakeupSummariesOptions } from "@multica/core/issues/wakeups";import {@@ -37,6 +38,7 @@ import { ListView } from "../components/list-view";import { SwimLaneView } from "../components/swimlane-view";import { TableView } from "../components/table-view";import { useT } from "../../i18n";+import { CollectionPageState } from "../../layout/collection-page";import { IssueContextMenuProvider } from "../actions";import { IssueSurfaceActionsProvider } from "./actions-context";import { IssuePeekHost } from "../components/issue-peek";@@ -287,20 +289,32 @@ function IssueSurfaceContent({) : renderEmpty ? (renderEmpty(renderContext)) : (- <div className="flex flex-1 min-h-0 flex-col items-center justify-center gap-3 text-muted-foreground">- <ListTodo className="h-10 w-10 text-faint-foreground" />- <p className="text-body">{t(($) => $.detail.empty_issues_title)}</p>- <p className="text-caption">{t(($) => $.detail.empty_issues_hint)}</p>- <Button- variant="outline"- size="sm"- className="mt-1"- onClick={() => controller.openCreateIssue()}- >- <Plus className="size-3.5 mr-1.5" />- {t(($) => $.detail.empty_issues_new_button)}- </Button>- </div>+ <CollectionPageState+ icon={ListTodo}+ title={t(($) => $.detail.empty_issues_title)}+ description={t(($) => $.detail.empty_issues_hint)}+ actions={+ <>+ <Button size="sm" onClick={() => controller.openCreateIssue()}>+ <Plus aria-hidden="true" />+ {t(($) => $.detail.empty_issues_new_button)}+ </Button>+ {scope.type === "project" ? (+ <Button+ variant="outline"+ size="sm"+ onClick={() =>+ useModalStore+ .getState()+ .open("project-add-issue", { projectId: scope.projectId })+ }+ >+ {t(($) => $.detail.empty_issues_add_existing)}+ </Button>+ ) : null}+ </>+ }+ />)) : (<div className={cn("flex flex-col flex-1 min-h-0", contentClassName)}>@@ -388,23 +402,22 @@ function FilterDependencyErrorState({}) {const { t } = useT("issues");return (- <div+ <CollectionPageStaterole="alert"- className="flex flex-1 min-h-0 flex-col items-center justify-center gap-3 text-muted-foreground"- >- <AlertTriangle className="h-10 w-10 text-faint-foreground" />- <p className="text-body">- {kind === "working"+ tone="warning"+ icon={AlertTriangle}+ title={+ kind === "working"? t(($) => $.working_filter_error.title)- : t(($) => $.status_catalog_error.title)}- </p>- {kind === "status" && (- <p className="text-caption">{t(($) => $.status_catalog_error.hint)}</p>- )}- <Button variant="outline" size="sm" className="mt-1" onClick={onRetry}>- {t(($) => $.status_catalog_error.retry)}- </Button>- </div>+ : t(($) => $.status_catalog_error.title)+ }+ description={kind === "status" ? t(($) => $.status_catalog_error.hint) : undefined}+ actions={+ <Button variant="outline" size="sm" onClick={onRetry}>+ {t(($) => $.status_catalog_error.retry)}+ </Button>+ }+ />);}@@ -420,13 +433,16 @@ function FilteredEmptyState() {: clearFilters;return (- <div className="flex flex-1 min-h-0 flex-col items-center justify-center gap-3 text-muted-foreground">- <FilterX className="h-10 w-10 text-faint-foreground" />- <p className="text-body">{t(($) => $.filtered_empty.title)}</p>- <Button variant="outline" size="sm" className="mt-1" onClick={handleClear}>- {t(($) => $.filtered_empty.clear_button)}- </Button>- </div>+ <CollectionPageState+ size="compact"+ icon={FilterX}+ title={t(($) => $.filtered_empty.title)}+ actions={+ <Button variant="outline" size="sm" onClick={handleClear}>+ {t(($) => $.filtered_empty.clear_button)}+ </Button>+ }+ />);}diff --git a/packages/views/layout/collection-list/collection-list.tsx b/packages/views/layout/collection-list/collection-list.tsxindex 2280ff8fe5..bfe87d4b46 100644--- a/packages/views/layout/collection-list/collection-list.tsx+++ b/packages/views/layout/collection-list/collection-list.tsx@@ -98,7 +98,7 @@ export interface CollectionListProps<T> {sort?: CollectionSort;selection?: CollectionSelection<T>;loading?: boolean;- /** Shown in place of rows when there are none. */+ /** Shown in place of rows when there are none, usually `CollectionNoMatches`. */empty?: ReactNode;hasMore?: boolean;loadingMore?: boolean;@@ -526,11 +526,7 @@ export function CollectionList<T>({<SkeletonRow key={i} columns={columns} selectable={selectable} menu={hasMenu} />));} else if (flatRows.length === 0 && !groups?.length) {- body = empty ? (- <div className="col-span-full py-16 text-center text-body text-muted-foreground">- {empty}- </div>- ) : null;+ body = empty ? <div className="col-span-full">{empty}</div> : null;} else if (virtualize) {const virtualItems = virtualizer.getVirtualItems();const first = virtualItems[0];diff --git a/packages/views/layout/collection-page.test.tsx b/packages/views/layout/collection-page.test.tsxindex 0651e86ae5..727b5ee5d8 100644--- a/packages/views/layout/collection-page.test.tsx+++ b/packages/views/layout/collection-page.test.tsx@@ -7,6 +7,7 @@ import { renderWithI18n } from "../test/i18n";import {CollectionCreateButton,CollectionFilterButton,+ CollectionNoMatches,CollectionPageHeader,CollectionPageState,CollectionScopeItems,@@ -85,6 +86,30 @@ describe("CollectionPageState", () => {});});+describe("CollectionNoMatches", () => {+ it("names the reset after what is narrowing the list", async () => {+ const user = userEvent.setup();+ const onReset = vi.fn();+ const { rerender } = renderWithI18n(+ <CollectionNoMatches title="No teams match" onReset={onReset} hasFilters hasSearch />,+ );+ await user.click(screen.getByRole("button", { name: "Clear filters and search" }));+ expect(onReset).toHaveBeenCalledOnce();++ rerender(<CollectionNoMatches title="No teams match" onReset={onReset} hasSearch />);+ expect(screen.getByRole("button", { name: "Clear search" })).toBeInTheDocument();++ rerender(<CollectionNoMatches title="No teams match" onReset={onReset} hasFilters />);+ expect(screen.getByRole("button", { name: "Clear filters" })).toBeInTheDocument();+ });++ it("offers no reset when nothing is narrowing the list", () => {+ renderWithI18n(<CollectionNoMatches title="No teams match" onReset={vi.fn()} />);+ expect(screen.getByRole("heading", { name: "No teams match" })).toBeInTheDocument();+ expect(screen.queryByRole("button")).not.toBeInTheDocument();+ });+});+function SearchHarness({ initial = "" }: { initial?: string }) {const [value, setValue] = useState(initial);return (diff --git a/packages/views/layout/collection-page.tsx b/packages/views/layout/collection-page.tsxindex 4847b4e98b..81095bdc36 100644--- a/packages/views/layout/collection-page.tsx+++ b/packages/views/layout/collection-page.tsx@@ -417,53 +417,126 @@ interface CollectionPageStateProps {icon: IconComponent;title: ReactNode;description?: ReactNode;+ /** One solid button at most: on an empty page it is the page's one action. */actions?: ReactNode;+ /** Below the actions: a quiet link, or content such as starter templates. */+ children?: ReactNode;tone?: PageStateTone;+ /**+ * `compact` is for rows hidden by filters or search inside a list that still+ * shows its header; `default` is for a page with nothing to show.+ */+ size?: "default" | "compact";role?: "alert" | "status";className?: string;}const stateToneClass: Record<PageStateTone, string> = {muted: "text-muted-foreground",- destructive: "text-destructive",- warning: "text-warning",+ destructive: "bg-destructive/10 text-destructive",+ warning: "bg-warning/15 text-warning",};-/** Shared centered state for collection empty, error and not-found views. */+/**+ * The centered state of a page or list with nothing to show: a first-run+ * empty collection, rows hidden by filters, a missing object or a load error.+ * A first run says what the collection is for and offers to create one; the+ * others always offer a way out (clear, go back, retry).+ */export function CollectionPageState({icon: Icon,title,description,actions,+ children,tone = "muted",+ size = "default",role,className,}: CollectionPageStateProps) {+ const compact = size === "compact";return (<Emptyrole={role}- className={cn("rounded-none border-0 px-6 py-16", className)}+ className={cn(+ "rounded-none border-0 px-6",+ compact ? "gap-3.5 py-12" : "py-16",+ className,+ )}>- <EmptyHeader>+ <EmptyHeader className={compact ? "gap-0.5" : "gap-1"}><EmptyMediavariant="icon"className={cn(- "size-12 rounded-full [&_svg]:size-6",+ "rounded-full",+ compact ? "mb-2.5 size-10 [&_svg]:size-5" : "mb-3 size-12 [&_svg]:size-6",stateToneClass[tone],)}><Icon aria-hidden="true" /></EmptyMedia>- <EmptyTitle>{title}</EmptyTitle>+ <EmptyTitle className={compact ? undefined : "text-title-sm font-semibold"}>+ {title}+ </EmptyTitle>{description ? (- <EmptyDescription className="max-w-md">{description}</EmptyDescription>+ <EmptyDescription className={cn("max-w-md", compact && "text-label")}>+ {description}+ </EmptyDescription>) : null}</EmptyHeader>{actions ? (- <EmptyContent className="mt-1 flex-row justify-center">+ <EmptyContent className={cn("flex-row flex-wrap justify-center gap-2", !compact && "mt-1")}>{actions}</EmptyContent>) : null}+ {children}</Empty>);}++/**+ * A list whose filters or search hide every row. It never offers to create:+ * the rows exist, they are only hidden, so its one action clears what hides+ * them.+ */+export function CollectionNoMatches({+ title,+ description,+ onReset,+ hasFilters = false,+ hasSearch = false,+ children,+}: {+ title: ReactNode;+ description?: ReactNode;+ /** Clears the filters and search; omit when neither is on. */+ onReset?: () => void;+ hasFilters?: boolean;+ hasSearch?: boolean;+ children?: ReactNode;+}) {+ const { t } = useT("layout");+ const resetLabel =+ hasFilters && hasSearch+ ? t(($) => $.collection.clear_filters_and_search)+ : hasSearch+ ? t(($) => $.collection.clear_search)+ : t(($) => $.collection.clear_filters);+ return (+ <CollectionPageState+ size="compact"+ icon={Search}+ title={title}+ description={description}+ actions={+ onReset && (hasFilters || hasSearch) ? (+ <Button type="button" variant="outline" size="sm" onClick={onReset}>+ {resetLabel}+ </Button>+ ) : null+ }+ >+ {children}+ </CollectionPageState>+ );+}diff --git a/packages/views/layout/issue-page-refresh.test.tsx b/packages/views/layout/issue-page-refresh.test.tsxindex b4b3710557..7a9ea7ed43 100644--- a/packages/views/layout/issue-page-refresh.test.tsx+++ b/packages/views/layout/issue-page-refresh.test.tsx@@ -26,6 +26,9 @@ vi.mock("../issues/surface/issue-surface", () => ({<>{renderHeader({ controller: { isRefreshing: state.refreshing, surfaceIssues: [] } })}</>),}));+vi.mock("../chat/use-start-chat-with-draft", () => ({+ useStartChatWithDraft: () => null,+}));vi.mock("../issue-views/view-header", () => ({IssueViewHeader: ({ controller, base }: { controller: { isRefreshing: boolean }; base: { kind: string } }) => (<header>diff --git a/packages/views/layout/object-page.tsx b/packages/views/layout/object-page.tsxindex 8f23fb1198..303944ec56 100644--- a/packages/views/layout/object-page.tsx+++ b/packages/views/layout/object-page.tsx@@ -126,7 +126,7 @@ export function ObjectPage({ segments, leaf, actions, panel, layoutId, children/>);- const body = <div className="min-h-0 flex-1 overflow-y-auto">{children}</div>;+ const body = <div className="flex min-h-0 flex-1 flex-col overflow-y-auto">{children}</div>;if (!panel) {return (@@ -287,6 +287,41 @@ export function ObjectSectionCard({ children, className }: { children: ReactNode);}+/**+ * A section with nothing in it yet. The section's heading already names the+ * object, so this is a quiet row rather than a centered page state: what will+ * appear here, or what to do first, with the action at its end.+ */+export function ObjectSectionEmpty({+ icon: Icon,+ title,+ description,+ action,+ className,+}: {+ icon?: IconComponent;+ title?: ReactNode;+ description: ReactNode;+ action?: ReactNode;+ className?: string;+}) {+ return (+ <div+ className={cn(+ "flex min-h-13 items-center gap-3 rounded-lg border border-dashed border-input py-2.5 pr-2.5 pl-3.5 text-muted-foreground",+ className,+ )}+ >+ {Icon ? <Icon aria-hidden="true" className="size-4.5 shrink-0 text-faint-foreground" /> : null}+ <div className="min-w-0 flex-1 text-label">+ {title ? <p className="text-body font-medium text-foreground">{title}</p> : null}+ <p>{description}</p>+ </div>+ {action ? <div className="flex shrink-0 items-center gap-1">{action}</div> : null}+ </div>+ );+}+/** A titled group in the properties panel, collapsible like the issue page's. */export function ObjectPanelSection({title,diff --git a/packages/views/layout/panels/work-tree.tsx b/packages/views/layout/panels/work-tree.tsxindex 0ae350c524..8416095b57 100644--- a/packages/views/layout/panels/work-tree.tsx+++ b/packages/views/layout/panels/work-tree.tsx@@ -25,7 +25,15 @@ import { useModalStore } from "@multica/core/modals";import { useWorkspacePaths } from "@multica/core/paths";import type { Issue, ListIssuesResponse, Project } from "@multica/core/types";import { useT } from "../../i18n";-import { PanelCount, PanelLink, PanelList, PanelSection, isPathWithin } from "../panel-nav";+import {+ PANEL_ROW_CLASS,+ PanelCount,+ PanelLink,+ PanelList,+ PanelSection,+ isPathWithin,+ panelRowStateClass,+} from "../panel-nav";import { ProjectsSectionSettings } from "./sidebar-settings";import { SidebarIssueList, TreeRow } from "./sidebar-tree";@@ -165,13 +173,32 @@ export function ProjectsSection({</SortableContext></DndContext><PanelList className="mt-px">- <PanelLink- href={p.projects()}- icon={<span className="size-4" aria-hidden />}- label={t(($) => $.panels.work.all_projects, { count: totalProjects })}- active={pathname === p.projects()}- className="text-caption"- />+ {totalProjects === 0 ? (+ <li>+ <button+ type="button"+ className={cn(+ PANEL_ROW_CLASS,+ panelRowStateClass(false),+ "w-full text-caption text-muted-foreground [&_svg]:size-4 [&_svg]:shrink-0",+ )}+ onClick={() => useModalStore.getState().open("create-project")}+ >+ <Plus aria-hidden="true" />+ <span className="min-w-0 flex-1 truncate text-left">+ {t(($) => $.panels.work.new_project)}+ </span>+ </button>+ </li>+ ) : (+ <PanelLink+ href={p.projects()}+ icon={<span className="size-4" aria-hidden />}+ label={t(($) => $.panels.work.all_projects, { count: totalProjects })}+ active={pathname === p.projects()}+ className="text-caption"+ />+ )}</PanelList></PanelSection>);diff --git a/packages/views/locales/en/agents.json b/packages/views/locales/en/agents.jsonindex cecd93ccd5..c48d52a1b2 100644--- a/packages/views/locales/en/agents.json+++ b/packages/views/locales/en/agents.json@@ -47,7 +47,15 @@},"empty": {"title": "No agents yet",- "description": "Create an agent, then assign it issues."+ "description": "An agent picks up the issues assigned to it and works through them on your runtime.",+ "setup": {+ "label": "Setup steps",+ "runtime": "Connect a runtime",+ "agent": "Create an agent",+ "issue": "Assign it an issue",+ "done": "(done)",+ "connect_runtime": "Connect"+ }},"no_matches": {"title": "No matches",@@ -722,6 +730,7 @@"load_failed": "Couldn't load your connected apps. Try again shortly.","empty_title": "No connected apps yet","empty_link_to_settings": "Connect one in Settings → Integrations",+ "open_settings": "Open settings","connected": "Connected","toggle_aria": "Allow {{toolkit}} for this agent","saving": "Saving…",diff --git a/packages/views/locales/en/autopilots.json b/packages/views/locales/en/autopilots.jsonindex 4a43040e5d..dc1cde0e8e 100644--- a/packages/views/locales/en/autopilots.json+++ b/packages/views/locales/en/autopilots.json@@ -66,6 +66,8 @@},"detail": {"not_found": "Autopilot not found",+ "not_found_description": "It may have been deleted or you may not have access.",+ "back_to_list": "All autopilots","pause_aria": "Pause autopilot","activate_aria": "Activate autopilot","paused_runtime_required": "Paused because the assignee lost its runtime. Bind a runtime, then reactivate this autopilot.",@@ -486,6 +488,7 @@"load_error": "Could not load wakeups","loading": "Loading wakeups…","empty": "No wakeup rules yet",+ "empty_description": "Schedules, PR waits, and reply waits that agents set on issues show up here.","disable_selected": "Turn off selected","confirm_title": "Turn off {{count}} wakeups?","confirm_body": "Future wakeups will stop. Runs still queued and not handed to an agent will be withdrawn. Dispatched runs will continue; stop them from the execution log.",@@ -502,7 +505,6 @@},"target_agent": "Wake agent","empty_filtered": "No matching wakeups",- "clear_filters": "Clear filters","batch_success": "Turned off {{count}} wakeup rules","batch_partial": "Turned off {{succeeded}}; {{failed}} failed. Failed items remain selected for retry.","source": "Source",diff --git a/packages/views/locales/en/chat.json b/packages/views/locales/en/chat.jsonindex cdad1e8dd8..4acc9069d6 100644--- a/packages/views/locales/en/chat.json+++ b/packages/views/locales/en/chat.json@@ -1,6 +1,9 @@{"page": {"title": "Chat",+ "no_agent_title": "No agent to chat with yet",+ "no_agent_description": "Create an agent, then talk through a request here and let it turn the request into issues.",+ "no_agent_action": "New agent","select_prompt": "Pick a conversation, or start a new one with +","agent_link_no_access": "You don't have access to chat with this agent."},diff --git a/packages/views/locales/en/inbox.json b/packages/views/locales/en/inbox.jsonindex 7fa5560abe..e92f01bebc 100644--- a/packages/views/locales/en/inbox.json+++ b/packages/views/locales/en/inbox.json@@ -6,8 +6,11 @@"sections": {"action": "Needs action","activity": "Activity",- "action_empty": "Nothing needs your attention",- "activity_empty": "No recent activity"+ "action_empty": "You're all caught up",+ "activity_empty": "No recent activity",+ "activity_waiting_other": "{{count}} updates are waiting in Activity.",+ "open_activity": "View activity",+ "activity_waiting_one": "{{count}} update is waiting in Activity."},"menu": {"mark_all_read": "Mark all as read",diff --git a/packages/views/locales/en/issues.json b/packages/views/locales/en/issues.jsonindex 0649615bdc..76389a84e1 100644--- a/packages/views/locales/en/issues.json+++ b/packages/views/locales/en/issues.json@@ -119,6 +119,9 @@"breadcrumb_title": "Issues","breadcrumb_workspace_fallback": "Workspace","empty_title": "No issues yet",+ "empty_description": "An issue is one concrete piece of work for a member or an agent. Assign it to an agent and it starts on your runtime.",+ "break_down_with_chat": "Break down with chat",+ "break_down_prompt": "I want to get the following done. Ask me what you need to know, then break it into issues in this workspace:\n\n","move_failed": "Failed to move issue"},"status": {@@ -412,7 +415,7 @@}},"search_placeholder": "Search issues...",- "search_empty": "No issues match your search."+ "search_empty": "No issues match your search"},"list": {"empty_status": "No issues",@@ -452,6 +455,7 @@"metadata_description": "Key-value data recorded by agents and integrations for workflow coordination.","section_load_failed_retry": "Could not load. Retry","not_found": "This issue does not exist or has been deleted in this workspace.",+ "not_found_title": "Issue not found","breadcrumb_project_unknown": "Unknown project","back": "Back","title_placeholder": "Issue title",@@ -1841,7 +1845,8 @@"star": "Add {{name}} to sidebar","unstar": "Remove {{name}} from sidebar","row_actions": "Actions for {{name}}",- "no_matches": "No views match"+ "empty_title": "No saved views yet",+ "empty_description": "Set up filters and display options in an issue list, then save them as a view."}}}diff --git a/packages/views/locales/en/layout.json b/packages/views/locales/en/layout.jsonindex 7e4998fe37..868a8fd1f6 100644--- a/packages/views/locales/en/layout.json+++ b/packages/views/locales/en/layout.json@@ -165,6 +165,8 @@"filter_count_other": "{{count}} filters","reset": "Reset","clear_search": "Clear search",+ "clear_filters": "Clear filters",+ "clear_filters_and_search": "Clear filters and search","display": "Display settings","selected_one": "{{count}} selected","selected_other": "{{count}} selected",diff --git a/packages/views/locales/en/modals.json b/packages/views/locales/en/modals.jsonindex 6d0877aa81..a882b1e7ba 100644--- a/packages/views/locales/en/modals.json+++ b/packages/views/locales/en/modals.json@@ -61,6 +61,12 @@"toast_failed": "Failed to add sub-issue","toast_success": "Added {{identifier}} as sub-issue"},+ "add_project_issue": {+ "title": "Add existing issue",+ "description": "Search for an issue to move into this project",+ "toast_success": "Moved {{identifier}} into the project",+ "toast_failed": "Failed to move the issue"+ },"run_confirm": {"title_assign": "Confirm assignment?","assign_single": "Assign this issue to {{name}}. They'll start right away if the run conditions are met.",diff --git a/packages/views/locales/en/projects.json b/packages/views/locales/en/projects.jsonindex 033f6be3cd..8cea0861e5 100644--- a/packages/views/locales/en/projects.json+++ b/packages/views/locales/en/projects.json@@ -6,7 +6,7 @@"scope_active": "Active projects","scope_closed": "Closed projects","empty": "No projects yet",- "create_first": "Create your first project",+ "empty_description": "Group related issues into a project to track progress and owners.","view_compact": "Compact","view_comfortable": "Comfortable","no_search_results": "No results match your search",@@ -56,6 +56,8 @@},"detail": {"not_found": "Project not found",+ "not_found_description": "It may have been deleted or you may not have access.",+ "back_to_list": "All projects","breadcrumb_fallback": "Projects","title_placeholder": "Project title","icon_tooltip": "Change icon",@@ -73,9 +75,10 @@"no_due_date": "No due date","description_placeholder": "Add description...","description_hint": "Shared with agents as context for every run in this project.",- "empty_issues_title": "No issues linked",- "empty_issues_hint": "You can also add existing issues to this project.",+ "empty_issues_title": "No issues in this project yet",+ "empty_issues_hint": "Create one, or move an existing issue here.","empty_issues_new_button": "New Issue",+ "empty_issues_add_existing": "Add existing issue","no_issues_yet": "No issues yet","toast_link_copied": "Link copied","toast_project_deleted": "Project deleted",diff --git a/packages/views/locales/en/skills.json b/packages/views/locales/en/skills.jsonindex 2576ec2721..7fe7353165 100644--- a/packages/views/locales/en/skills.json+++ b/packages/views/locales/en/skills.json@@ -22,7 +22,7 @@},"empty": {"title": "No skills yet",- "description": "Create or import a skill."+ "description": "A skill is a reusable way of working for your agents. Create one, or import it from a runtime."},"no_matches": {"title": "No matches",diff --git a/packages/views/locales/en/squads.json b/packages/views/locales/en/squads.jsonindex d4766b338b..ac6cdeb1b2 100644--- a/packages/views/locales/en/squads.json+++ b/packages/views/locales/en/squads.json@@ -2,7 +2,8 @@"page": {"title": "Squads","new_button": "New squad",- "empty_no_squads": "No squads yet.",+ "empty_no_squads": "No squads yet",+ "empty_description": "Group agents and members into a squad so issues can go to the whole squad.","empty_no_match": "No squads match your filters.","table": {"name": "Squad",@@ -64,6 +65,8 @@"members_tab": {"section_title": "Members","add_member_button": "Add member",+ "empty_title": "No members yet",+ "empty_description": "Add agents or members, and issues assigned to this squad go to them.","create_agent_button": "Create Agent","leader_chip": "Leader","view_agent_tooltip": "Open agent detail",@@ -82,6 +85,8 @@"copy_link": "Copy link","link_copied": "Link copied","not_found": "Squad not found",+ "not_found_description": "It may have been deleted or you may not have access.",+ "back_to_list": "All squads","instructions": "Instructions","edit": "Edit","cancel": "Cancel",diff --git a/packages/views/locales/en/usage.json b/packages/views/locales/en/usage.jsonindex e170943fa9..c89140be72 100644--- a/packages/views/locales/en/usage.json+++ b/packages/views/locales/en/usage.json@@ -76,7 +76,7 @@"header_rate": "Rate","other_agents": "Other agents","low_sample": "Fewer than {{count}} runs in this window — this rate is not meaningful.",- "no_data": "No failed runs in this window.",+ "no_data": "No failed runs in this window","show_reasons": "Show error codes","hide_reasons": "Hide error codes","show_all": "Show all {{count}}",@@ -105,7 +105,7 @@},"empty": {"title": "No usage yet",- "body": "Run agents to see token usage and run time."+ "body": "Once agents start running, token usage, cost, and failure rate show up here."},"duration": {"less_than_minute": "<1m"diff --git a/packages/views/locales/fr/agents.json b/packages/views/locales/fr/agents.jsonindex 14ea413c20..e4005d1d74 100644--- a/packages/views/locales/fr/agents.json+++ b/packages/views/locales/fr/agents.json@@ -47,7 +47,15 @@},"empty": {"title": "Aucun agent pour l'instant",- "description": "Créez un agent, puis assignez-lui des tâches."+ "description": "Un agent prend en charge les tâches qui lui sont assignées et les mène à bien sur votre runtime.",+ "setup": {+ "label": "Étapes de configuration",+ "runtime": "Connecter un runtime",+ "agent": "Créer un agent",+ "issue": "Lui assigner une tâche",+ "done": "(fait)",+ "connect_runtime": "Connecter"+ }},"no_matches": {"title": "Aucune correspondance",@@ -722,6 +730,7 @@"load_failed": "Impossible de charger vos applications connectées. Réessayez dans un instant.","empty_title": "Aucune application connectée pour l'instant","empty_link_to_settings": "Connectez-en un dans Paramètres → Intégrations",+ "open_settings": "Ouvrir les paramètres","connected": "Connecté","toggle_aria": "Autoriser {{toolkit}} pour cet agent","saving": "Enregistrement…",diff --git a/packages/views/locales/fr/autopilots.json b/packages/views/locales/fr/autopilots.jsonindex 7541d9f56c..bdf199a2cd 100644--- a/packages/views/locales/fr/autopilots.json+++ b/packages/views/locales/fr/autopilots.json@@ -66,6 +66,8 @@},"detail": {"not_found": "Automatisation introuvable",+ "not_found_description": "Elle a peut-être été supprimée, ou vous n'y avez pas accès.",+ "back_to_list": "Toutes les automatisations","pause_aria": "Mettre l'automatisation en pause","activate_aria": "Activer l'automatisation","paused_runtime_required": "En pause car l'assigné a perdu son runtime. Associez un runtime, puis réactivez cette automatisation.",@@ -486,6 +488,7 @@"load_error": "Impossible de charger les réveils","loading": "Chargement des réveils…","empty": "Aucune règle de réveil",+ "empty_description": "Les planifications et attentes de PR ou de réponse que les agents posent sur les tâches apparaissent ici.","disable_selected": "Désactiver la sélection","confirm_title": "Désactiver {{count}} réveils ?","confirm_body": "Les réveils futurs seront arrêtés. Les exécutions en file non confiées à un agent seront retirées. Les exécutions déjà confiées continueront ; arrêtez-les depuis le journal d’exécution.",@@ -502,7 +505,6 @@},"target_agent": "Agent à réveiller","empty_filtered": "Aucun réveil correspondant",- "clear_filters": "Effacer les filtres","batch_success": "{{count}} règles désactivées","batch_partial": "{{succeeded}} désactivées ; {{failed}} échecs. Les éléments en échec restent sélectionnés pour réessayer.","source": "Source",diff --git a/packages/views/locales/fr/chat.json b/packages/views/locales/fr/chat.jsonindex 48a12550c2..c33a602a4f 100644--- a/packages/views/locales/fr/chat.json+++ b/packages/views/locales/fr/chat.json@@ -1,6 +1,9 @@{"page": {"title": "Discussion",+ "no_agent_title": "Aucun agent avec qui discuter pour l'instant",+ "no_agent_description": "Créez un agent, puis décrivez-lui une demande ici pour qu'il la transforme en tâches.",+ "no_agent_action": "Nouvel agent","select_prompt": "Choisissez une conversation, ou démarrez-en une nouvelle avec +","agent_link_no_access": "Vous n'avez pas accès à la discussion avec cet agent."},diff --git a/packages/views/locales/fr/inbox.json b/packages/views/locales/fr/inbox.jsonindex 6a9d653add..9d34a7f5e0 100644--- a/packages/views/locales/fr/inbox.json+++ b/packages/views/locales/fr/inbox.json@@ -6,8 +6,11 @@"sections": {"action": "À traiter","activity": "Activité",- "action_empty": "Rien ne requiert votre attention",- "activity_empty": "Aucune activité récente"+ "action_empty": "Vous êtes à jour",+ "activity_empty": "Aucune activité récente",+ "activity_waiting_other": "{{count}} mises à jour vous attendent dans Activité.",+ "open_activity": "Voir l'activité",+ "activity_waiting_one": "{{count}} mise à jour vous attend dans Activité."},"menu": {"mark_all_read": "Tout marquer comme lu",diff --git a/packages/views/locales/fr/issues.json b/packages/views/locales/fr/issues.jsonindex 3e3abbf0ae..7e3840f5c3 100644--- a/packages/views/locales/fr/issues.json+++ b/packages/views/locales/fr/issues.json@@ -119,6 +119,9 @@"breadcrumb_title": "Tâches","breadcrumb_workspace_fallback": "Espace de travail","empty_title": "Aucune tâche pour l'instant",+ "empty_description": "Une tâche est un travail concret confié à un membre ou à un agent. Assignée à un agent, elle démarre seule sur votre runtime.",+ "break_down_with_chat": "Découper avec le chat",+ "break_down_prompt": "Voici ce que je veux accomplir. Posez-moi les questions nécessaires, puis découpez-le en tâches dans cet espace de travail :\n\n","move_failed": "Échec du déplacement de la tâche"},"status": {@@ -412,7 +415,7 @@}},"search_placeholder": "Rechercher des tâches...",- "search_empty": "Aucune tâche ne correspond à votre recherche."+ "search_empty": "Aucune tâche ne correspond à votre recherche"},"list": {"empty_status": "Aucune tâche",@@ -452,6 +455,7 @@"metadata_description": "Données clé-valeur enregistrées par les agents et les intégrations pour poursuivre le workflow.","section_load_failed_retry": "Échec du chargement. Réessayer","not_found": "Cette tâche n'existe pas ou a été supprimée dans cet espace de travail.",+ "not_found_title": "Tâche introuvable","breadcrumb_project_unknown": "Projet inconnu","back": "Retour","title_placeholder": "Titre de la tâche",@@ -1841,7 +1845,8 @@"star": "Ajouter {{name}} à la barre latérale","unstar": "Retirer {{name}} de la barre latérale","row_actions": "Actions pour {{name}}",- "no_matches": "Aucune vue ne correspond"+ "empty_title": "Aucune vue enregistrée pour l'instant",+ "empty_description": "Réglez les filtres et l'affichage d'une liste de tâches, puis enregistrez-les comme vue."}}}diff --git a/packages/views/locales/fr/layout.json b/packages/views/locales/fr/layout.jsonindex 5ef5dda1d1..b4b5e89061 100644--- a/packages/views/locales/fr/layout.json+++ b/packages/views/locales/fr/layout.json@@ -165,6 +165,8 @@"filter_count_other": "{{count}} filtres","reset": "Réinitialiser","clear_search": "Effacer la recherche",+ "clear_filters": "Effacer les filtres",+ "clear_filters_and_search": "Effacer les filtres et la recherche","display": "Affichage","selected_one": "{{count}} sélectionné","selected_other": "{{count}} sélectionnés",diff --git a/packages/views/locales/fr/modals.json b/packages/views/locales/fr/modals.jsonindex 2459d711dd..4f5c0b874d 100644--- a/packages/views/locales/fr/modals.json+++ b/packages/views/locales/fr/modals.json@@ -61,6 +61,12 @@"toast_failed": "Échec de l'ajout de la sous-tâche","toast_success": "{{identifier}} ajoutée comme sous-tâche"},+ "add_project_issue": {+ "title": "Ajouter une tâche existante",+ "description": "Recherchez une tâche à déplacer dans ce projet",+ "toast_success": "{{identifier}} a été déplacée dans le projet",+ "toast_failed": "Impossible de déplacer la tâche"+ },"run_confirm": {"title_assign": "Confirmer l'assignation ?","assign_single": "Assigner cette tâche à {{name}}. Le travail démarrera immédiatement si les conditions d'exécution sont réunies.",diff --git a/packages/views/locales/fr/projects.json b/packages/views/locales/fr/projects.jsonindex 0fa282f019..9229b9136d 100644--- a/packages/views/locales/fr/projects.json+++ b/packages/views/locales/fr/projects.json@@ -6,7 +6,7 @@"scope_active": "Projets actifs","scope_closed": "Projets clos","empty": "Aucun projet pour l'instant",- "create_first": "Créez votre premier projet",+ "empty_description": "Regroupez les tâches liées dans un projet pour suivre l'avancement et les responsables.","view_compact": "Compact","view_comfortable": "Confortable","no_search_results": "Aucun résultat ne correspond à votre recherche",@@ -56,6 +56,8 @@},"detail": {"not_found": "Projet introuvable",+ "not_found_description": "Il a peut-être été supprimé, ou vous n'y avez pas accès.",+ "back_to_list": "Tous les projets","breadcrumb_fallback": "Projets","title_placeholder": "Titre du projet","icon_tooltip": "Changer d'icône",@@ -73,9 +75,10 @@"no_due_date": "Aucune date d'échéance","description_placeholder": "Ajouter une description...","description_hint": "Partagé avec les agents comme contexte à chaque exécution dans ce projet.",- "empty_issues_title": "Aucune tâche liée",- "empty_issues_hint": "Vous pouvez aussi ajouter des tâches existantes à ce projet.",+ "empty_issues_title": "Aucune tâche dans ce projet pour l'instant",+ "empty_issues_hint": "Créez-en une, ou déplacez ici une tâche existante.","empty_issues_new_button": "Nouvelle tâche",+ "empty_issues_add_existing": "Ajouter une tâche existante","no_issues_yet": "Aucune tâche pour l'instant","toast_link_copied": "Lien copié","toast_project_deleted": "Projet supprimé",diff --git a/packages/views/locales/fr/skills.json b/packages/views/locales/fr/skills.jsonindex 69547d0562..41d95b2daa 100644--- a/packages/views/locales/fr/skills.json+++ b/packages/views/locales/fr/skills.json@@ -22,7 +22,7 @@},"empty": {"title": "Aucun skill pour l'instant",- "description": "Créez ou importez un skill."+ "description": "Un skill est une méthode de travail réutilisable par vos agents. Créez-en un, ou importez-le depuis un runtime."},"no_matches": {"title": "Aucune correspondance",diff --git a/packages/views/locales/fr/squads.json b/packages/views/locales/fr/squads.jsonindex cc8b9f506b..43fb44af09 100644--- a/packages/views/locales/fr/squads.json+++ b/packages/views/locales/fr/squads.json@@ -2,7 +2,8 @@"page": {"title": "Squads","new_button": "Nouveau squad",- "empty_no_squads": "Aucun squad pour l’instant.",+ "empty_no_squads": "Aucun squad pour l'instant",+ "empty_description": "Réunissez agents et membres dans un squad pour lui confier des tâches directement.","empty_no_match": "Aucun squad ne correspond à vos filtres.","table": {"name": "Squad",@@ -64,6 +65,8 @@"members_tab": {"section_title": "Membres","add_member_button": "Ajouter un membre",+ "empty_title": "Aucun membre pour l'instant",+ "empty_description": "Ajoutez des agents ou des membres : les tâches assignées à ce squad leur reviendront.","create_agent_button": "Créer un agent","leader_chip": "Chef","view_agent_tooltip": "Ouvrir le détail de l'agent",@@ -82,6 +85,8 @@"copy_link": "Copier le lien","link_copied": "Lien copié","not_found": "Squad introuvable",+ "not_found_description": "Il a peut-être été supprimé, ou vous n'y avez pas accès.",+ "back_to_list": "Tous les squads","instructions": "Instructions","edit": "Modifier","cancel": "Annuler",diff --git a/packages/views/locales/fr/usage.json b/packages/views/locales/fr/usage.jsonindex 7240f3e3e0..4fca0aa7ec 100644--- a/packages/views/locales/fr/usage.json+++ b/packages/views/locales/fr/usage.json@@ -76,7 +76,7 @@"header_rate": "Taux","other_agents": "Autres agents","low_sample": "Moins de {{count}} exécutions sur cette fenêtre — ce taux n'est pas significatif.",- "no_data": "Aucune exécution en échec sur cette fenêtre.",+ "no_data": "Aucune exécution en échec sur cette période","show_reasons": "Afficher les codes d'erreur","hide_reasons": "Masquer les codes d'erreur","show_all": "Afficher les {{count}}",@@ -105,7 +105,7 @@},"empty": {"title": "Aucune consommation pour l'instant",- "body": "Lancez des agents pour voir leur consommation de tokens et leur durée d’exécution."+ "body": "Dès que les agents tournent, leur consommation de tokens, leur coût et leur taux d'échec s'affichent ici."},"duration": {"less_than_minute": "<1 min"diff --git a/packages/views/locales/ja/agents.json b/packages/views/locales/ja/agents.jsonindex 1c7597d631..c18e6b484d 100644--- a/packages/views/locales/ja/agents.json+++ b/packages/views/locales/ja/agents.json@@ -46,7 +46,15 @@},"empty": {"title": "まだエージェントがいません",- "description": "エージェントを作成してタスクを割り当てましょう。"+ "description": "エージェントは割り当てられたタスクを引き受け、ランタイム上で自分で進めます。",+ "setup": {+ "label": "セットアップ手順",+ "runtime": "ランタイムを接続する",+ "agent": "エージェントを作成する",+ "issue": "タスクを割り当てる",+ "done": "(完了)",+ "connect_runtime": "接続"+ }},"no_matches": {"title": "一致する結果なし",@@ -545,6 +553,7 @@"load_failed": "接続済みアプリを読み込めませんでした。しばらくしてから再試行してください。","empty_title": "接続済みのアプリがありません","empty_link_to_settings": "設定 → 連携 で接続する",+ "open_settings": "設定を開く","connected": "接続済み","toggle_aria": "この agent に {{toolkit}} を許可","saving": "保存中…",diff --git a/packages/views/locales/ja/autopilots.json b/packages/views/locales/ja/autopilots.jsonindex 069c13afb9..eaf086fb9f 100644--- a/packages/views/locales/ja/autopilots.json+++ b/packages/views/locales/ja/autopilots.json@@ -66,6 +66,8 @@},"detail": {"not_found": "オートパイロットが見つかりません",+ "not_found_description": "削除されたか、アクセス権がない可能性があります。",+ "back_to_list": "すべてのオートパイロット","pause_aria": "オートパイロットを一時停止","activate_aria": "オートパイロットを有効化","paused_runtime_required": "担当エージェントのランタイムが失われたため一時停止しました。ランタイムを設定してから再度有効にしてください。",@@ -485,6 +487,7 @@"load_error": "読み込めませんでした","loading": "読み込み中…","empty": "ルールはまだありません",+ "empty_description": "エージェントがタスクに設定した定時実行、PR 待ち、返信待ちがここに表示されます。","disable_selected": "選択項目を無効化","confirm_title": "{{count}} 件を無効にしますか?","confirm_body": "今後の起動を停止し、エージェントに渡されていない待機中の実行を取り消します。割り当て済みの実行は継続します。実行ログから停止できます。",@@ -501,7 +504,6 @@},"target_agent": "起動するエージェント","empty_filtered": "一致するルールがありません",- "clear_filters": "フィルターを解除","batch_success": "{{count}} 件のルールを無効化しました","batch_partial": "{{succeeded}} 件を無効化、{{failed}} 件が失敗しました。失敗した項目を選択したまま再試行できます。","source": "作成元",diff --git a/packages/views/locales/ja/chat.json b/packages/views/locales/ja/chat.jsonindex 28be394d5f..bbeb6ef094 100644--- a/packages/views/locales/ja/chat.json+++ b/packages/views/locales/ja/chat.json@@ -1,6 +1,9 @@{"page": {"title": "チャット",+ "no_agent_title": "チャットできるエージェントはまだいません",+ "no_agent_description": "エージェントを作成すると、ここで要望を話し合い、タスクに分解してもらえます。",+ "no_agent_action": "新規エージェント","select_prompt": "会話を選ぶか、+ で新規作成してください","agent_link_no_access": "このエージェントとチャットする権限がありません。"},diff --git a/packages/views/locales/ja/inbox.json b/packages/views/locales/ja/inbox.jsonindex 75b0206051..0cdc797a3e 100644--- a/packages/views/locales/ja/inbox.json+++ b/packages/views/locales/ja/inbox.json@@ -6,8 +6,10 @@"sections": {"action": "要対応","activity": "アクティビティ",- "action_empty": "対応が必要なものはありません",- "activity_empty": "最近のアクティビティはありません"+ "action_empty": "対応が必要なものはすべて片付きました",+ "activity_empty": "最近のアクティビティはありません",+ "activity_waiting_other": "アクティビティに {{count}} 件の更新があります。",+ "open_activity": "アクティビティを見る"},"menu": {"mark_all_read": "すべて既読にする",diff --git a/packages/views/locales/ja/issues.json b/packages/views/locales/ja/issues.jsonindex fba4695ee2..5e60cff683 100644--- a/packages/views/locales/ja/issues.json+++ b/packages/views/locales/ja/issues.json@@ -117,6 +117,9 @@"breadcrumb_title": "タスク","breadcrumb_workspace_fallback": "ワークスペース","empty_title": "まだタスクがありません",+ "empty_description": "タスクはメンバーやエージェントに任せる具体的な作業です。エージェントに割り当てると、ランタイム上で自動的に始まります。",+ "break_down_with_chat": "チャットで分解する",+ "break_down_prompt": "次のことを進めたいです。必要なことを質問してから、このワークスペースのタスクに分解してください:\n\n","move_failed": "タスクを移動できませんでした"},"status": {@@ -406,7 +409,7 @@}},"search_placeholder": "タスクを検索...",- "search_empty": "検索条件に一致するタスクがありません。"+ "search_empty": "検索条件に一致するタスクがありません"},"list": {"empty_status": "タスクなし",@@ -446,6 +449,7 @@"metadata_description": "エージェントや連携機能がワークフローを引き継ぐために記録するキーと値のデータ。","section_load_failed_retry": "読み込めませんでした。再試行","not_found": "このタスクはこのワークスペースに存在しないか、削除されています。",+ "not_found_title": "タスクが見つかりません","breadcrumb_project_unknown": "不明なプロジェクト","back": "戻る","title_placeholder": "タスクのタイトル",@@ -1772,7 +1776,8 @@"star": "{{name}} をサイドバーに追加","unstar": "{{name}} をサイドバーから削除","row_actions": "{{name}} の操作",- "no_matches": "一致するビューはありません"+ "empty_title": "保存したビューはまだありません",+ "empty_description": "タスク一覧でフィルターと表示方法を調整し、ビューとして保存します。"}}}diff --git a/packages/views/locales/ja/layout.json b/packages/views/locales/ja/layout.jsonindex 7f5aa2d66a..2f4942a27e 100644--- a/packages/views/locales/ja/layout.json+++ b/packages/views/locales/ja/layout.json@@ -159,6 +159,8 @@"filter_count_other": "{{count}} 件のフィルター","reset": "リセット","clear_search": "検索をクリア",+ "clear_filters": "フィルターをクリア",+ "clear_filters_and_search": "フィルターと検索をクリア","display": "表示設定","selected_other": "{{count}} 件選択中","clear_selection": "選択を解除",diff --git a/packages/views/locales/ja/modals.json b/packages/views/locales/ja/modals.jsonindex 353ca52c6f..9f405d670c 100644--- a/packages/views/locales/ja/modals.json+++ b/packages/views/locales/ja/modals.json@@ -61,6 +61,12 @@"toast_failed": "サブタスクを追加できませんでした","toast_success": "{{identifier}} をサブタスクとして追加しました"},+ "add_project_issue": {+ "title": "既存のタスクを追加",+ "description": "このプロジェクトに移すタスクを検索します",+ "toast_success": "{{identifier}} をプロジェクトに移しました",+ "toast_failed": "タスクを移動できませんでした"+ },"run_confirm": {"title_assign": "割り当てを確認しますか?","assign_single": "このタスクを {{name}} に割り当てます。実行条件を満たす場合はすぐに作業を開始します。",diff --git a/packages/views/locales/ja/projects.json b/packages/views/locales/ja/projects.jsonindex f52ef87463..fbfb885b07 100644--- a/packages/views/locales/ja/projects.json+++ b/packages/views/locales/ja/projects.json@@ -6,7 +6,7 @@"scope_active": "進行中のプロジェクト","scope_closed": "終了したプロジェクト","empty": "プロジェクトはまだありません",- "create_first": "最初のプロジェクトを作成",+ "empty_description": "関連するタスクをプロジェクトにまとめ、進捗と担当者を追跡します。","view_compact": "コンパクト","view_comfortable": "ゆったり","no_search_results": "検索条件に一致する結果はありません",@@ -56,6 +56,8 @@},"detail": {"not_found": "プロジェクトが見つかりません",+ "not_found_description": "削除されたか、アクセス権がない可能性があります。",+ "back_to_list": "すべてのプロジェクト","breadcrumb_fallback": "プロジェクト","title_placeholder": "プロジェクトのタイトル","icon_tooltip": "アイコンを変更",@@ -73,9 +75,10 @@"no_due_date": "期限なし","description_placeholder": "説明を追加...","description_hint": "このプロジェクトのすべての実行で、コンテキストとしてエージェントに共有されます。",- "empty_issues_title": "リンクされたタスクはありません",- "empty_issues_hint": "既存のタスクをこのプロジェクトに追加することもできます。",+ "empty_issues_title": "このプロジェクトにはまだタスクがありません",+ "empty_issues_hint": "新しく作成するか、既存のタスクをここに移します。","empty_issues_new_button": "新規タスク",+ "empty_issues_add_existing": "既存のタスクを追加","no_issues_yet": "タスクはまだありません","toast_link_copied": "リンクをコピーしました","toast_project_deleted": "プロジェクトを削除しました",diff --git a/packages/views/locales/ja/skills.json b/packages/views/locales/ja/skills.jsonindex 37b23d8f3f..9bcf2f0734 100644--- a/packages/views/locales/ja/skills.json+++ b/packages/views/locales/ja/skills.json@@ -22,7 +22,7 @@},"empty": {"title": "まだスキルがありません",- "description": "skill を作成またはインポートします。"+ "description": "skill はエージェントが再利用できる仕事のやり方です。作成するか、ランタイムからインポートします。"},"no_matches": {"title": "一致なし",diff --git a/packages/views/locales/ja/squads.json b/packages/views/locales/ja/squads.jsonindex 2985e3f1ed..b1ceed78c8 100644--- a/packages/views/locales/ja/squads.json+++ b/packages/views/locales/ja/squads.json@@ -2,7 +2,8 @@"page": {"title": "スクワッド","new_button": "新規スクワッド",- "empty_no_squads": "スクワッドはありません。",+ "empty_no_squads": "スクワッドはまだありません",+ "empty_description": "エージェントとメンバーをスクワッドにまとめると、タスクをスクワッド全体に任せられます。","empty_no_match": "フィルターに一致するスクワッドはありません。","table": {"name": "スカッド",@@ -64,6 +65,8 @@"members_tab": {"section_title": "メンバー","add_member_button": "メンバーを追加",+ "empty_title": "メンバーはまだいません",+ "empty_description": "エージェントやメンバーを追加すると、このスクワッドに割り当てたタスクを引き受けます。","create_agent_button": "エージェントを作成","leader_chip": "リーダー","view_agent_tooltip": "エージェントの詳細を開く",@@ -82,6 +85,8 @@"copy_link": "リンクをコピー","link_copied": "リンクをコピーしました","not_found": "スクワッドが見つかりません",+ "not_found_description": "削除されたか、アクセス権がない可能性があります。",+ "back_to_list": "すべてのスクワッド","instructions": "指示","edit": "編集","cancel": "キャンセル",diff --git a/packages/views/locales/ja/usage.json b/packages/views/locales/ja/usage.jsonindex e6629ea196..1534b383ef 100644--- a/packages/views/locales/ja/usage.json+++ b/packages/views/locales/ja/usage.json@@ -76,7 +76,7 @@"header_rate": "失敗率","other_agents": "その他のエージェント","low_sample": "この期間の実行が {{count}} 回未満のため、この失敗率は参考になりません。",- "no_data": "この期間に失敗した実行はありません。",+ "no_data": "この期間に失敗した実行はありません","show_reasons": "エラーコードを表示","hide_reasons": "エラーコードを隠す","show_all": "全 {{count}} 件を表示",@@ -103,7 +103,7 @@},"empty": {"title": "まだ使用量はありません",- "body": "エージェントを実行するとトークン使用量と実行時間を確認できます。"+ "body": "エージェントが動き始めると、トークン使用量、コスト、失敗率がここに表示されます。"},"duration": {"less_than_minute": "1分未満"diff --git a/packages/views/locales/ko/agents.json b/packages/views/locales/ko/agents.jsonindex c5e7703d5f..0b1d1a2d18 100644--- a/packages/views/locales/ko/agents.json+++ b/packages/views/locales/ko/agents.json@@ -46,7 +46,15 @@},"empty": {"title": "아직 에이전트가 없습니다",- "description": "에이전트를 만든 후 태스크를 할당하세요."+ "description": "에이전트는 할당된 태스크를 맡아 런타임에서 스스로 처리합니다.",+ "setup": {+ "label": "설정 단계",+ "runtime": "런타임 연결하기",+ "agent": "에이전트 만들기",+ "issue": "태스크 할당하기",+ "done": "(완료)",+ "connect_runtime": "연결"+ }},"no_matches": {"title": "일치하는 결과 없음",@@ -553,6 +561,7 @@"load_failed": "연결된 앱을 불러오지 못했습니다. 잠시 후 다시 시도하세요.","empty_title": "아직 연결된 앱이 없습니다","empty_link_to_settings": "설정 → 연동에서 연결하기",+ "open_settings": "설정 열기","connected": "연결됨","toggle_aria": "이 에이전트에 {{toolkit}} 허용","saving": "저장 중…",diff --git a/packages/views/locales/ko/autopilots.json b/packages/views/locales/ko/autopilots.jsonindex 45bf050125..a62ed02bb8 100644--- a/packages/views/locales/ko/autopilots.json+++ b/packages/views/locales/ko/autopilots.json@@ -66,6 +66,8 @@},"detail": {"not_found": "오토파일럿을 찾을 수 없습니다",+ "not_found_description": "삭제되었거나 접근 권한이 없을 수 있습니다.",+ "back_to_list": "모든 오토파일럿","pause_aria": "오토파일럿 일시 중지","activate_aria": "오토파일럿 활성화","paused_runtime_required": "담당 에이전트의 런타임이 없어 자동화가 일시 중지되었습니다. 런타임을 연결한 후 다시 활성화하세요.",@@ -485,6 +487,7 @@"load_error": "깨우기를 불러오지 못했습니다","loading": "불러오는 중…","empty": "깨우기 규칙이 없습니다",+ "empty_description": "에이전트가 태스크에 설정한 예약, PR 대기, 답장 대기가 여기에 표시됩니다.","disable_selected": "선택 항목 끄기","confirm_title": "깨우기 {{count}}개를 끄시겠습니까?","confirm_body": "이후 깨우기를 중지하고 아직 에이전트에게 전달되지 않은 대기 중 실행을 취소합니다. 전달된 실행은 계속되며 실행 로그에서 중지할 수 있습니다.",@@ -501,7 +504,6 @@},"target_agent": "깨울 에이전트","empty_filtered": "일치하는 깨우기가 없습니다",- "clear_filters": "필터 지우기","batch_success": "깨우기 규칙 {{count}}개를 껐습니다","batch_partial": "{{succeeded}}개를 껐고 {{failed}}개는 실패했습니다. 실패 항목은 선택된 상태로 남아 다시 시도할 수 있습니다.","source": "만든 곳",diff --git a/packages/views/locales/ko/chat.json b/packages/views/locales/ko/chat.jsonindex 90ac79eba9..d2369bafa4 100644--- a/packages/views/locales/ko/chat.json+++ b/packages/views/locales/ko/chat.json@@ -1,6 +1,9 @@{"page": {"title": "채팅",+ "no_agent_title": "아직 대화할 에이전트가 없습니다",+ "no_agent_description": "에이전트를 만들면 여기서 요청을 이야기하고 태스크로 나누게 할 수 있습니다.",+ "no_agent_action": "새 에이전트","select_prompt": "대화를 선택하거나 +로 새로 시작하세요","agent_link_no_access": "이 에이전트와 채팅할 권한이 없습니다."},diff --git a/packages/views/locales/ko/inbox.json b/packages/views/locales/ko/inbox.jsonindex b6b31764d6..a0d06e8aa0 100644--- a/packages/views/locales/ko/inbox.json+++ b/packages/views/locales/ko/inbox.json@@ -6,8 +6,10 @@"sections": {"action": "처리 필요","activity": "활동",- "action_empty": "처리할 항목이 없습니다",- "activity_empty": "최근 활동이 없습니다"+ "action_empty": "처리할 항목을 모두 처리했습니다",+ "activity_empty": "최근 활동이 없습니다",+ "activity_waiting_other": "활동에 업데이트 {{count}}개가 있습니다.",+ "open_activity": "활동 보기"},"menu": {"mark_all_read": "모두 읽음으로 표시",diff --git a/packages/views/locales/ko/issues.json b/packages/views/locales/ko/issues.jsonindex 18d09ad9ba..4a9be5d2a8 100644--- a/packages/views/locales/ko/issues.json+++ b/packages/views/locales/ko/issues.json@@ -117,6 +117,9 @@"breadcrumb_title": "태스크","breadcrumb_workspace_fallback": "워크스페이스","empty_title": "아직 태스크가 없습니다",+ "empty_description": "태스크는 멤버나 에이전트에게 맡기는 구체적인 작업입니다. 에이전트에게 할당하면 런타임에서 바로 시작됩니다.",+ "break_down_with_chat": "채팅으로 나누기",+ "break_down_prompt": "다음 일을 하고 싶습니다. 필요한 것을 먼저 물어본 뒤 이 워크스페이스의 태스크로 나눠 주세요:\n\n","move_failed": "태스크를 이동하지 못했습니다"},"status": {@@ -406,7 +409,7 @@}},"search_placeholder": "태스크 검색...",- "search_empty": "검색 결과와 일치하는 태스크가 없습니다."+ "search_empty": "검색 결과와 일치하는 태스크가 없습니다"},"list": {"empty_status": "태스크 없음",@@ -446,6 +449,7 @@"metadata_description": "에이전트와 연동 기능이 작업 흐름을 이어가기 위해 기록하는 키와 값 데이터입니다.","section_load_failed_retry": "불러오지 못했습니다. 다시 시도","not_found": "이 워크스페이스에 해당 태스크가 없거나 삭제되었습니다.",+ "not_found_title": "태스크를 찾을 수 없습니다","breadcrumb_project_unknown": "알 수 없는 프로젝트","back": "뒤로","title_placeholder": "태스크 제목",@@ -1772,7 +1776,8 @@"star": "{{name}}을(를) 사이드바에 추가","unstar": "{{name}}을(를) 사이드바에서 제거","row_actions": "{{name}} 작업",- "no_matches": "일치하는 뷰가 없습니다"+ "empty_title": "아직 저장된 뷰가 없습니다",+ "empty_description": "태스크 목록에서 필터와 표시 방식을 맞춘 뒤 뷰로 저장하세요."}}}diff --git a/packages/views/locales/ko/layout.json b/packages/views/locales/ko/layout.jsonindex 03e0b7078e..511b5117d3 100644--- a/packages/views/locales/ko/layout.json+++ b/packages/views/locales/ko/layout.json@@ -159,6 +159,8 @@"filter_count_other": "필터 {{count}}개","reset": "초기화","clear_search": "검색 지우기",+ "clear_filters": "필터 지우기",+ "clear_filters_and_search": "필터와 검색 지우기","display": "표시 설정","selected_other": "{{count}}개 선택됨","clear_selection": "선택 해제",diff --git a/packages/views/locales/ko/modals.json b/packages/views/locales/ko/modals.jsonindex b42ff3f534..2bc18a399a 100644--- a/packages/views/locales/ko/modals.json+++ b/packages/views/locales/ko/modals.json@@ -61,6 +61,12 @@"toast_failed": "하위 태스크를 추가하지 못했습니다","toast_success": "{{identifier}}을(를) 하위 태스크로 추가했습니다"},+ "add_project_issue": {+ "title": "기존 태스크 추가",+ "description": "이 프로젝트로 옮길 태스크를 검색하세요",+ "toast_success": "{{identifier}}을(를) 프로젝트로 옮겼습니다",+ "toast_failed": "태스크를 옮기지 못했습니다"+ },"run_confirm": {"title_assign": "할당을 확인할까요?","assign_single": "이 태스크를 {{name}}에게 할당합니다. 실행 조건을 충족하면 바로 시작합니다.",diff --git a/packages/views/locales/ko/projects.json b/packages/views/locales/ko/projects.jsonindex ce213be686..9c45216a28 100644--- a/packages/views/locales/ko/projects.json+++ b/packages/views/locales/ko/projects.json@@ -6,7 +6,7 @@"scope_active": "진행 중인 프로젝트","scope_closed": "종료된 프로젝트","empty": "아직 프로젝트가 없습니다",- "create_first": "첫 프로젝트 만들기",+ "empty_description": "관련 태스크를 프로젝트로 묶어 진행 상황과 담당자를 추적하세요.","view_compact": "간결하게","view_comfortable": "넓게","no_search_results": "검색 결과가 없습니다",@@ -56,6 +56,8 @@},"detail": {"not_found": "프로젝트를 찾을 수 없습니다",+ "not_found_description": "삭제되었거나 접근 권한이 없을 수 있습니다.",+ "back_to_list": "모든 프로젝트","breadcrumb_fallback": "프로젝트","title_placeholder": "프로젝트 제목","icon_tooltip": "아이콘 변경",@@ -73,9 +75,10 @@"no_due_date": "마감일 없음","description_placeholder": "설명 추가...","description_hint": "이 프로젝트의 모든 실행에서 컨텍스트로 에이전트에게 공유됩니다.",- "empty_issues_title": "연결된 태스크가 없습니다",- "empty_issues_hint": "기존 태스크를 이 프로젝트에 추가할 수도 있습니다.",+ "empty_issues_title": "이 프로젝트에는 아직 태스크가 없습니다",+ "empty_issues_hint": "새로 만들거나 기존 태스크를 여기로 옮기세요.","empty_issues_new_button": "새 태스크",+ "empty_issues_add_existing": "기존 태스크 추가","no_issues_yet": "아직 태스크가 없습니다","toast_link_copied": "링크를 복사했습니다","toast_project_deleted": "프로젝트를 삭제했습니다",diff --git a/packages/views/locales/ko/skills.json b/packages/views/locales/ko/skills.jsonindex 7d1508cf50..8d7a3c64a9 100644--- a/packages/views/locales/ko/skills.json+++ b/packages/views/locales/ko/skills.json@@ -22,7 +22,7 @@},"empty": {"title": "아직 스킬이 없습니다",- "description": "skill을 만들거나 가져오세요."+ "description": "skill은 에이전트가 재사용하는 작업 방식입니다. 직접 만들거나 런타임에서 가져오세요."},"no_matches": {"title": "일치하는 결과 없음",diff --git a/packages/views/locales/ko/squads.json b/packages/views/locales/ko/squads.jsonindex f3ed89ee1f..d81586b06b 100644--- a/packages/views/locales/ko/squads.json+++ b/packages/views/locales/ko/squads.json@@ -2,7 +2,8 @@"page": {"title": "스쿼드","new_button": "새 스쿼드",- "empty_no_squads": "스쿼드가 없습니다.",+ "empty_no_squads": "아직 스쿼드가 없습니다",+ "empty_description": "에이전트와 멤버를 스쿼드로 묶으면 태스크를 스쿼드 전체에 맡길 수 있습니다.","empty_no_match": "필터와 일치하는 스쿼드가 없습니다.","table": {"name": "스쿼드",@@ -64,6 +65,8 @@"members_tab": {"section_title": "멤버","add_member_button": "멤버 추가",+ "empty_title": "아직 멤버가 없습니다",+ "empty_description": "에이전트나 멤버를 추가하면 이 스쿼드에 할당된 태스크를 맡게 됩니다.","create_agent_button": "에이전트 만들기","leader_chip": "리더","view_agent_tooltip": "에이전트 상세 열기",@@ -82,6 +85,8 @@"copy_link": "링크 복사","link_copied": "링크를 복사했습니다","not_found": "스쿼드를 찾을 수 없습니다",+ "not_found_description": "삭제되었거나 접근 권한이 없을 수 있습니다.",+ "back_to_list": "모든 스쿼드","instructions": "지침","edit": "편집","cancel": "취소",diff --git a/packages/views/locales/ko/usage.json b/packages/views/locales/ko/usage.jsonindex 0bd001a1bf..c8d063dd69 100644--- a/packages/views/locales/ko/usage.json+++ b/packages/views/locales/ko/usage.json@@ -76,7 +76,7 @@"header_rate": "실패율","other_agents": "기타 에이전트","low_sample": "이 기간의 실행이 {{count}}회 미만이어서 이 실패율은 의미가 크지 않습니다.",- "no_data": "이 기간에는 실패한 실행이 없습니다.",+ "no_data": "이 기간에 실패한 실행이 없습니다","show_reasons": "오류 코드 표시","hide_reasons": "오류 코드 숨기기","show_all": "전체 {{count}}개 보기",@@ -103,7 +103,7 @@},"empty": {"title": "아직 사용량이 없습니다",- "body": "에이전트를 실행하면 토큰 사용량과 실행 시간을 볼 수 있습니다."+ "body": "에이전트가 실행되기 시작하면 토큰 사용량, 비용, 실패율이 여기에 표시됩니다."},"duration": {"less_than_minute": "1분 미만"diff --git a/packages/views/locales/zh-Hans/agents.json b/packages/views/locales/zh-Hans/agents.jsonindex 4de01d6df6..871daf97a1 100644--- a/packages/views/locales/zh-Hans/agents.json+++ b/packages/views/locales/zh-Hans/agents.json@@ -46,7 +46,15 @@},"empty": {"title": "还没有智能体",- "description": "创建智能体后,即可把任务分配给它。"+ "description": "智能体会接手分配给它的任务,在你的运行时上自己干完。",+ "setup": {+ "label": "配置步骤",+ "runtime": "接入运行时",+ "agent": "创建智能体",+ "issue": "给它分配一个任务",+ "done": "(已完成)",+ "connect_runtime": "去接入"+ }},"no_matches": {"title": "无匹配项",@@ -703,6 +711,7 @@"load_failed": "无法加载你已连接的应用,请稍后重试。","empty_title": "还没有已连接的应用","empty_link_to_settings": "去 \"设置 → 集成\" 连一个",+ "open_settings": "打开设置","connected": "已连接","toggle_aria": "允许该智能体使用 {{toolkit}}","saving": "正在保存…",diff --git a/packages/views/locales/zh-Hans/autopilots.json b/packages/views/locales/zh-Hans/autopilots.jsonindex 3f021f40cc..0c078a21b3 100644--- a/packages/views/locales/zh-Hans/autopilots.json+++ b/packages/views/locales/zh-Hans/autopilots.json@@ -66,6 +66,8 @@},"detail": {"not_found": "未找到该自动化",+ "not_found_description": "它可能已被删除,或你没有访问权限。",+ "back_to_list": "全部自动化","pause_aria": "暂停自动化","activate_aria": "启用自动化","paused_runtime_required": "由于执行智能体失去运行时,自动化已暂停。绑定运行时后请重新启用。",@@ -485,6 +487,7 @@"load_error": "无法加载唤醒","loading": "正在加载唤醒…","empty": "暂无唤醒规则",+ "empty_description": "智能体为任务设置的定时、等待 PR 或等待回复,会列在这里。","disable_selected": "关闭所选","confirm_title": "关闭 {{count}} 个唤醒?","confirm_body": "关闭后将停止后续唤醒,并撤回仍在排队、尚未交给智能体的运行。已交给智能体的运行会继续,可在执行日志中停止。",@@ -501,7 +504,6 @@},"target_agent": "唤醒对象","empty_filtered": "没有匹配的唤醒",- "clear_filters": "清除筛选","batch_success": "已关闭 {{count}} 条唤醒","batch_partial": "已关闭 {{succeeded}} 条,{{failed}} 条失败;失败项仍保留选中,可重试。","source": "来源",diff --git a/packages/views/locales/zh-Hans/chat.json b/packages/views/locales/zh-Hans/chat.jsonindex be4e56ef0e..89852a1846 100644--- a/packages/views/locales/zh-Hans/chat.json+++ b/packages/views/locales/zh-Hans/chat.json@@ -1,6 +1,9 @@{"page": {"title": "聊天",+ "no_agent_title": "还没有可以对话的智能体",+ "no_agent_description": "创建一个智能体后,就能在这里和它聊需求,让它拆成任务。",+ "no_agent_action": "新建智能体","select_prompt": "选择一个对话,或点 + 新建","agent_link_no_access": "你没有权限与该智能体聊天。"},diff --git a/packages/views/locales/zh-Hans/inbox.json b/packages/views/locales/zh-Hans/inbox.jsonindex 3ae93b0175..664382bc81 100644--- a/packages/views/locales/zh-Hans/inbox.json+++ b/packages/views/locales/zh-Hans/inbox.json@@ -6,8 +6,10 @@"sections": {"action": "需要处理","activity": "动态",- "action_empty": "没有需要你处理的事",- "activity_empty": "暂无动态"+ "action_empty": "需要你处理的都处理完了",+ "activity_empty": "暂无动态",+ "activity_waiting_other": "动态里还有 {{count}} 条更新,随时可以看。",+ "open_activity": "查看动态"},"menu": {"mark_all_read": "全部标为已读",diff --git a/packages/views/locales/zh-Hans/issues.json b/packages/views/locales/zh-Hans/issues.jsonindex 54b044cc30..33e7ad52ff 100644--- a/packages/views/locales/zh-Hans/issues.json+++ b/packages/views/locales/zh-Hans/issues.json@@ -117,6 +117,9 @@"breadcrumb_title": "任务","breadcrumb_workspace_fallback": "工作区","empty_title": "还没有任务",+ "empty_description": "任务是交给成员或智能体的一件具体工作。分配给智能体后,它会在你的运行时上自己开始。",+ "break_down_with_chat": "用聊天拆解需求",+ "break_down_prompt": "我想完成下面这件事。先问清楚你需要了解的,然后在这个工作区里把它拆成任务:\n\n","move_failed": "移动任务失败"},"status": {@@ -406,7 +409,7 @@}},"search_placeholder": "搜索任务...",- "search_empty": "没有匹配的任务。"+ "search_empty": "没有匹配的任务"},"list": {"empty_status": "无任务",@@ -446,6 +449,7 @@"metadata_description": "智能体和集成记录的键值数据,用于衔接工作流程。","section_load_failed_retry": "加载失败,点击重试","not_found": "这个任务不存在或已在该工作区被删除。",+ "not_found_title": "未找到该任务","breadcrumb_project_unknown": "未知项目","back": "返回","title_placeholder": "任务标题",@@ -1772,7 +1776,8 @@"star": "将{{name}}添加到侧栏","unstar": "将{{name}}从侧栏移除","row_actions": "{{name}} 的操作",- "no_matches": "没有匹配的视图"+ "empty_title": "还没有保存的视图",+ "empty_description": "在任务列表里调好筛选和显示方式,然后另存为视图。"}}}diff --git a/packages/views/locales/zh-Hans/layout.json b/packages/views/locales/zh-Hans/layout.jsonindex d0b74e344f..fa73b0ddb8 100644--- a/packages/views/locales/zh-Hans/layout.json+++ b/packages/views/locales/zh-Hans/layout.json@@ -159,6 +159,8 @@"filter_count_other": "{{count}} 个筛选","reset": "重置","clear_search": "清除搜索",+ "clear_filters": "清除筛选",+ "clear_filters_and_search": "清除筛选和搜索","display": "显示设置","selected_other": "已选 {{count}} 项","clear_selection": "清除选择",diff --git a/packages/views/locales/zh-Hans/modals.json b/packages/views/locales/zh-Hans/modals.jsonindex 8e8361e73a..7d8ae881cd 100644--- a/packages/views/locales/zh-Hans/modals.json+++ b/packages/views/locales/zh-Hans/modals.json@@ -61,6 +61,12 @@"toast_failed": "添加子任务失败","toast_success": "已添加 {{identifier}} 为子任务"},+ "add_project_issue": {+ "title": "添加已有任务",+ "description": "搜索要移入这个项目的任务",+ "toast_success": "已把 {{identifier}} 移入项目",+ "toast_failed": "移动任务失败"+ },"run_confirm": {"title_assign": "确认指派?","assign_single": "将这个任务指派给 {{name}};符合运行条件时会立即开始处理。",diff --git a/packages/views/locales/zh-Hans/projects.json b/packages/views/locales/zh-Hans/projects.jsonindex e5315fbff8..511ac514ac 100644--- a/packages/views/locales/zh-Hans/projects.json+++ b/packages/views/locales/zh-Hans/projects.json@@ -6,7 +6,7 @@"scope_active": "进行中的项目","scope_closed": "已结束的项目","empty": "还没有项目",- "create_first": "创建第一个项目",+ "empty_description": "用项目把相关任务归到一起,跟踪进度和负责人。","view_compact": "紧凑视图","view_comfortable": "舒适视图","no_search_results": "未找到匹配的项目",@@ -56,6 +56,8 @@},"detail": {"not_found": "未找到该项目",+ "not_found_description": "它可能已被删除,或你没有访问权限。",+ "back_to_list": "全部项目","breadcrumb_fallback": "项目","title_placeholder": "项目标题","icon_tooltip": "更换图标",@@ -73,9 +75,10 @@"no_due_date": "无截止日期","description_placeholder": "添加描述...","description_hint": "会作为项目上下文提供给智能体,应用于该项目下的每次运行。",- "empty_issues_title": "还没有关联的任务",- "empty_issues_hint": "也可把已有任务加入此项目。",+ "empty_issues_title": "这个项目还没有任务",+ "empty_issues_hint": "新建一个,或把已有任务移进来。","empty_issues_new_button": "新建任务",+ "empty_issues_add_existing": "添加已有任务","no_issues_yet": "目前还没有任务","toast_link_copied": "已复制链接","toast_project_deleted": "已删除项目",diff --git a/packages/views/locales/zh-Hans/skills.json b/packages/views/locales/zh-Hans/skills.jsonindex 53ac23f8b4..53d720561c 100644--- a/packages/views/locales/zh-Hans/skills.json+++ b/packages/views/locales/zh-Hans/skills.json@@ -22,7 +22,7 @@},"empty": {"title": "还没有 skill",- "description": "创建或导入一个 skill。"+ "description": "skill 是智能体可复用的做事方法。创建一个,或从运行时导入。"},"no_matches": {"title": "无匹配",diff --git a/packages/views/locales/zh-Hans/squads.json b/packages/views/locales/zh-Hans/squads.jsonindex 68d99906be..2978bade4b 100644--- a/packages/views/locales/zh-Hans/squads.json+++ b/packages/views/locales/zh-Hans/squads.json@@ -2,7 +2,8 @@"page": {"title": "小队","new_button": "新建小队",- "empty_no_squads": "暂无小队。",+ "empty_no_squads": "还没有小队",+ "empty_description": "把智能体和成员编成小队,任务可以直接交给整个小队。","empty_no_match": "没有匹配筛选条件的小队。","table": {"name": "小队",@@ -64,6 +65,8 @@"members_tab": {"section_title": "成员","add_member_button": "添加成员",+ "empty_title": "还没有成员",+ "empty_description": "添加智能体或成员后,分配给这个小队的任务会由他们接手。","create_agent_button": "创建智能体","leader_chip": "队长","view_agent_tooltip": "打开智能体详情",@@ -82,6 +85,8 @@"copy_link": "复制链接","link_copied": "已复制链接","not_found": "未找到该小队",+ "not_found_description": "它可能已被删除,或你没有访问权限。",+ "back_to_list": "全部小队","instructions": "指引","edit": "编辑","cancel": "取消",diff --git a/packages/views/locales/zh-Hans/usage.json b/packages/views/locales/zh-Hans/usage.jsonindex 5c0e9ee54b..519b62ac4e 100644--- a/packages/views/locales/zh-Hans/usage.json+++ b/packages/views/locales/zh-Hans/usage.json@@ -76,7 +76,7 @@"header_rate": "失败率","other_agents": "其他智能体","low_sample": "所选时间范围内运行不足 {{count}} 次,失败率参考价值有限。",- "no_data": "所选时间范围内没有失败的运行。",+ "no_data": "所选时间范围内没有失败的运行","show_reasons": "展开错误码","hide_reasons": "收起错误码","show_all": "展开全部 {{count}} 个",@@ -103,7 +103,7 @@},"empty": {"title": "暂无消耗数据",- "body": "运行智能体后可查看 token 用量和耗时。"+ "body": "智能体开始运行后,这里会显示 token、费用和失败率。"},"duration": {"less_than_minute": "<1分钟"diff --git a/packages/views/locales/zh-Hant/agents.json b/packages/views/locales/zh-Hant/agents.jsonindex 92a087574f..6dc6771884 100644--- a/packages/views/locales/zh-Hant/agents.json+++ b/packages/views/locales/zh-Hant/agents.json@@ -46,7 +46,15 @@},"empty": {"title": "還沒有 AI 代理",- "description": "建立 AI 代理後,即可把任務分配給它。"+ "description": "AI 代理會接手指派給它的任務,在你的執行時上自己完成。",+ "setup": {+ "label": "設定步驟",+ "runtime": "接入執行時",+ "agent": "建立 AI 代理",+ "issue": "指派一個任務給它",+ "done": "(已完成)",+ "connect_runtime": "去接入"+ }},"no_matches": {"title": "無匹配項",@@ -703,6 +711,7 @@"load_failed": "無法載入你已連線的應用,請稍後重試。","empty_title": "還沒有已連線的應用","empty_link_to_settings": "去 \"設定 → 整合\" 連一個",+ "open_settings": "開啟設定","connected": "已連線","toggle_aria": "允許該 AI 代理使用 {{toolkit}}","saving": "正在儲存…",diff --git a/packages/views/locales/zh-Hant/autopilots.json b/packages/views/locales/zh-Hant/autopilots.jsonindex a12e370908..dc1a6f9d7c 100644--- a/packages/views/locales/zh-Hant/autopilots.json+++ b/packages/views/locales/zh-Hant/autopilots.json@@ -66,6 +66,8 @@},"detail": {"not_found": "未找到該自動化",+ "not_found_description": "它可能已被刪除,或你沒有訪問權限。",+ "back_to_list": "全部自動化","pause_aria": "暫停自動化","activate_aria": "啟用自動化","paused_runtime_required": "由於執行 AI 代理失去執行時,自動化已暫停。繫結執行時後請重新啟用。",@@ -485,6 +487,7 @@"load_error": "無法載入喚醒","loading": "正在載入喚醒…","empty": "暫無喚醒規則",+ "empty_description": "AI 代理為任務設定的定時、等待 PR 或等待回覆,會列在這裡。","disable_selected": "關閉所選","confirm_title": "關閉 {{count}} 個喚醒?","confirm_body": "關閉後將停止後續喚醒,並撤回仍在排隊、尚未交給 AI 代理的執行。已交給 AI 代理的執行會繼續,可在執行日誌中停止。",@@ -501,7 +504,6 @@},"target_agent": "喚醒物件","empty_filtered": "沒有匹配的喚醒",- "clear_filters": "清除篩選","batch_success": "已關閉 {{count}} 條喚醒","batch_partial": "已關閉 {{succeeded}} 條,{{failed}} 條失敗;失敗項仍保留選中,可重試。","source": "來源",diff --git a/packages/views/locales/zh-Hant/chat.json b/packages/views/locales/zh-Hant/chat.jsonindex c4e095fa07..0a09045da0 100644--- a/packages/views/locales/zh-Hant/chat.json+++ b/packages/views/locales/zh-Hant/chat.json@@ -1,6 +1,9 @@{"page": {"title": "聊天",+ "no_agent_title": "還沒有可以對話的 AI 代理",+ "no_agent_description": "建立一個 AI 代理後,就能在這裡和它聊需求,讓它拆成任務。",+ "no_agent_action": "新建 AI 代理","select_prompt": "選擇一個對話,或點 + 新建","agent_link_no_access": "你沒有權限與該 AI 代理聊天。"},diff --git a/packages/views/locales/zh-Hant/inbox.json b/packages/views/locales/zh-Hant/inbox.jsonindex b4af095169..7df568b962 100644--- a/packages/views/locales/zh-Hant/inbox.json+++ b/packages/views/locales/zh-Hant/inbox.json@@ -6,8 +6,10 @@"sections": {"action": "需要處理","activity": "動態",- "action_empty": "沒有需要你處理的事",- "activity_empty": "暫無動態"+ "action_empty": "需要你處理的都處理完了",+ "activity_empty": "暫無動態",+ "activity_waiting_other": "動態裡還有 {{count}} 條更新,隨時可以看。",+ "open_activity": "查看動態"},"menu": {"mark_all_read": "全部標為已讀",diff --git a/packages/views/locales/zh-Hant/issues.json b/packages/views/locales/zh-Hant/issues.jsonindex ffff688c36..04bc29cff1 100644--- a/packages/views/locales/zh-Hant/issues.json+++ b/packages/views/locales/zh-Hant/issues.json@@ -117,6 +117,9 @@"breadcrumb_title": "任務","breadcrumb_workspace_fallback": "工作區","empty_title": "還沒有任務",+ "empty_description": "任務是交給成員或 AI 代理的一件具體工作。指派給 AI 代理後,它會在你的執行時上自己開始。",+ "break_down_with_chat": "用聊天拆解需求",+ "break_down_prompt": "我想完成下面這件事。先問清楚你需要了解的,然後在這個工作區裡把它拆成任務:\n\n","move_failed": "移動任務失敗"},"status": {@@ -406,7 +409,7 @@}},"search_placeholder": "搜尋任務...",- "search_empty": "沒有匹配的任務。"+ "search_empty": "沒有匹配的任務"},"list": {"empty_status": "無任務",@@ -446,6 +449,7 @@"metadata_description": "AI 代理和整合記錄的鍵值資料,用於銜接工作流程。","section_load_failed_retry": "載入失敗,點選重試","not_found": "這個任務不存在或已在該工作區被刪除。",+ "not_found_title": "未找到該任務","breadcrumb_project_unknown": "未知專案","back": "返回","title_placeholder": "任務標題",@@ -1772,7 +1776,8 @@"star": "將{{name}}新增到側欄","unstar": "將{{name}}從側欄移除","row_actions": "{{name}} 的操作",- "no_matches": "沒有符合的檢視"+ "empty_title": "還沒有儲存的檢視",+ "empty_description": "在任務列表裡調好篩選和顯示方式,然後另存為檢視。"}}}diff --git a/packages/views/locales/zh-Hant/layout.json b/packages/views/locales/zh-Hant/layout.jsonindex df2bc3502c..375ada0faa 100644--- a/packages/views/locales/zh-Hant/layout.json+++ b/packages/views/locales/zh-Hant/layout.json@@ -159,6 +159,8 @@"filter_count_other": "{{count}} 個篩選","reset": "重設","clear_search": "清除搜尋",+ "clear_filters": "清除篩選",+ "clear_filters_and_search": "清除篩選和搜尋","display": "顯示設定","selected_other": "已選 {{count}} 項","clear_selection": "清除選擇",diff --git a/packages/views/locales/zh-Hant/modals.json b/packages/views/locales/zh-Hant/modals.jsonindex 42d9059f0e..8ed679b8d0 100644--- a/packages/views/locales/zh-Hant/modals.json+++ b/packages/views/locales/zh-Hant/modals.json@@ -61,6 +61,12 @@"toast_failed": "新增子任務失敗","toast_success": "已新增 {{identifier}} 為子任務"},+ "add_project_issue": {+ "title": "加入既有任務",+ "description": "搜尋要移入這個專案的任務",+ "toast_success": "已把 {{identifier}} 移入專案",+ "toast_failed": "移動任務失敗"+ },"run_confirm": {"title_assign": "確認指派?","assign_single": "將這個任務指派給 {{name}};符合執行條件時會立即開始處理。",diff --git a/packages/views/locales/zh-Hant/projects.json b/packages/views/locales/zh-Hant/projects.jsonindex 47b3ca9880..2e87986880 100644--- a/packages/views/locales/zh-Hant/projects.json+++ b/packages/views/locales/zh-Hant/projects.json@@ -6,7 +6,7 @@"scope_active": "進行中的專案","scope_closed": "已結束的專案","empty": "還沒有專案",- "create_first": "建立第一個專案",+ "empty_description": "用專案把相關任務歸到一起,追蹤進度和負責人。","view_compact": "緊湊檢視","view_comfortable": "舒適檢視","no_search_results": "未找到匹配的專案",@@ -56,6 +56,8 @@},"detail": {"not_found": "未找到該專案",+ "not_found_description": "它可能已被刪除,或你沒有訪問權限。",+ "back_to_list": "全部專案","breadcrumb_fallback": "專案","title_placeholder": "專案標題","icon_tooltip": "更換圖示",@@ -73,9 +75,10 @@"no_due_date": "無截止日期","description_placeholder": "新增描述...","description_hint": "會作為專案上下文提供給 AI 代理,應用於該專案下的每次執行。",- "empty_issues_title": "還沒有關聯的任務",- "empty_issues_hint": "也可把已有任務加入此專案。",+ "empty_issues_title": "這個專案還沒有任務",+ "empty_issues_hint": "新增一個,或把既有任務移進來。","empty_issues_new_button": "新建任務",+ "empty_issues_add_existing": "加入既有任務","no_issues_yet": "目前還沒有任務","toast_link_copied": "已複製連結","toast_project_deleted": "已刪除專案",diff --git a/packages/views/locales/zh-Hant/skills.json b/packages/views/locales/zh-Hant/skills.jsonindex 9ba7d18ac6..027391586a 100644--- a/packages/views/locales/zh-Hant/skills.json+++ b/packages/views/locales/zh-Hant/skills.json@@ -22,7 +22,7 @@},"empty": {"title": "還沒有 skill",- "description": "建立或匯入一個 skill。"+ "description": "skill 是 AI 代理可重複使用的做事方法。建立一個,或從執行時匯入。"},"no_matches": {"title": "無匹配",diff --git a/packages/views/locales/zh-Hant/squads.json b/packages/views/locales/zh-Hant/squads.jsonindex 12842661d2..ac63768c1c 100644--- a/packages/views/locales/zh-Hant/squads.json+++ b/packages/views/locales/zh-Hant/squads.json@@ -2,7 +2,8 @@"page": {"title": "小隊","new_button": "新建小隊",- "empty_no_squads": "暫無小隊。",+ "empty_no_squads": "還沒有小隊",+ "empty_description": "把 AI 代理和成員編成小隊,任務可以直接交給整個小隊。","empty_no_match": "沒有匹配篩選條件的小隊。","table": {"name": "小隊",@@ -64,6 +65,8 @@"members_tab": {"section_title": "成員","add_member_button": "新增成員",+ "empty_title": "還沒有成員",+ "empty_description": "加入 AI 代理或成員後,指派給這個小隊的任務會由他們接手。","create_agent_button": "建立 AI 代理","leader_chip": "隊長","view_agent_tooltip": "開啟 AI 代理詳情",@@ -82,6 +85,8 @@"copy_link": "複製連結","link_copied": "已複製連結","not_found": "找不到該小隊",+ "not_found_description": "它可能已被刪除,或你沒有訪問權限。",+ "back_to_list": "全部小隊","instructions": "指引","edit": "編輯","cancel": "取消",diff --git a/packages/views/locales/zh-Hant/usage.json b/packages/views/locales/zh-Hant/usage.jsonindex 4f362f72b7..ae7666b999 100644--- a/packages/views/locales/zh-Hant/usage.json+++ b/packages/views/locales/zh-Hant/usage.json@@ -76,7 +76,7 @@"header_rate": "失敗率","other_agents": "其他 AI 代理","low_sample": "所選時間範圍內執行不足 {{count}} 次,失敗率參考價值有限。",- "no_data": "所選時間範圍內沒有失敗的執行。",+ "no_data": "所選時間範圍內沒有失敗的執行","show_reasons": "展開錯誤碼","hide_reasons": "收起錯誤碼","show_all": "展開全部 {{count}} 個",@@ -103,7 +103,7 @@},"empty": {"title": "暫無消耗資料",- "body": "執行 AI 代理後可檢視 token 用量和耗時。"+ "body": "AI 代理開始執行後,這裡會顯示 token、費用和失敗率。"},"duration": {"less_than_minute": "<1分鐘"diff --git a/packages/views/members/member-detail-page.tsx b/packages/views/members/member-detail-page.tsxindex afc8c3809d..f555a91304 100644--- a/packages/views/members/member-detail-page.tsx+++ b/packages/views/members/member-detail-page.tsx@@ -166,12 +166,10 @@ function MemberIssues({: null}renderEmpty={() => (- <div className="flex flex-1 min-h-0 flex-col items-center justify-center gap-2 text-muted-foreground">- <ListTodo className="h-10 w-10 text-faint-foreground" />- <p className="text-body">- {t(($) => $.actor_issues.empty[scope].title)}- </p>- </div>+ <CollectionPageState+ icon={ListTodo}+ title={t(($) => $.actor_issues.empty[scope].title)}+ />)}/></div>diff --git a/packages/views/modals/add-project-issue.tsx b/packages/views/modals/add-project-issue.tsxnew file mode 100644index 0000000000..00dee70e4c--- /dev/null+++ b/packages/views/modals/add-project-issue.tsx@@ -0,0 +1,50 @@+"use client";++import { toast } from "sonner";+import { useUpdateIssue } from "@multica/core/issues/mutations";+import { IssuePickerModal } from "./issue-picker-modal";+import { useT } from "../i18n";++export function AddProjectIssueModal({+ onClose,+ data,+}: {+ onClose: () => void;+ data: Record<string, unknown> | null;+}) {+ const { t } = useT("modals");+ const projectId = (data?.projectId as string) || "";+ const updateIssue = useUpdateIssue();++ return (+ <IssuePickerModal+ open+ onOpenChange={(v) => {+ if (!v) onClose();+ }}+ title={t(($) => $.add_project_issue.title)}+ description={t(($) => $.add_project_issue.description)}+ excludeIds={[]}+ isSelectable={(issue) => issue.project_id !== projectId}+ onSelect={(selected) => {+ updateIssue.mutate(+ { id: selected.id, project_id: projectId },+ {+ onSuccess: () =>+ toast.success(+ t(($) => $.add_project_issue.toast_success, {+ identifier: selected.identifier,+ }),+ ),+ onError: (err) =>+ toast.error(+ err instanceof Error && err.message+ ? err.message+ : t(($) => $.add_project_issue.toast_failed),+ ),+ },+ );+ }}+ />+ );+}diff --git a/packages/views/modals/registry.tsx b/packages/views/modals/registry.tsxindex 2a70e00971..21053d5250 100644--- a/packages/views/modals/registry.tsx+++ b/packages/views/modals/registry.tsx@@ -9,6 +9,7 @@ import { FeedbackModal } from "./feedback";import { SetParentIssueModal } from "./set-parent-issue";import { MarkDuplicateIssueModal } from "./mark-duplicate-issue";import { AddChildIssueModal } from "./add-child-issue";+import { AddProjectIssueModal } from "./add-project-issue";import { RenameIssueModal } from "./rename-issue";import { DeleteIssueConfirmModal } from "./delete-issue-confirm";import { RunConfirmModal } from "./run-confirm";@@ -60,6 +61,9 @@ export function ModalRegistry() {case "issue-add-child":activeModal = <AddChildIssueModal onClose={close} data={data} />;break;+ case "project-add-issue":+ activeModal = <AddProjectIssueModal onClose={close} data={data} />;+ break;case "issue-rename":activeModal = <RenameIssueModal onClose={close} data={data} />;break;diff --git a/packages/views/my-issues/components/my-issues-page.tsx b/packages/views/my-issues/components/my-issues-page.tsxindex b7a909ee9d..22946fcf0b 100644--- a/packages/views/my-issues/components/my-issues-page.tsx+++ b/packages/views/my-issues/components/my-issues-page.tsx@@ -1,8 +1,10 @@"use client";-import { ListTodo } from "@multica/ui/icons";+import { CircleUser, ListTodo, Plus } from "@multica/ui/icons";+import { Button } from "@multica/ui/components/ui/button";import { useAuthStore } from "@multica/core/auth";import { myIssuesRelationFromScope } from "@multica/core/issues/stores/my-issues-view-store";+import { CollectionPageState } from "../../layout/collection-page";import { PageHeader } from "../../layout/page-header";import { IssueSurface } from "../../issues/surface/issue-surface";import { IssueViewHeader } from "../../issue-views/view-header";@@ -13,6 +15,7 @@ const MY_BASE = { kind: "my" } as const;export function MyIssuesPage() {const { t } = useT("my-issues");+ const { t: tIssues } = useT("issues");const user = useAuthStore((s) => s.user);const scope = useMyIssuesScope();@@ -28,12 +31,18 @@ export function MyIssuesPage() {modes={["board", "list", "table", "swimlane"]}batchToolbar="list"renderHeader={({ controller }) => <IssueViewHeader controller={controller} base={MY_BASE} />}- renderEmpty={() => (- <div className="flex flex-1 min-h-0 flex-col items-center justify-center gap-2 text-muted-foreground">- <ListTodo className="h-10 w-10 text-faint-foreground" />- <p className="text-body">{t(($) => $.page.empty_title)}</p>- <p className="text-caption">{t(($) => $.page.empty_description)}</p>- </div>+ renderEmpty={({ controller }) => (+ <CollectionPageState+ icon={CircleUser}+ title={t(($) => $.page.empty_title)}+ description={t(($) => $.page.empty_description)}+ actions={+ <Button size="sm" onClick={() => controller.openCreateIssue()}>+ <Plus aria-hidden="true" />+ {tIssues(($) => $.views.new_issue)}+ </Button>+ }+ />)}/>) : (diff --git a/packages/views/projects/components/project-detail.tsx b/packages/views/projects/components/project-detail.tsxindex 46b4e52cfb..8f6a6764a8 100644--- a/packages/views/projects/components/project-detail.tsx+++ b/packages/views/projects/components/project-detail.tsx@@ -3,7 +3,7 @@import { useMemo, useState, useCallback, useRef, useEffect } from "react";import { useRegisterCommandBarContext } from "../../search/register-context";import { useDefaultLayout, usePanelRef } from "react-resizable-panels";-import { Check, ChevronRight, Link2, PanelRight, Pin, PinOff, Trash2, UserMinus } from "@multica/ui/icons";+import { Check, ChevronRight, FileQuestion, Link2, PanelRight, Pin, PinOff, Trash2, UserMinus } from "@multica/ui/icons";import { useQuery } from "@tanstack/react-query";import { cn } from "@multica/ui/lib/utils";import { copyText } from "@multica/ui/lib/clipboard";@@ -23,7 +23,7 @@ import { useActorName } from "@multica/core/workspace/hooks";import { PROJECT_STATUS_ORDER, PROJECT_STATUS_CONFIG, PROJECT_PRIORITY_ORDER } from "@multica/core/projects/config";import { getProjectIssueMetrics } from "./project-issue-metrics";import { ActorAvatar } from "../../common/actor-avatar";-import { currentPath, useNavigation } from "../../navigation";+import { AppLink, currentPath, useNavigation } from "../../navigation";import { TitleEditor, ContentEditor, type ContentEditorRef } from "../../editor";import { PriorityIcon } from "../../issues/components/priority-icon";import { ProjectResourcesSection } from "./project-resources-section";@@ -33,7 +33,7 @@ import { ProjectWorkflowControl } from "../../workflows/project-workflow-row";import { ProjectWorkflowMenuHost } from "../../workflows/project-workflow-menu";import { IssueSurface } from "../../issues/surface/issue-surface";import { Skeleton } from "@multica/ui/components/ui/skeleton";-import { Button } from "@multica/ui/components/ui/button";+import { Button, buttonVariants } from "@multica/ui/components/ui/button";import { TooltipHint } from "@multica/ui/components/common/tooltip-hint";import { ResizablePanelGroup, ResizablePanel, ResizableHandle } from "@multica/ui/components/ui/resizable";import { Sheet, SheetContent } from "@multica/ui/components/ui/sheet";@@ -64,6 +64,7 @@ import {useAnimatedRightSidebarState,useRightSidebarShortcut,} from "../../layout/animated-right-sidebar";+import { CollectionPageState } from "../../layout/collection-page";import {AlertDialog,AlertDialogAction,@@ -249,7 +250,23 @@ export function ProjectDetail({ projectId }: { projectId: string }) {}if (!project) {- return <div className="flex items-center justify-center h-full text-muted-foreground">{t(($) => $.detail.not_found)}</div>;+ return (+ <div className="flex h-full flex-col">+ <CollectionPageState+ icon={FileQuestion}+ title={t(($) => $.detail.not_found)}+ description={t(($) => $.detail.not_found_description)}+ actions={+ <AppLink+ href={wsPaths.projects()}+ className={buttonVariants({ variant: "outline", size: "sm" })}+ >+ {t(($) => $.detail.back_to_list)}+ </AppLink>+ }+ />+ </div>+ );}const issueMetrics = getProjectIssueMetrics(project);diff --git a/packages/views/projects/components/projects-page.tsx b/packages/views/projects/components/projects-page.tsxindex 991f7bf77e..9c5cfc60f3 100644--- a/packages/views/projects/components/projects-page.tsx+++ b/packages/views/projects/components/projects-page.tsx@@ -7,8 +7,8 @@ import {LayoutGrid,Pin,PinOff,+ Plus,Rows3,- Search,Trash2,} from "@multica/ui/icons";import { useQuery } from "@tanstack/react-query";@@ -69,6 +69,7 @@ import type {import {CollectionCreateButton,CollectionFilterButton,+ CollectionNoMatches,CollectionPageHeader,CollectionPageState,CollectionResetButton,@@ -849,9 +850,11 @@ export function ProjectsPage() {<CollectionPageStateicon={FolderKanban}title={t(($) => $.page.empty)}+ description={t(($) => $.page.empty_description)}actions={- <Button size="sm" variant="outline" onClick={openCreateProject}>- {t(($) => $.page.create_first)}+ <Button size="sm" onClick={openCreateProject}>+ <Plus aria-hidden="true" />+ {t(($) => $.page.new_project)}</Button>}/>@@ -876,15 +879,22 @@ export function ProjectsPage() {)}sort={sort}selection={{ selectedIds, onChange: setSelectedIds }}- empty={t(($) => $.page.no_matches)}+ empty={+ <CollectionNoMatches+ title={t(($) => $.page.no_matches)}+ onReset={clearFilters}+ hasFilters={hasActiveFilters}+ />+ }/>) : isLoading ? (<CardsLoading />) : visible.length === 0 ? (- <div className="flex flex-1 flex-col items-center justify-center py-24 text-muted-foreground">- <Search className="mb-3 h-10 w-10 opacity-30" />- <p className="text-body">{t(($) => $.page.no_matches)}</p>- </div>+ <CollectionNoMatches+ title={t(($) => $.page.no_matches)}+ onReset={clearFilters}+ hasFilters={hasActiveFilters}+ />) : (<div className={cn("min-h-0 flex-1 overflow-y-auto pt-4 pb-16", PAGE_GUTTER)}><div className="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4">diff --git a/packages/views/runtimes/components/runtime-detail-page.tsx b/packages/views/runtimes/components/runtime-detail-page.tsxindex ea11d082a8..f94c29d583 100644--- a/packages/views/runtimes/components/runtime-detail-page.tsx+++ b/packages/views/runtimes/components/runtime-detail-page.tsx@@ -37,6 +37,7 @@ import {ObjectSection,ObjectSectionAction,ObjectSectionCard,+ ObjectSectionEmpty,} from "../../layout/object-page";import { AppLink } from "../../navigation";import { buildWorkloadIndex, RuntimeList } from "./runtime-list";@@ -351,22 +352,19 @@ export function RuntimeDetailPage({/></div>) : (- <div className="flex min-h-40 flex-col items-center justify-center rounded-lg border border-dashed px-6 text-center">- <Server- aria-hidden="true"- className="size-6 text-faint-foreground"- />- <p className="mt-3 text-body font-medium">- {bootstrapping+ <ObjectSectionEmpty+ icon={Server}+ title={+ bootstrapping? t(($) => $.page.bootstrapping.title)- : t(($) => $.machine.no_runtimes_title)}- </p>- <p className="mt-1 max-w-sm text-caption text-muted-foreground">- {bootstrapping+ : t(($) => $.machine.no_runtimes_title)+ }+ description={+ bootstrapping? t(($) => $.page.bootstrapping.hint)- : t(($) => $.machine.no_runtimes_hint)}- </p>- </div>+ : t(($) => $.machine.no_runtimes_hint)+ }+ />)}</ObjectSection></div>diff --git a/packages/views/runtimes/components/runtime-detail.tsx b/packages/views/runtimes/components/runtime-detail.tsxindex 1c0bbff479..13d8ecd5b1 100644--- a/packages/views/runtimes/components/runtime-detail.tsx+++ b/packages/views/runtimes/components/runtime-detail.tsx@@ -2,6 +2,7 @@import { useEffect, useState } from "react";import {+ Bot,ChevronRight,Lock,MoreHorizontal,@@ -46,6 +47,7 @@ import {ObjectProperty,ObjectSection,ObjectSectionCard,+ ObjectSectionEmpty,} from "../../layout/object-page";import { AppLink, useNavigation } from "../../navigation";import { availabilityConfig, workloadConfig } from "../../agents/presence";@@ -410,9 +412,7 @@ export function ServingAgentList({const { t: tAgents } = useT("agents");if (agents.length === 0) {return (- <p className="rounded-lg border border-dashed px-4 py-6 text-center text-caption text-muted-foreground">- {t(($) => $.detail.no_agents)}- </p>+ <ObjectSectionEmpty icon={Bot} description={t(($) => $.detail.no_agents)} />);}return (diff --git a/packages/views/runtimes/components/runtime-settings-page.tsx b/packages/views/runtimes/components/runtime-settings-page.tsxindex 95b31f33d2..71c47a713a 100644--- a/packages/views/runtimes/components/runtime-settings-page.tsx+++ b/packages/views/runtimes/components/runtime-settings-page.tsx@@ -1,6 +1,7 @@"use client";-import { Server } from "@multica/ui/icons";+import { FileQuestion } from "@multica/ui/icons";+import { buttonVariants } from "@multica/ui/components/ui/button";import { useQuery } from "@tanstack/react-query";import type { AgentRuntime } from "@multica/core/types";import { useWorkspaceId } from "@multica/core/hooks";@@ -9,6 +10,7 @@ import { runtimeListOptions } from "@multica/core/runtimes/queries";import { Skeleton } from "@multica/ui/components/ui/skeleton";import { cn } from "@multica/ui/lib/utils";import { CollectionPageState } from "../../layout/collection-page";+import { AppLink } from "../../navigation";import { OBJECT_PAGE_BODY, ObjectPage } from "../../layout/object-page";import { RuntimeDetail } from "./runtime-detail";import { buildRuntimeMachines } from "./runtime-machines";@@ -69,9 +71,17 @@ export function RuntimeSettingsPage({}><CollectionPageState- icon={Server}+ icon={FileQuestion}title={t(($) => $.detail_page.not_found_title)}description={t(($) => $.detail_page.not_found_hint)}+ actions={+ <AppLink+ href={paths.runtimes()}+ className={buttonVariants({ variant: "outline", size: "sm" })}+ >+ {t(($) => $.detail.all_runtimes)}+ </AppLink>+ }/></ObjectPage>);diff --git a/packages/views/runtimes/components/runtimes-page.tsx b/packages/views/runtimes/components/runtimes-page.tsxindex 58a6619988..19c5551dc4 100644--- a/packages/views/runtimes/components/runtimes-page.tsx+++ b/packages/views/runtimes/components/runtimes-page.tsx@@ -61,6 +61,7 @@ import {} from "./mika-runtime-choice";import {CollectionCreateButton,+ CollectionNoMatches,CollectionPageHeader,CollectionScopeItems,} from "../../layout/collection-page";@@ -495,7 +496,13 @@ export function RuntimesPage({? t(($) => $.qoder.cloud_title): undefined}- empty={t(($) => $.page.rows.no_matches)}+ empty={+ <CollectionNoMatches+ title={t(($) => $.page.rows.no_matches)}+ onReset={() => setStatusFilter("all")}+ hasFilters={filtering}+ />+ }/><div className="flex flex-col gap-6 px-6 pt-6 pb-16 empty:hidden">{!agentsLoading &&diff --git a/packages/views/runtimes/components/usage-section.tsx b/packages/views/runtimes/components/usage-section.tsxindex 5dd2c7228f..e451398c52 100644--- a/packages/views/runtimes/components/usage-section.tsx+++ b/packages/views/runtimes/components/usage-section.tsx@@ -45,6 +45,7 @@ import {} from "./charts";import { CustomPricingDialog } from "./custom-pricing-dialog";import { useT } from "../../i18n";+import { ObjectSectionEmpty } from "../../layout/object-page";// Single source of truth for the period selector. KPIs, the When-chart, the// Cost-by tabs, and the CSV export all read from the same `days` value so@@ -880,12 +881,7 @@ function UsageSkeleton() {function UsageEmpty() {const { t } = useT("runtimes");return (- <div className="flex flex-col items-center rounded-lg border border-dashed py-8">- <BarChart3 className="h-5 w-5 text-faint-foreground" />- <p className="mt-2 text-caption text-muted-foreground">- {t(($) => $.usage.no_data)}- </p>- </div>+ <ObjectSectionEmpty icon={BarChart3} description={t(($) => $.usage.no_data)} />);}diff --git a/packages/views/settings/components/members-tab.tsx b/packages/views/settings/components/members-tab.tsxindex 6e646eaa9b..81525ac780 100644--- a/packages/views/settings/components/members-tab.tsx+++ b/packages/views/settings/components/members-tab.tsx@@ -1,6 +1,6 @@"use client";-import { useCallback, useEffect, useRef, useState, type ReactNode } from "react";+import { useCallback, useEffect, useRef, useState } from "react";import {Check,Copy,@@ -15,6 +15,7 @@ import {Trash2,User,UserMinus,+ Users,X,} from "@multica/ui/icons";import { ActorAvatar } from "../../common/actor-avatar";@@ -88,6 +89,7 @@ import {} from "@multica/core/workspace/queries";import { api, errorCode } from "@multica/core/api";import { useLocale, useT } from "../../i18n";+import { ObjectSectionEmpty } from "../../layout/object-page";import {SettingsCard,SettingsReadOnlyNotice,@@ -990,9 +992,10 @@ export function MembersTab() {))}</SettingsCard>) : (- <EmptyList>- {needle ? t(($) => $.members.no_results) : t(($) => $.members.no_members)}- </EmptyList>+ <ObjectSectionEmpty+ icon={needle ? Search : Users}+ description={needle ? t(($) => $.members.no_results) : t(($) => $.members.no_members)}+ />)) : activeView === "invitations" ? (invitations.length > 0 ? (@@ -1009,7 +1012,7 @@ export function MembersTab() {))}</SettingsCard>) : (- <EmptyList>{t(($) => $.members.no_invitations)}</EmptyList>+ <ObjectSectionEmpty icon={Mail} description={t(($) => $.members.no_invitations)} />)) : shareLinks.length > 0 ? (<SettingsCard>@@ -1025,7 +1028,7 @@ export function MembersTab() {))}</SettingsCard>) : (- <EmptyList>{t(($) => $.members.no_share_links)}</EmptyList>+ <ObjectSectionEmpty icon={Link} description={t(($) => $.members.no_share_links)} />)}</section>@@ -1318,11 +1321,3 @@ export function MembersTab() {</SettingsTab>);}--function EmptyList({ children }: { children: ReactNode }) {- return (- <div className="rounded-xl border border-dashed border-surface-border px-4 py-10 text-center text-body text-muted-foreground">- {children}- </div>- );-}diff --git a/packages/views/skills/components/skill-detail-page.tsx b/packages/views/skills/components/skill-detail-page.tsxindex 3d5b1f9473..21d7a55bc6 100644--- a/packages/views/skills/components/skill-detail-page.tsx+++ b/packages/views/skills/components/skill-detail-page.tsx@@ -11,6 +11,7 @@ import {import {AlertCircle,AlertTriangle,+ Bot,ChevronRight,File,FileText,@@ -81,6 +82,7 @@ import {ObjectSection,ObjectSectionAction,ObjectSectionCard,+ ObjectSectionEmpty,} from "../../layout/object-page";import { RichContent } from "../../rich-content";import { useCanEditSkill } from "../hooks/use-can-edit-skill";@@ -279,9 +281,7 @@ function SupportingFileList({const { t } = useT("skills");if (paths.length === 0) {return (- <div className="rounded-lg border border-dashed px-3 py-6 text-center text-caption text-muted-foreground">- {t(($) => $.detail.files.supporting_empty)}- </div>+ <ObjectSectionEmpty icon={File} description={t(($) => $.detail.files.supporting_empty)} />);}return (@@ -314,9 +314,7 @@ function UsedByList({ agents }: { agents: Agent[] }) {const { t } = useT("skills");if (agents.length === 0) {return (- <div className="rounded-lg border border-dashed px-3 py-6 text-center text-caption text-muted-foreground">- {t(($) => $.detail.overview.used_by_empty)}- </div>+ <ObjectSectionEmpty icon={Bot} description={t(($) => $.detail.overview.used_by_empty)} />);}return (diff --git a/packages/views/skills/components/skills-page.tsx b/packages/views/skills/components/skills-page.tsxindex c8d6873279..2aa855019c 100644--- a/packages/views/skills/components/skills-page.tsx+++ b/packages/views/skills/components/skills-page.tsx@@ -8,6 +8,7 @@ import {HardDrive,Lock,Pencil,+ Plus,} from "@multica/ui/icons";import { SkillIcon } from "../lib/skill-icon";import type {@@ -38,6 +39,7 @@ import {import { ActorAvatar } from "@multica/ui/components/common/actor-avatar";import { rowLinkInteractiveProps, useNavigation } from "../../navigation";import {+ CollectionNoMatches,CollectionPageHeader,CollectionPageState,CollectionResetButton,@@ -236,13 +238,25 @@ function CreatorCell({ creator }: { creator: MemberWithUser | null }) {// Empty state-function EmptyState() {+function EmptyState({ onCreate }: { onCreate: (method: CreateSkillMethod) => void }) {const { t } = useT("skills");return (<CollectionPageStateicon={SkillIcon}title={t(($) => $.page.empty.title)}description={t(($) => $.page.empty.description)}+ actions={+ <>+ <Button type="button" size="sm" onClick={() => onCreate("manual")}>+ <Plus aria-hidden="true" />+ {t(($) => $.page.new_skill)}+ </Button>+ <Button type="button" variant="outline" size="sm" onClick={() => onCreate("runtime")}>+ <HardDrive aria-hidden="true" />+ {t(($) => $.create.method.runtime.title)}+ </Button>+ </>+ }/>);}@@ -550,7 +564,7 @@ export default function SkillsPage() {{showEmpty ? (<div className="flex flex-1 items-center justify-center">- <EmptyState />+ <EmptyState onCreate={setCreateMethod} /></div>) : (<CollectionList@@ -565,7 +579,14 @@ export default function SkillsPage() {rowMenu={(row) => <SkillRowActions row={row} ctx={actionsCtx} />}sort={sort}selection={{ selectedIds, onChange: setSelectedIds }}- empty={t(($) => $.page.no_matches.title)}+ empty={+ <CollectionNoMatches+ title={t(($) => $.page.no_matches.title)}+ description={narrowed ? t(($) => $.page.no_matches.filter_only) : undefined}+ onReset={clearFilters}+ hasFilters={narrowed}+ />+ }/>)}diff --git a/packages/views/squads/components/squad-detail-page.test.tsx b/packages/views/squads/components/squad-detail-page.test.tsxindex 894ca19975..b4b800150b 100644--- a/packages/views/squads/components/squad-detail-page.test.tsx+++ b/packages/views/squads/components/squad-detail-page.test.tsx@@ -329,6 +329,7 @@ describe("SquadDetailPage", () => {seed(undefined, { "squads/sq-1": { data: undefined, isError: true } });renderPage();expect(screen.getByRole("link", { name: "Squads" })).toBeInTheDocument();- expect(screen.getByText("Squad not found")).toBeInTheDocument();+ expect(screen.getByRole("heading", { name: "Squad not found" })).toBeInTheDocument();+ expect(screen.getByRole("link", { name: "All squads" })).toBeInTheDocument();});});diff --git a/packages/views/squads/components/squad-detail-page.tsx b/packages/views/squads/components/squad-detail-page.tsxindex 2ab1f15e58..6f358cd891 100644--- a/packages/views/squads/components/squad-detail-page.tsx+++ b/packages/views/squads/components/squad-detail-page.tsx@@ -23,14 +23,17 @@ import {ObjectSection,ObjectSectionAction,ObjectSectionCard,+ ObjectSectionEmpty,} from "../../layout/object-page";import { CollectionPageState } from "../../layout/collection-page";import {Bot,ChevronDown,Crown,+ FileQuestion,Globe,Link2,+ ListTodo,Loader2,MoreHorizontal,Pencil,@@ -40,7 +43,7 @@ import {UserPlus,Users,} from "@multica/ui/icons";-import { Button } from "@multica/ui/components/ui/button";+import { Button, buttonVariants } from "@multica/ui/components/ui/button";import { IconButton } from "@multica/ui/components/common/icon-button";import { Input } from "@multica/ui/components/ui/input";import { Label } from "@multica/ui/components/ui/label";@@ -237,8 +240,28 @@ export function SquadDetailPage() {if (!squad) {if (squadError) {return (- <ObjectPage layoutId={layoutId} segments={segments} leaf={null}>- <CollectionPageState icon={Users} title={t(($) => $.detail.not_found)} />+ <ObjectPage+ layoutId={layoutId}+ segments={segments}+ leaf={+ <span className="truncate text-muted-foreground">+ {t(($) => $.detail.not_found)}+ </span>+ }+ >+ <CollectionPageState+ icon={FileQuestion}+ title={t(($) => $.detail.not_found)}+ description={t(($) => $.detail.not_found_description)}+ actions={+ <AppLink+ href={p.squads()}+ className={buttonVariants({ variant: "outline", size: "sm" })}+ >+ {t(($) => $.detail.back_to_list)}+ </AppLink>+ }+ /></ObjectPage>);}@@ -684,7 +707,21 @@ function SquadMembersSection({);})}</ObjectSectionCard>- ) : null}+ ) : (+ <ObjectSectionEmpty+ icon={Users}+ title={t(($) => $.members_tab.empty_title)}+ description={t(($) => $.members_tab.empty_description)}+ action={+ canManage ? (+ <Button type="button" variant="outline" size="sm" onClick={onAddMemberClick}>+ <Plus aria-hidden="true" />+ {t(($) => $.members_tab.add_member_button)}+ </Button>+ ) : null+ }+ />+ )}</ObjectSection>);}@@ -830,7 +867,7 @@ function SquadRecentWorkSection({))}</ObjectSectionCard>) : (- <p className="text-caption text-muted-foreground">{t(($) => $.detail.recent_work_empty)}</p>+ <ObjectSectionEmpty icon={ListTodo} description={t(($) => $.detail.recent_work_empty)} />)}</ObjectSection>);diff --git a/packages/views/squads/components/squads-page.test.tsx b/packages/views/squads/components/squads-page.test.tsxindex f5d931c79b..bb3d512d1e 100644--- a/packages/views/squads/components/squads-page.test.tsx+++ b/packages/views/squads/components/squads-page.test.tsx@@ -157,7 +157,7 @@ describe("SquadsPage header", () => {mocks.squads = [];renderPage();- expect(screen.getByText("No squads yet.")).toBeInTheDocument();+ expect(screen.getByText("No squads yet")).toBeInTheDocument();const buttons = screen.getAllByRole("button", { name: "New squad" });await user.click(buttons[buttons.length - 1]!);expect(mocks.openModal).toHaveBeenCalledWith("create-squad");diff --git a/packages/views/squads/components/squads-page.tsx b/packages/views/squads/components/squads-page.tsxindex e1dbf35877..fb861c8277 100644--- a/packages/views/squads/components/squads-page.tsx+++ b/packages/views/squads/components/squads-page.tsx@@ -57,6 +57,7 @@ import { useIntentNavigate } from "../../navigation";import {CollectionCreateButton,CollectionFilterButton,+ CollectionNoMatches,CollectionPageHeader,CollectionPageState,CollectionResetButton,@@ -611,9 +612,10 @@ export function SquadsPage() {<CollectionPageStateicon={Users}title={t(($) => $.page.empty_no_squads)}+ description={t(($) => $.page.empty_description)}actions={- <Button size="sm" variant="outline" onClick={openCreateSquad}>- <Plus aria-hidden="true" className="size-3.5" />+ <Button size="sm" onClick={openCreateSquad}>+ <Plus aria-hidden="true" />{t(($) => $.page.new_button)}</Button>}@@ -634,7 +636,14 @@ export function SquadsPage() {: undefined}sort={sort}- empty={t(($) => $.page.no_matches)}+ empty={+ <CollectionNoMatches+ title={t(($) => $.page.no_matches)}+ description={hasActiveFilters ? t(($) => $.page.empty_no_match) : undefined}+ onReset={clearFilters}+ hasFilters={hasActiveFilters}+ />+ }/>)}</div>