Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

refactor(ui): reduce organization and workflow chrome

Rahmanec2f90ece9de
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index c69628e8..f231628c 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -14,6 +14,10 @@ this is the *what*, and it is what Settings → About shows as “What's new”.
- `mcp` normalize widget resource discovery
+**Changed**
+
+- `ui` reduce organization and workflow chrome
+
## 2026-09-21
**Fixed**
diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md
index 3f551375..62f72909 100644
--- a/docs/PROGRESS.md
+++ b/docs/PROGRESS.md
@@ -1,3 +1,11 @@
+## 2026-09-22 — Reduce Organization and Workflow chrome after first production pass
+
+The first Organization/Workflow/n8n release fixed the structural problem but still left too much chrome around the actual work. This polish pass removes a second overview header, boxed summary metrics and card-within-card counters from Organization. Unit and seat directories now use one compact search/status row and denser cards with inline operational metadata. The overview Directory/Map control moves into the primary Organization header, project tabs lose explanatory filler, and the redundant cross-app shortcut block is removed from the Organization sidebar.
+
+Workflow drops the duplicated Active toggle + lifecycle selector in favor of one explicit Status control. The secondary keyboard-help sentence is removed from the canvas toolbar, cross-app shortcuts no longer occupy Workflow actions, and the seven horizontally scrolling detail tabs are replaced by a narrow vertical icon rail with accessible labels/tooltips. n8n keeps navigation links in its empty-state guidance but removes duplicate Workflows/Organization/Integrations buttons from the configured editor toolbar. These changes reduce visual density without removing capabilities or changing auth/execution ownership.
+
+TypeScript, focused ESLint, architecture/docs/contrast/skill checks, targeted regressions, production build and the full release browser journey all pass across desktop, mobile and landscape.
+
## 2026-09-22 -- Match ext-apps widget discovery after ChatGPT ecosystem 404
A browser-console capture finally exposed the host failure that ordinary MCP logs could not see. ChatGPT correctly selected the registered MSO app, exact action name and ui:// template pointer, but its internal /backend-api/ecosystem/widget request returned HTTP 404 for the Native probe, Block, List, Page and integration_setup_open. At the same time MSO's own telemetry showed successful resources/read for the product resources, proving that public HTTPS, OAuth, resource bytes and MCP MIME delivery were not the failing boundary. A private equality check also proved the stored OpenAI App binding matches the ChatGPT connector ID exactly, without printing the App ID.
diff --git a/frontend/slices/n8n/app.tsx b/frontend/slices/n8n/app.tsx
index dff3fa93..831ec0ab 100644
--- a/frontend/slices/n8n/app.tsx
+++ b/frontend/slices/n8n/app.tsx
@@ -1,7 +1,7 @@
"use client";
import { useCallback, useEffect, useMemo, useState } from "react";
-import { Boxes, Building2, Cable, RefreshCw, Workflow } from "lucide-react";
+import { Boxes, RefreshCw } from "lucide-react";
import type { AppProps } from "@/features/appshell";
import { AppFrame, openWindow } from "@/features/appshell";
import type { WorkflowEmbed } from "@/lib/contracts/surface-app";
@@ -54,9 +54,6 @@ export default function N8nApp(_: AppProps) {
</Badge>
</div>
</div>
- <Button size="sm" variant="ghost" onClick={() => openWindow("workflows", "Workflows")}><Workflow className="size-4"/><span className="hidden @min-[640px]:inline">Workflows</span></Button>
- <Button size="sm" variant="ghost" onClick={() => openWindow("organization", "Organization")}><Building2 className="size-4"/><span className="hidden @min-[760px]:inline">Organization</span></Button>
- <Button size="sm" variant="ghost" onClick={() => openWindow("integrations", "Integrations")}><Cable className="size-4"/><span className="hidden @min-[900px]:inline">Integrations</span></Button>
<Button size="icon" variant="ghost" onClick={() => { setLoading(true); void load(); }} aria-label="Refresh n8n surface"><RefreshCw className="size-4"/></Button>
</div>;
diff --git a/frontend/slices/organization/components/organization-directory.tsx b/frontend/slices/organization/components/organization-directory.tsx
index 37c0fae6..3c3e7e9b 100644
--- a/frontend/slices/organization/components/organization-directory.tsx
+++ b/frontend/slices/organization/components/organization-directory.tsx
@@ -1,9 +1,8 @@
"use client";
import { useMemo, useState } from "react";
-import { BriefcaseBusiness, Building2, Search, UserRound, Users } from "lucide-react";
+import { BriefcaseBusiness, Building2, Search } from "lucide-react";
import type { OrganizationChart, OrganizationSeat, OrganizationSeatRuntime } from "@/lib/contracts/organization";
-import { Badge } from "@/components/ui/badge";
import { Input } from "@/components/ui/input";
import { cn } from "@/lib/utils";
@@ -34,27 +33,18 @@ export function OrganizationUnitDirectory({
.sort((a, b) => a.sortOrder - b.sortOrder || a.name.localeCompare(b.name))
.filter((unit) => !q || `${unit.name} ${unit.description} ${unit.kind}`.toLowerCase().includes(q));
}, [chart.units, query]);
+ const online = runtime.filter((row) => row.status === "ready" || row.status === "busy").length;
return <div data-slot="organization-unit-directory" className="flex h-full min-h-0 flex-col bg-background/40">
- <div className="grid shrink-0 gap-3 border-b p-3 @min-[760px]:grid-cols-[minmax(0,1fr)_auto] @min-[760px]:items-center">
- <div>
- <h3 className="text-sm font-semibold">Organization overview</h3>
- <p className="mt-0.5 text-xs text-muted-foreground">Scan units first. Open a unit for projects, seats, reporting lines, and execution bindings.</p>
- </div>
- <div className="grid grid-cols-3 gap-2 text-center">
- <Metric value={chart.units.length} label="Units" icon={<Building2 className="size-3.5"/>}/>
- <Metric value={chart.seats.length} label="Seats" icon={<Users className="size-3.5"/>}/>
- <Metric value={runtime.filter((row) => row.status === "ready" || row.status === "busy").length} label="Online" icon={<UserRound className="size-3.5"/>}/>
- </div>
- </div>
- <div className="shrink-0 border-b p-3">
- <div className="relative max-w-xl">
- <Search className="pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"/>
- <Input aria-label="Search organization units" className="h-9 pl-9" placeholder="Search units, companies, teams, or clients…" value={query} onChange={(event) => setQuery(event.target.value)}/>
+ <div className="flex shrink-0 flex-wrap items-center gap-2 border-b px-3 py-2">
+ <div className="relative min-w-56 max-w-xl flex-1">
+ <Search className="pointer-events-none absolute left-3 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground"/>
+ <Input aria-label="Search organization units" className="h-8 pl-8 text-xs" placeholder="Search units, companies, teams, clients…" value={query} onChange={(event) => setQuery(event.target.value)}/>
</div>
+ <div className="shrink-0 text-[10px] text-muted-foreground">{chart.units.length} units · {chart.seats.length} seats · {online} online</div>
</div>
<div className="min-h-0 flex-1 overflow-y-auto p-3">
- {units.length ? <div className="grid gap-3 @min-[620px]:grid-cols-2 @min-[1100px]:grid-cols-3">
+ {units.length ? <div className="grid gap-2 @min-[620px]:grid-cols-2 @min-[1100px]:grid-cols-3">
{units.map((unit) => {
const seats = chart.seats.filter((seat) => seat.unitId === unit.id);
const active = seats.filter((seat) => {
@@ -63,22 +53,25 @@ export function OrganizationUnitDirectory({
}).length;
const projects = unit.projectFlow?.nodes.filter((node) => node.kind === "project").length ?? 0;
const activities = unit.projectFlow?.nodes.length ?? 0;
- return <button key={unit.id} type="button" onClick={() => onUnitSelect(unit.id)} className="group min-w-0 rounded-xl border bg-card p-4 text-left shadow-sm transition hover:border-foreground/20 hover:bg-accent/35 hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">
- <div className="flex items-start gap-3">
- <div className="grid size-9 shrink-0 place-items-center rounded-lg border bg-muted/50"><Building2 className="size-4 text-muted-foreground"/></div>
+ return <button key={unit.id} type="button" onClick={() => onUnitSelect(unit.id)} className="group min-w-0 rounded-lg border bg-card p-3 text-left transition hover:border-foreground/20 hover:bg-accent/30 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">
+ <div className="flex items-start gap-2.5">
+ <div className="grid size-8 shrink-0 place-items-center rounded-md bg-muted/55"><Building2 className="size-3.5 text-muted-foreground"/></div>
<div className="min-w-0 flex-1">
- <div className="flex min-w-0 items-center gap-2"><h4 className="truncate text-sm font-semibold">{unit.name}</h4><Badge variant="secondary" className="shrink-0 text-[9px]">{unit.kind}</Badge></div>
- <p className="mt-1 line-clamp-2 min-h-8 text-xs leading-4 text-muted-foreground">{unit.description || "No description yet."}</p>
+ <div className="flex min-w-0 items-baseline gap-2">
+ <h4 className="min-w-0 flex-1 truncate text-sm font-semibold">{unit.name}</h4>
+ <span className="shrink-0 text-[9px] uppercase tracking-wide text-muted-foreground">{unit.kind}</span>
+ </div>
+ {unit.description ? <p className="mt-1 line-clamp-2 text-[11px] leading-4 text-muted-foreground">{unit.description}</p> : null}
+ <div className="mt-2 flex flex-wrap gap-x-3 gap-y-1 text-[10px] text-muted-foreground">
+ <span>{seats.length} seats</span>
+ <span>{active} online</span>
+ <span>{projects || activities} {projects ? "projects" : "nodes"}</span>
+ </div>
</div>
</div>
- <div className="mt-4 grid grid-cols-3 gap-2">
- <MiniMetric value={seats.length} label="seats"/>
- <MiniMetric value={active} label="online"/>
- <MiniMetric value={projects || activities} label={projects ? "projects" : "nodes"}/>
- </div>
</button>;
})}
- </div> : <div className="grid h-52 place-items-center rounded-xl border border-dashed text-center text-sm text-muted-foreground">No units match this search.</div>}
+ </div> : <div className="grid h-44 place-items-center rounded-lg border border-dashed text-center text-xs text-muted-foreground">No units match this search.</div>}
</div>
</div>;
}
@@ -107,10 +100,10 @@ export function OrganizationSeatDirectory({
}, [chart.seats, query, unitId]);
return <div data-slot="organization-seat-directory" className="flex h-full min-h-0 flex-col">
- <div className="shrink-0 border-b p-3">
+ <div className="shrink-0 border-b px-3 py-2">
<div className="relative max-w-xl">
- <Search className="pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"/>
- <Input aria-label="Search organization seats" className="h-9 pl-9" placeholder="Search seats, roles, or people…" value={query} onChange={(event) => setQuery(event.target.value)}/>
+ <Search className="pointer-events-none absolute left-3 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground"/>
+ <Input aria-label="Search organization seats" className="h-8 pl-8 text-xs" placeholder="Search seats, roles, or people…" value={query} onChange={(event) => setQuery(event.target.value)}/>
</div>
</div>
<div className="min-h-0 flex-1 overflow-y-auto p-3">
@@ -118,29 +111,26 @@ export function OrganizationSeatDirectory({
{seats.map((seat) => {
const runtimeRow = runtimeBySeat.get(seat.id);
const status = runtimeRow?.status ?? "vacant";
- return <button key={seat.id} type="button" onClick={() => onSeatSelect(seat)} onDoubleClick={() => onSeatOpen(seat)} className="min-w-0 rounded-xl border bg-card p-3 text-left shadow-sm transition hover:bg-accent/35 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">
+ return <button key={seat.id} type="button" onClick={() => onSeatSelect(seat)} onDoubleClick={() => onSeatOpen(seat)} className="min-w-0 rounded-lg border bg-card p-3 text-left transition hover:bg-accent/30 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">
<div className="flex items-start gap-2.5">
- <span className={cn("mt-1.5 size-2.5 shrink-0 rounded-full", runtimeDot[status])}/>
+ <span className={cn("mt-1.5 size-2 shrink-0 rounded-full", runtimeDot[status])}/>
<div className="min-w-0 flex-1">
- <div className="truncate text-sm font-semibold">{seat.title}</div>
+ <div className="flex min-w-0 items-baseline gap-2">
+ <div className="min-w-0 flex-1 truncate text-sm font-semibold">{seat.title}</div>
+ <span className="shrink-0 text-[9px] text-muted-foreground">{status}</span>
+ </div>
<div className="mt-0.5 truncate text-xs text-muted-foreground">{seat.name}</div>
+ {seat.description ? <p className="mt-1.5 line-clamp-2 text-[11px] leading-4 text-muted-foreground">{seat.description}</p> : null}
+ <div className="mt-2 flex flex-wrap gap-x-3 gap-y-1 text-[10px] text-muted-foreground">
+ <span>{seat.role}</span>
+ <span>{seat.seatMode}</span>
+ <span className="inline-flex min-w-0 items-center gap-1"><BriefcaseBusiness className="size-3"/><span className="max-w-40 truncate">{runtimeRow?.label || "No target"}</span></span>
+ </div>
</div>
- <Badge variant="outline" className="shrink-0 text-[9px]">{status}</Badge>
</div>
- <div className="mt-3 flex flex-wrap gap-1"><Badge variant="secondary" className="text-[9px]">{seat.role}</Badge><Badge variant="outline" className="text-[9px]">{seat.seatMode}</Badge><Badge variant="outline" className="text-[9px]">{seat.state}</Badge></div>
- {seat.description ? <p className="mt-2 line-clamp-2 text-[11px] leading-4 text-muted-foreground">{seat.description}</p> : null}
- <div className="mt-3 flex items-center gap-1.5 text-[10px] text-muted-foreground"><BriefcaseBusiness className="size-3"/><span className="truncate">{runtimeRow?.label || "No execution target bound"}</span></div>
</button>;
})}
- </div> : <div className="grid h-48 place-items-center rounded-xl border border-dashed text-center text-sm text-muted-foreground">No seats match this search.</div>}
+ </div> : <div className="grid h-44 place-items-center rounded-lg border border-dashed text-center text-xs text-muted-foreground">No seats match this search.</div>}
</div>
</div>;
}
-
-function Metric({ value, label, icon }: { value: number; label: string; icon: React.ReactNode }) {
- return <div className="min-w-16 rounded-lg border bg-card px-2.5 py-2"><div className="flex items-center justify-center gap-1 text-sm font-semibold">{icon}{value}</div><div className="mt-0.5 text-[9px] uppercase tracking-wide text-muted-foreground">{label}</div></div>;
-}
-
-function MiniMetric({ value, label }: { value: number; label: string }) {
- return <div className="rounded-lg bg-muted/45 px-2 py-2 text-center"><div className="text-sm font-semibold">{value}</div><div className="text-[9px] uppercase tracking-wide text-muted-foreground">{label}</div></div>;
-}
diff --git a/frontend/slices/organization/components/organization-view.tsx b/frontend/slices/organization/components/organization-view.tsx
index 7c57610b..67df8087 100644
--- a/frontend/slices/organization/components/organization-view.tsx
+++ b/frontend/slices/organization/components/organization-view.tsx
@@ -1,7 +1,7 @@
"use client";
import { useCallback, useEffect, useMemo, useState } from "react";
-import { Activity, ArrowLeft, Building2, Cable, LayoutGrid, Network, Pencil, Plus, RefreshCw, Users, Workflow, X } from "lucide-react";
+import { ArrowLeft, Building2, LayoutGrid, Network, Pencil, Plus, RefreshCw, Users, X } from "lucide-react";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import type { OrganizationSeat, OrganizationUnit } from "@/lib/contracts/organization";
@@ -11,7 +11,6 @@ import { OrganizationEditor } from "./organization-editor";
import { OrganizationSeatDirectory, OrganizationUnitDirectory } from "./organization-directory";
import { ProjectFlow } from "./project-flow";
import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
-import { openWindow } from "@/features/appshell";
type Draft = { kind: "unit"; item?: OrganizationUnit } | { kind: "seat"; item?: OrganizationSeat; unitId?: string } | null;
type CanvasMode = "directory" | "map";
@@ -99,24 +98,19 @@ export function OrganizationView() {
<UnitButton active={selectedUnit === "__all__"} icon={<Users className="size-4"/>} label="All organization" count={data.chart.seats.length} onClick={() => chooseUnit("__all__")}/>
{units.map((unit) => <UnitButton key={unit.id} active={selectedUnit === unit.id} icon={<Building2 className="size-4"/>} label={unit.name} count={data.chart.seats.filter((seat) => seat.unitId === unit.id).length} onClick={() => chooseUnit(unit.id)}/>)}
</nav>
- <div className="hidden shrink-0 border-t p-2 @min-[760px]:grid @min-[760px]:grid-cols-3 @min-[920px]:grid-cols-1 @min-[920px]:gap-1">
- <OrgLink icon={<Workflow className="size-3.5"/>} label="Workflows" onClick={() => openWindow("workflows", "Workflows")}/>
- <OrgLink icon={<Cable className="size-3.5"/>} label="Integrations" onClick={() => openWindow("integrations", "Integrations")}/>
- <OrgLink icon={<Activity className="size-3.5"/>} label="System" onClick={() => openWindow("system-monitor", "System Monitor")}/>
- </div>
</aside>
<section className="flex min-h-0 min-w-0 flex-col overflow-hidden">
- <div className="grid min-h-14 shrink-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-2 border-b px-3 py-2">
+ <div className="grid min-h-12 shrink-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-2 border-b px-3 py-1.5">
<div className="flex min-w-0 items-start gap-1.5">
{currentUnit ? <Button size="icon" variant="ghost" className="size-8 shrink-0" onClick={() => chooseUnit("__all__")} aria-label="Back to organization overview"><ArrowLeft className="size-4"/></Button> : null}
<div className="min-w-0 flex-1">
- <div className="flex min-w-0 items-center gap-2"><h2 className="truncate text-sm font-semibold">{currentUnit?.name ?? data.chart.name}</h2>{currentUnit ? <Badge variant="secondary" className="shrink-0">{currentUnit.kind}</Badge> : <Badge variant="outline" className="shrink-0">overview</Badge>}</div>
+ <div className="flex min-w-0 items-center gap-2"><h2 className="truncate text-sm font-semibold">{currentUnit?.name ?? data.chart.name}</h2>{currentUnit ? <Badge variant="secondary" className="shrink-0">{currentUnit.kind}</Badge> : null}</div>
<p className="mt-0.5 hidden max-w-3xl text-[11px] leading-snug text-muted-foreground @min-[520px]:line-clamp-2">{currentUnit?.description || "Directory first for fast scanning. The map remains available when you need reporting or relationship topology."}</p>
</div>
</div>
<div className="flex shrink-0 gap-1">
- {currentUnit ? <Button size="sm" variant="outline" className="h-8 px-2" onClick={() => setDraft({ kind: "unit", item: currentUnit })}><Pencil className="size-3 @min-[480px]:mr-1"/><span className="hidden @min-[480px]:inline">Unit</span></Button> : null}
+ {currentUnit ? <Button size="sm" variant="outline" className="h-8 px-2" onClick={() => setDraft({ kind: "unit", item: currentUnit })}><Pencil className="size-3 @min-[480px]:mr-1"/><span className="hidden @min-[480px]:inline">Unit</span></Button> : <ModeSwitch value={overviewMode} onChange={setOverviewMode}/>}
{currentUnit ? <Button size="sm" className="h-8 px-2" onClick={() => setDraft({ kind: "seat", unitId: currentUnit.id })}><Users className="size-3 @min-[480px]:mr-1"/><span className="hidden @min-[480px]:inline">Seat</span></Button> : null}
</div>
</div>
@@ -126,17 +120,13 @@ export function OrganizationView() {
{currentUnit ? <Tabs key={currentUnit.id} className="flex min-h-0 flex-1 flex-col gap-0">
<div className="flex min-w-0 shrink-0 items-center justify-between gap-2 border-b px-3 py-2">
<TabsList className="w-fit shrink-0"><TabsTrigger active={tab === "projects"} onClick={() => setTab("projects")}>Projects</TabsTrigger><TabsTrigger active={tab === "seats"} onClick={() => setTab("seats")}>Seats</TabsTrigger></TabsList>
- {tab === "seats" ? <ModeSwitch value={seatMode} onChange={setSeatMode}/> : <span className="hidden text-[10px] text-muted-foreground @min-[720px]:inline">Project map starts at a readable cluster; press F to fit everything.</span>}
+ {tab === "seats" ? <ModeSwitch value={seatMode} onChange={setSeatMode}/> : null}
</div>
{tab === "projects" ? <div className="relative min-h-0 flex-1 overflow-hidden"><ProjectFlow unit={currentUnit} onSave={async (action, record) => { const next = await mutateOrganization({ action, expected_revision: data.chart.revision, data: record }); setData(next); }}/></div> : <div className="relative min-h-0 flex-1 overflow-hidden">
{seatMode === "directory" ? <OrganizationSeatDirectory chart={data.chart} runtime={data.runtime} unitId={currentUnit.id} onSeatSelect={(seat) => setSelectedSeatId(seat?.id ?? null)} onSeatOpen={(seat) => setDraft({ kind: "seat", item: seat })}/> : <OrganizationCanvas chart={data.chart} runtime={data.runtime} unitId={currentUnit.id} selectedSeatId={selectedSeatId} onUnitSelect={chooseUnit} onSeatSelect={(seat) => setSelectedSeatId(seat?.id ?? null)} onSeatOpen={(seat) => setDraft({ kind: "seat", item: seat })}/>}
{selectedSeat ? <SeatInspector seat={selectedSeat} runtimeLabel={selectedRuntime?.label} runtimeStatus={selectedRuntime?.status} onClose={() => setSelectedSeatId(null)} onEdit={() => setDraft({ kind: "seat", item: selectedSeat })}/> : null}
</div>}
</Tabs> : <div className="flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden">
- <div className="flex shrink-0 items-center justify-between gap-3 border-b px-3 py-2">
- <div className="min-w-0 text-xs text-muted-foreground">Browse the organization as cards, or switch to the relationship map when topology matters.</div>
- <ModeSwitch value={overviewMode} onChange={setOverviewMode}/>
- </div>
<div className="relative min-h-0 min-w-0 flex-1 overflow-hidden">
{overviewMode === "directory" ? <OrganizationUnitDirectory chart={data.chart} runtime={data.runtime} onUnitSelect={chooseUnit}/> : <OrganizationCanvas chart={data.chart} runtime={data.runtime} unitId="" selectedSeatId={null} onUnitSelect={chooseUnit} onSeatSelect={() => {}} onSeatOpen={() => {}}/>}
</div>
@@ -147,10 +137,6 @@ export function OrganizationView() {
);
}
-function OrgLink({ icon, label, onClick }: { icon: React.ReactNode; label: string; onClick: () => void }) {
- return <button type="button" onClick={onClick} className="flex min-w-0 items-center justify-center gap-1.5 rounded-md px-2 py-1.5 text-[10px] text-muted-foreground hover:bg-accent/60 hover:text-foreground @min-[920px]:justify-start">{icon}<span className="hidden truncate @min-[920px]:inline">{label}</span></button>;
-}
-
function ModeSwitch({ value, onChange }: { value: CanvasMode; onChange: (value: CanvasMode) => void }) {
return <div className="flex shrink-0 rounded-lg border bg-muted/30 p-0.5" role="group" aria-label="Organization view">
<button type="button" aria-pressed={value === "directory"} className={`flex h-7 items-center gap-1.5 rounded-md px-2 text-[11px] ${value === "directory" ? "bg-background font-medium shadow-sm" : "text-muted-foreground hover:text-foreground"}`} onClick={() => onChange("directory")}><LayoutGrid className="size-3.5"/>Directory</button>
diff --git a/frontend/slices/workflows/app.tsx b/frontend/slices/workflows/app.tsx
index f5d8d3dc..b1758a9e 100644
--- a/frontend/slices/workflows/app.tsx
+++ b/frontend/slices/workflows/app.tsx
@@ -2,13 +2,12 @@
import { pruneGraphCustomNodes } from "@/lib/contracts/graph-custom-nodes";
import { useEffect, useMemo, useState } from "react";
-import { Activity, Building2, Cable, Copy, Download, PanelLeft, PanelRight, Play, RefreshCw, Save, Trash2, Workflow } from "lucide-react";
+import { Activity, Copy, Download, PanelLeft, PanelRight, Play, RefreshCw, Save, Trash2, Workflow } from "lucide-react";
import type { AppProps, ToolbarItem } from "@/features/appshell";
import type { SessionGraphView } from "@/lib/contracts/session-monitor";
import type { WorkflowGraph, WorkflowGraphNode, WorkflowGraphNodeType, WorkflowGraphRun } from "@/lib/contracts/workflow-graph";
import { AppFrame, ResponsiveDialog, ResponsiveToolbar, openWindow, saveAs, useContainer, useResponsive } from "@/features/appshell";
import { Badge } from "@/components/ui/badge";
-import { Switch } from "@/components/ui/switch";
import { Input } from "@/components/ui/input";
import { WorkflowCanvas } from "./components/workflow-canvas";
import { WorkflowCreateDialog } from "./components/workflow-create-dialog";
@@ -94,8 +93,6 @@ export default function WorkflowsApp(props: AppProps) {
const details = libraryMode === "sessions" && sessionView ? <WorkflowSessionDetails view={sessionView} node={sessionNode} onOpenTerminal={openSessionTerminal} onOpenCode={openSessionCode} onSaveDraft={saveSessionDraft} savingDraft={busy} learning={learning}/> : graph ? <WorkflowDetails graph={graph} graphs={graphs} node={node} run={run} panel={panel} onPanel={setPanel} onNode={updateNode} onDeleteNode={(id) => deleteNodes([id])} onGraph={mutate} onRunSelect={(selectedRun) => { setRun(selectedRun); setPanel("run"); }} onRestored={(next) => { setGraph(next); setDirty(false); void listGraphs().then(setGraphs); }}/> : null;
const toolbarItems: ToolbarItem[] = [
{ id: "library", label: "Workflow library", icon: PanelLeft, onClick: toggleLibrary, primary: true },
- { id: "organization", label: "Organization", icon: Building2, onClick: () => openWindow("organization", "Organization") },
- { id: "connections", label: "Integrations", icon: Cable, onClick: () => openWindow("integrations", "Integrations") },
{ id: "refresh", label: "Refresh", icon: RefreshCw, onClick: () => void wrap(async () => { if (libraryMode === "sessions") await refreshSession(); else await load(undefined, true); }), disabled: busy },
...(libraryMode === "automations" && graph ? [
{ id: "duplicate", label: "Duplicate", icon: Copy, onClick: () => void duplicate(), disabled: busy },
@@ -116,7 +113,7 @@ export default function WorkflowsApp(props: AppProps) {
<div className={`grid h-full min-h-0 min-w-0 ${showLibraryPanel ? "grid-cols-[300px_minmax(0,1fr)] @min-[1200px]:grid-cols-[340px_minmax(0,1fr)]" : "grid-cols-1"}`}>
{showLibraryPanel ? <aside className="min-h-0 min-w-0 border-r">{library}</aside> : null}
<main className="flex min-h-0 min-w-0 overflow-hidden">
- {libraryMode === "automations" ? graph ? <div className="flex min-h-0 min-w-0 flex-1 flex-col"><div className="flex min-h-10 min-w-0 shrink-0 flex-wrap items-center gap-1.5 border-b px-2 py-1 @min-[520px]:flex-nowrap @min-[520px]:gap-2"><label className="flex shrink-0 items-center gap-1.5 text-[10px] font-medium"><Switch checked={graph.status === "active"} disabled={graph.status === "archived"} onCheckedChange={(checked) => mutate({ ...graph, status: checked ? "active" : "draft" })}/><span>Active</span></label><select aria-label="Workflow lifecycle" className="h-7 min-w-0 max-w-24 rounded border bg-background px-2 text-xs" value={graph.status} onChange={(event) => mutate({ ...graph, status: event.target.value as WorkflowGraph["status"] })}><option value="draft">Draft</option><option value="active">Active</option><option value="archived">Archived</option></select><WorkflowNodePalette onAdd={addNode}/><span className="hidden min-w-0 truncate text-[10px] text-muted-foreground @min-[900px]:inline">Drag output → input. V Select · H Pan · +/- Zoom · F Fit · Space temporary pan.</span>{message ? <span className="w-full min-w-0 truncate text-[11px] text-muted-foreground @min-[520px]:ml-auto @min-[520px]:w-auto @min-[520px]:max-w-72">{message}</span> : null}</div><div className="min-h-0 min-w-0 flex-1 overflow-hidden"><WorkflowCanvas key={graph.id} graph={graph} selectedId={selected} onSelect={chooseNode} onCustomNodes={(customNodes) => mutate({ ...graph, metadata: { ...graph.metadata, customNodes } })} onMoveMany={(nodes) => mutate({ ...graph, nodes })} nodeStates={runStates} edgeStates={runEdgeStates} onOpen={(id) => void openNode(id)} onConnect={connect} onMove={(id, position) => mutate({ ...graph, nodes: graph.nodes.map((item) => item.id === id ? { ...item, position } : item) })} onDeleteNodes={deleteNodes} onDeleteEdges={deleteEdges} onTidy={tidy}/></div></div> : <div className="flex h-full min-w-0 flex-1 items-center justify-center px-4 text-center text-sm text-muted-foreground">Create or select an automation.</div>
+ {libraryMode === "automations" ? graph ? <div className="flex min-h-0 min-w-0 flex-1 flex-col"><div className="flex min-h-10 min-w-0 shrink-0 flex-wrap items-center gap-1.5 border-b px-2 py-1 @min-[520px]:flex-nowrap @min-[520px]:gap-2"><label className="flex shrink-0 items-center gap-1.5 text-[10px] text-muted-foreground"><span>Status</span><select aria-label="Workflow status" className="h-7 min-w-0 max-w-24 rounded border bg-background px-2 text-xs text-foreground" value={graph.status} onChange={(event) => mutate({ ...graph, status: event.target.value as WorkflowGraph["status"] })}><option value="draft">Draft</option><option value="active">Active</option><option value="archived">Archived</option></select></label><WorkflowNodePalette onAdd={addNode}/>{message ? <span className="w-full min-w-0 truncate text-[11px] text-muted-foreground @min-[520px]:ml-auto @min-[520px]:w-auto @min-[520px]:max-w-72">{message}</span> : null}</div><div className="min-h-0 min-w-0 flex-1 overflow-hidden"><WorkflowCanvas key={graph.id} graph={graph} selectedId={selected} onSelect={chooseNode} onCustomNodes={(customNodes) => mutate({ ...graph, metadata: { ...graph.metadata, customNodes } })} onMoveMany={(nodes) => mutate({ ...graph, nodes })} nodeStates={runStates} edgeStates={runEdgeStates} onOpen={(id) => void openNode(id)} onConnect={connect} onMove={(id, position) => mutate({ ...graph, nodes: graph.nodes.map((item) => item.id === id ? { ...item, position } : item) })} onDeleteNodes={deleteNodes} onDeleteEdges={deleteEdges} onTidy={tidy}/></div></div> : <div className="flex h-full min-w-0 flex-1 items-center justify-center px-4 text-center text-sm text-muted-foreground">Create or select an automation.</div>
: sessionView ? <div className="flex min-h-0 min-w-0 flex-1 flex-col"><div className="flex min-h-10 shrink-0 items-center gap-2 border-b px-3 text-[11px] text-muted-foreground [@media(max-height:520px)]:hidden"><span className="font-medium text-foreground">{sessionView.session.label}</span><span>read-only</span><span>·</span><span>{sessionView.steps.length} steps</span><span>·</span><span>{sessionView.shownEvents}/{sessionView.totalEvents} actions</span>{message ? <span className="ml-auto truncate">{message}</span> : null}</div><div className="min-h-0 min-w-0 flex-1 overflow-hidden"><WorkflowCanvas key={sessionView.graph.revision} graph={sessionView.graph} selectedId={sessionSelected} onSelect={chooseSessionNode} onConnect={() => undefined} onMove={() => undefined} readOnly/></div></div> : <div className="flex h-full min-w-0 flex-1 items-center justify-center px-4 text-center text-sm text-muted-foreground">Select a session to inspect its semantic execution flow.</div>}
{showDetailsPanel ? <aside className="w-[320px] shrink-0 border-l @min-[1200px]:w-[360px]">{details}</aside> : null}
</main>
diff --git a/frontend/slices/workflows/components/workflow-details.tsx b/frontend/slices/workflows/components/workflow-details.tsx
index 919b740d..c55933b0 100644
--- a/frontend/slices/workflows/components/workflow-details.tsx
+++ b/frontend/slices/workflows/components/workflow-details.tsx
@@ -36,19 +36,19 @@ export function WorkflowDetails({ graph, graphs, node, run, panel, onPanel, onNo
onRunSelect: (run: WorkflowGraphRun) => void;
onRestored: (graph: WorkflowGraph) => void;
}) {
- return <div className="flex h-full min-h-0 flex-col bg-card/20">
- <div className="shrink-0 overflow-x-auto border-b">
- <div className="flex min-w-max gap-1 p-1.5">
- {PANELS.map(([value, label, Icon]) => <button
- key={value}
- type="button"
- aria-pressed={panel === value}
- className={`flex h-8 items-center gap-1.5 rounded-md px-2.5 text-[11px] transition ${panel === value ? "bg-accent font-semibold text-foreground" : "text-muted-foreground hover:bg-accent/50 hover:text-foreground"}`}
- onClick={() => onPanel(value)}
- ><Icon className="size-3.5"/><span>{label}</span></button>)}
- </div>
- </div>
- <div className="min-h-0 flex-1">
+ return <div className="flex h-full min-h-0 bg-card/20">
+ <nav aria-label="Workflow details" className="flex w-11 shrink-0 flex-col items-center gap-1 border-r bg-card/30 p-1.5">
+ {PANELS.map(([value, label, Icon]) => <button
+ key={value}
+ type="button"
+ aria-label={label}
+ title={label}
+ aria-pressed={panel === value}
+ className={`grid size-8 place-items-center rounded-md transition ${panel === value ? "bg-accent text-foreground shadow-sm" : "text-muted-foreground hover:bg-accent/55 hover:text-foreground"}`}
+ onClick={() => onPanel(value)}
+ ><Icon className="size-3.5"/></button>)}
+ </nav>
+ <div className="min-h-0 min-w-0 flex-1">
{panel === "inspector" ? <ScrollArea className="h-full"><WorkflowInspector key={node?.id ?? `graph-${graph.id}`} graph={graph} graphs={graphs} node={node} onNode={onNode} onDeleteNode={onDeleteNode} onGraph={onGraph}/></ScrollArea> : null}
{panel === "run" ? <WorkflowRunPanel run={run}/> : null}
{panel === "history" ? <WorkflowRunHistory graph={graph} onSelect={onRunSelect}/> : null}
diff --git a/scripts/e2e/workflow-canvas.mjs b/scripts/e2e/workflow-canvas.mjs
index 0c310e5e..1c9051e7 100644
--- a/scripts/e2e/workflow-canvas.mjs
+++ b/scripts/e2e/workflow-canvas.mjs
@@ -121,10 +121,10 @@ export async function workflowCanvasJourney(page, fixture) {
await expect(page.getByText(/→ Cache Context/)).toBeVisible();
await page.getByRole("button", { name: "Reverse Memory Search to Cache Context" }).click();
- const active = page.getByRole("switch", { name: "Active" }).first();
- await expect(active).not.toBeChecked();
- await active.click();
- await expect(active).toBeChecked();
+ const statusSelect = page.getByLabel("Workflow status");
+ await expect(statusSelect).toHaveValue("draft");
+ await statusSelect.selectOption("active");
+ await expect(statusSelect).toHaveValue("active");
await page.getByRole("button", { name: "Save", exact: true }).click();
await expect(page.getByText("Unsaved", { exact: true })).toBeHidden();
response = await get(page, `graph_id=${encodeURIComponent(graph.id)}`);
@@ -150,5 +150,5 @@ export async function workflowCanvasJourney(page, fixture) {
// Delete using the last persisted revision; the local tidy is intentionally unsaved.
response = await call(page, { action: "delete", graph_id: graph.id, expected_revision: graph.revision });
expect(response.status).toBe(200);
- console.log("PASS Workflow responsive toolbar/drawers, readable compact trigger focus, 5/5 canvas controls, minimap, persistent edge style/active/reverse controls, project/skill directory, active mode, cache/memory/session/directory runtime and cleanup");
+ console.log("PASS Workflow responsive toolbar/drawers, readable compact trigger focus, 5/5 canvas controls, minimap, persistent edge style/active/reverse controls, project/skill directory, lifecycle status, cache/memory/session/directory runtime and cleanup");
}