Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: reflow narrow pages and widgets and audit responsive UX
[._.]/ Adam Eivy409e529d4004
diff --git a/client/src/AGENTS.md b/client/src/AGENTS.mdindex a16056d0b4..17d529f12d 100644--- a/client/src/AGENTS.md+++ b/client/src/AGENTS.md@@ -7,6 +7,7 @@ These apply to React/Vite client code. Universal constraints (functional program- **Admin workspace design** — for new or redesigned admin pages, follow [the workspace design guide](../../docs/UX_DESIGN_GUIDE.md): choose a page family, put useful work first, use desktop width for related work/evidence, and preserve icon-prefixed desktop navigation plus CoS-style compact mobile icon rows. Apply incrementally; the guide does not authorize unrelated behavior changes or a global CSS rewrite.- **No window.alert/confirm** - use inline confirmations or toast notifications- **Form labels need `htmlFor`/`id` pairing** - when adding a settings/config form field, wire `<label htmlFor="...">` to an `id="..."` on the input — screen readers and click-to-focus both depend on the association. The visual `block`/`mb-1` styling alone doesn't establish it.+- **Narrow containers on desktop** — follow the [narrow-container acceptance contract](../../docs/UX_DESIGN_GUIDE.md#narrow-monitors-and-embedded-containers). Sidebar-reduced pages and dashboard tiles need container queries, shrinkable grid/flex children, wrapping actions and long-string handling. Verify child rectangles as well as scroll dimensions; hiding overflow is not a fix.- **Mobile responsive** - all pages should be mobile responsive friendly. **A `grid-cols-N` with N > 3 and no `…:grid-cols-*` anywhere in the same class string is a bug**, not a style nit: at 360px a four-up stat bar gives each card ~65px of outer width, so its label wraps to five lines and the whole above-the-fold region is unreadable. Give text-bearing cards a narrow phone default and let the viewport opt into the wide layout (`grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4`); a widened *gap* (`gap-4 sm:gap-6`) is not a column breakpoint. A grid of square thumbnails or heatmap cells may stay four-plus wide on a phone, but it still needs a column breakpoint so the desktop isn't stuck at the phone count. Enforced tree-wide by `client/src/responsiveGridConventions.test.js`, which carries the allowlist for the few grids that really are frozen N-across (a seven-day month grid, the fixed five-trait Big Five bars).- **A shared primitive that bakes in `inline-flex` must yield it to a caller's own display utility.** Tailwind v4 emits display utilities in alphabetical order, so `.inline-flex` lands AFTER `.hidden` in the stylesheet and wins at equal specificity: a `<Pill className="hidden sm:inline-flex">` stayed visible at every width, and the responsive variant it was paired with did nothing. `Pill` handles this (see `OWN_DISPLAY` in `components/ui/Pill.jsx`); `InfoTooltip`, `CopyableId`, and `ProvenanceChip` still interpolate `className` after a hardcoded `inline-flex` and need the same treatment the first time one of them is given a `hidden md:` call site. Primitives baking `flex`/`grid` are not exposed — those sort BEFORE `.hidden` and lose to it correctly.- **A fixed-width popover carries a viewport clamp** - an absolutely-positioned panel whose width is fixed at 256px or more (`w-64` and up, or the same size as an arbitrary `w-[19rem]`) must also carry `max-w-[calc(100vw-1rem)]`. `Layout`'s root shell is `overflow-x-hidden`, so anything wider than the viewport is *clipped away*, not made scrollable: a `w-96` filter panel anchored `right-3` on a 360px phone puts its whole left column of controls permanently off-screen with nothing to scroll to. The `calc(100vw-1rem)` form (not `90vw`) is the standard because it holds an 8px gutter at every width instead of a proportional one that collapses on small screens. Enforced tree-wide by `client/src/popoverClampConventions.test.js`.diff --git a/client/src/components/BackupWidget.jsx b/client/src/components/BackupWidget.jsxindex b67ad7a484..84414ccd8b 100644--- a/client/src/components/BackupWidget.jsx+++ b/client/src/components/BackupWidget.jsx@@ -379,7 +379,7 @@ const BackupWidget = memo(function BackupWidget() {const isNever = status?.status === 'never';return (- <div className="@container bg-port-card border border-port-border rounded-xl p-4 @md:p-6">+ <div className="@container min-w-0 bg-port-card border border-port-border rounded-xl p-4">{/* Header */}<div className="flex items-center justify-between gap-2 mb-4"><div className="flex min-w-0 items-center gap-3">diff --git a/client/src/components/CosDashboardWidget.jsx b/client/src/components/CosDashboardWidget.jsxindex 35618106f1..ff92a2027a 100644--- a/client/src/components/CosDashboardWidget.jsx+++ b/client/src/components/CosDashboardWidget.jsx@@ -163,7 +163,7 @@ const CosDashboardWidget = memo(function CosDashboardWidget() {};return (- <div className="@container bg-port-card border border-port-border rounded-xl p-4 @md:p-6">+ <div className="@container min-w-0 bg-port-card border border-port-border rounded-xl p-4">{/* Header */}<div className="flex items-center justify-between gap-2 mb-4"><div className="flex min-w-0 items-center gap-3">diff --git a/client/src/components/DecisionLogWidget.jsx b/client/src/components/DecisionLogWidget.jsxindex 4d144d08e9..fb9001e059 100644--- a/client/src/components/DecisionLogWidget.jsx+++ b/client/src/components/DecisionLogWidget.jsx@@ -237,7 +237,7 @@ const DecisionLogWidget = memo(function DecisionLogWidget() {};return (- <div className="@container bg-port-card border border-port-border rounded-xl p-4 @md:p-6">+ <div className="@container min-w-0 bg-port-card border border-port-border rounded-xl p-4">{/* Header */}<div className="flex items-center justify-between gap-2 mb-4"><div className="flex items-center gap-3 min-w-0">diff --git a/client/src/components/GoalProgressWidget.jsx b/client/src/components/GoalProgressWidget.jsxindex f8e71b0e8f..8e5ef13a1b 100644--- a/client/src/components/GoalProgressWidget.jsx+++ b/client/src/components/GoalProgressWidget.jsx@@ -81,7 +81,7 @@ const GoalProgressWidget = memo(function GoalProgressWidget() {if (loading || !goals.length) return null;return (- <div className="@container bg-port-card border border-port-border rounded-xl p-4 @md:p-6">+ <div className="@container min-w-0 bg-port-card border border-port-border rounded-xl p-4"><div className="flex items-center justify-between mb-4"><div className="flex items-center gap-3"><Target className="w-6 h-6 text-port-accent" aria-hidden="true" />diff --git a/client/src/components/NetworkExposureWidget.jsx b/client/src/components/NetworkExposureWidget.jsxindex 6d0163a9c7..038140cd7f 100644--- a/client/src/components/NetworkExposureWidget.jsx+++ b/client/src/components/NetworkExposureWidget.jsx@@ -87,7 +87,7 @@ const NetworkExposureWidget = memo(function NetworkExposureWidget() {!httpsEnabled && bind?.audience === 'all-interfaces';return (- <div className="@container bg-port-card border border-port-border rounded-xl p-4 @md:p-6">+ <div className="@container min-w-0 bg-port-card border border-port-border rounded-xl p-4"><div className="flex items-center justify-between gap-2 mb-4"><div className="flex min-w-0 items-center gap-3"><div className={`p-2 rounded-lg ${httpsEnabled ? 'bg-port-success/10' : 'bg-port-warning/10'}`}>@@ -129,7 +129,7 @@ const NetworkExposureWidget = memo(function NetworkExposureWidget() {<Shield size={14} />Cert mode</dt>- <dd className="min-w-0 text-left @xs:text-right">+ <dd className="min-w-0 max-w-full [overflow-wrap:anywhere] text-left @xs:text-right"><CertModeBadge mode={cert.mode} host={cert.tailscaleHost} /></dd></div>@@ -187,7 +187,7 @@ const NetworkExposureWidget = memo(function NetworkExposureWidget() {{mic.available ? <Mic size={14} /> : <MicOff size={14} />}Voice / mic</dt>- <dd className="min-w-0 text-left @xs:text-right">+ <dd className="min-w-0 max-w-full [overflow-wrap:anywhere] text-left @xs:text-right">{mic.available ? (<div className="flex flex-wrap items-center gap-1 text-port-success @xs:justify-end"><CheckCircle size={14} />diff --git a/client/src/components/SystemHealthWidget.jsx b/client/src/components/SystemHealthWidget.jsxindex 236f20d766..afc2510e91 100644--- a/client/src/components/SystemHealthWidget.jsx+++ b/client/src/components/SystemHealthWidget.jsx@@ -74,9 +74,9 @@ const SystemHealthWidget = memo(function SystemHealthWidget({ dashboardState })const thresholds = resolveHealthThresholds(health.thresholds);return (- <div className="@container bg-port-card border border-port-border rounded-xl p-4 @md:p-6">+ <div className="@container min-w-0 bg-port-card border border-port-border rounded-xl p-4">{/* Header */}- <div className="flex items-center justify-between gap-2 mb-4">+ <div className="flex flex-wrap items-center justify-between gap-2 mb-4"><div className="flex min-w-0 items-center gap-3"><div className={`shrink-0 p-2 rounded-lg ${healthStyle.bg}`}><Server className={`w-5 h-5 ${healthStyle.color}`} />diff --git a/client/src/components/UpcomingTasksWidget.jsx b/client/src/components/UpcomingTasksWidget.jsxindex fe3f174014..3655ed2a9c 100644--- a/client/src/components/UpcomingTasksWidget.jsx+++ b/client/src/components/UpcomingTasksWidget.jsx@@ -34,7 +34,7 @@ const UpcomingTasksWidget = memo(function UpcomingTasksWidget() {// which used to be indistinguishable from "nothing is scheduled".if (error) {return (- <div className="@container bg-port-card border border-port-border rounded-xl p-4 @md:p-6" role="status">+ <div className="@container min-w-0 bg-port-card border border-port-border rounded-xl p-4" role="status"><div className="flex items-center gap-3"><Clock className="w-6 h-6 text-gray-500" aria-hidden="true" /><div>@@ -87,7 +87,7 @@ const UpcomingTasksWidget = memo(function UpcomingTasksWidget() {};return (- <div className="@container bg-port-card border border-port-border rounded-xl p-4 @md:p-6">+ <div className="@container min-w-0 bg-port-card border border-port-border rounded-xl p-4">{/* Header */}<div className="flex items-center justify-between mb-4"><div className="flex items-center gap-3">@@ -145,7 +145,7 @@ const UpcomingTasksWidget = memo(function UpcomingTasksWidget() {</span>)}</div>- <div className="flex items-center gap-2 text-xs text-gray-500">+ <div className="flex flex-wrap items-center gap-2 text-xs text-gray-500"><span className="flex items-center gap-1"><CheckCircle size={10} className="text-port-success" />Ready@@ -192,7 +192,7 @@ const UpcomingTasksWidget = memo(function UpcomingTasksWidget() {</span>)}</div>- <div className="flex items-center gap-2 text-xs text-gray-500">+ <div className="flex flex-wrap items-center gap-2 text-xs text-gray-500"><span className="flex items-center gap-1"><Timer size={10} />{task.eligibleInFormatted}diff --git a/client/src/components/WhileAwayWidget.jsx b/client/src/components/WhileAwayWidget.jsxindex 610063c1a7..5eed913156 100644--- a/client/src/components/WhileAwayWidget.jsx+++ b/client/src/components/WhileAwayWidget.jsx@@ -114,7 +114,7 @@ export default function WhileAwayWidget() {const windowSince = sinceRef.current || data.sinceIso;return (- <div className="@container bg-port-card border border-port-border rounded-xl p-4 @md:p-6">+ <div className="@container min-w-0 bg-port-card border border-port-border rounded-xl p-4">{/* Header */}<div className="flex items-center justify-between mb-3 gap-3"><div className="flex items-center gap-3 min-w-0">diff --git a/client/src/components/brain/tabs/ImportTab.jsx b/client/src/components/brain/tabs/ImportTab.jsxindex 297c22908f..ea4b612426 100644--- a/client/src/components/brain/tabs/ImportTab.jsx+++ b/client/src/components/brain/tabs/ImportTab.jsx@@ -441,8 +441,8 @@ function StepReview({ preview, isZip, fileMeta, tagsInput, setTagsInput, skipEmpconst remaining = conversations.length - sample.length;return (- <div className="space-y-4">- <div className="grid grid-cols-1 lg:grid-cols-[1fr_320px] gap-6 items-start">+ <div className="@container/import min-w-0 space-y-4">+ <div className="grid grid-cols-1 @5xl/import:grid-cols-[minmax(0,1fr)_320px] gap-6 items-start">{/* Left — preview of what was found */}<div className="space-y-4 min-w-0">{isZip ? (@@ -498,7 +498,7 @@ function StepReview({ preview, isZip, fileMeta, tagsInput, setTagsInput, skipEmp</div>{/* Right — import options */}- <div className="space-y-4 lg:sticky lg:top-4 self-start">+ <div className="space-y-4 @5xl/import:sticky @5xl/import:top-4 self-start"><p className="text-sm text-gray-300">Each conversation becomes a Memory entry in Brain → Memory. The full transcript{isZip ? ' (with inline images and asset links)' : ''} is also archived todiff --git a/client/src/components/brain/tabs/InboxTab.jsx b/client/src/components/brain/tabs/InboxTab.jsxindex e69e9e4b43..858a83df89 100644--- a/client/src/components/brain/tabs/InboxTab.jsx+++ b/client/src/components/brain/tabs/InboxTab.jsx@@ -364,11 +364,12 @@ export default function InboxTab({ onRefresh, settings }) {return (// Full-bleed dashboard grid: capture form spans the top, filed/done entries// fill the main column, and a persistent stats + Needs-Review rail sits on- // the right at xl+. Below xl it collapses to a single column (mobile flow:+ // the right when the container fits. In narrow containers it collapses to a single column (mobile flow:// form → Needs Review → entries).- <div className="grid grid-cols-1 xl:grid-cols-[1fr_360px] gap-4 content-start">+ <div className="@container/inbox min-w-0">+ <div className="grid grid-cols-1 @5xl/inbox:grid-cols-[minmax(0,1fr)_360px] gap-4 content-start">{/* Capture input — spans both columns */}- <form onSubmit={handleSubmit} className="xl:col-span-2">+ <form onSubmit={handleSubmit} className="@5xl/inbox:col-span-2"><div className="flex gap-2"><inputref={inputRef}@@ -444,7 +445,7 @@ export default function InboxTab({ onRefresh, settings }) {{/* Creative batch action — appears once any captured note is flaggedcreative. Sends them all into the catalog ingest review in one hop. */}{creativeEntries.length > 0 && (- <div className="xl:col-span-2 flex items-center justify-between gap-3 p-3 bg-port-accent-2/10 border border-port-accent-2/30 rounded-lg">+ <div className="@5xl/inbox:col-span-2 flex items-center justify-between gap-3 p-3 bg-port-accent-2/10 border border-port-accent-2/30 rounded-lg"><span className="text-sm text-port-accent-2 flex items-center gap-2"><Sparkles className="w-4 h-4 flex-shrink-0" />{creativeEntries.length} creative {creativeEntries.length === 1 ? 'note' : 'notes'} ready to become catalog ingredients@@ -463,9 +464,9 @@ export default function InboxTab({ onRefresh, settings }) {Capped to the viewport and given its own scroll on xl+ so a longNeeds-Review queue stays reachable instead of growing past the fold(the very problem #1173 set out to fix). */}- <div className="flex flex-col gap-4 xl:col-start-2 xl:row-start-2 xl:sticky xl:top-0 xl:self-start xl:max-h-[calc(100dvh-7rem)] xl:overflow-y-auto">+ <div className="flex flex-col gap-4 @5xl/inbox:col-start-2 @5xl/inbox:row-start-2 @5xl/inbox:sticky @5xl/inbox:top-0 @5xl/inbox:self-start @5xl/inbox:max-h-[calc(100dvh-7rem)] @5xl/inbox:overflow-y-auto">{/* Overview stats — desktop rail only (counts also live in the page header) */}- <div className="hidden xl:block p-3 bg-port-card border border-port-border rounded-lg">+ <div className="hidden @5xl/inbox:block p-3 bg-port-card border border-port-border rounded-lg"><div className="flex items-center justify-between mb-3"><span className="text-sm font-medium text-gray-300">Overview</span><button@@ -630,7 +631,7 @@ export default function InboxTab({ onRefresh, settings }) {)}</div>) : (- <div className="hidden xl:flex items-center gap-2 p-3 bg-port-card border border-port-border rounded-lg text-sm text-gray-500">+ <div className="hidden @5xl/inbox:flex items-center gap-2 p-3 bg-port-card border border-port-border rounded-lg text-sm text-gray-500"><CheckCircle size={16} className="text-port-success" />Nothing needs review.</div>@@ -638,7 +639,7 @@ export default function InboxTab({ onRefresh, settings }) {</div>{/* Main entries column */}- <div className="flex flex-col min-w-0 xl:col-start-1 xl:row-start-2">+ <div className="flex flex-col min-w-0 @5xl/inbox:col-start-1 @5xl/inbox:row-start-2">{/* Classifying section */}{classifyingEntries.length > 0 && (<div className="mb-4">@@ -1011,5 +1012,6 @@ export default function InboxTab({ onRefresh, settings }) {/></div></div>+ </div>);}diff --git a/client/src/components/dashboard/builtins/AppsGridWidget.jsx b/client/src/components/dashboard/builtins/AppsGridWidget.jsxindex 6e64c070fe..122afb3d47 100644--- a/client/src/components/dashboard/builtins/AppsGridWidget.jsx+++ b/client/src/components/dashboard/builtins/AppsGridWidget.jsx@@ -7,7 +7,7 @@ export default function AppsGridWidget({ dashboardState }) {const archivedCount = apps.length - activeApps.length;if (apps.length === 0) {return (- <div className="@container relative bg-port-card border border-port-border rounded-xl p-8 @lg:p-12 text-center">+ <div className="relative bg-port-card border border-port-border rounded-xl p-4 text-center"><div className="flex justify-center mb-4 text-port-accent/70"><MicroGlyph variant="reticle" size={48} state="accent" /></div>@@ -23,11 +23,11 @@ export default function AppsGridWidget({ dashboardState }) {);}return (- <div className="@container space-y-2">+ <div className="@container min-w-0 space-y-2"><p className="text-xs text-gray-500">{activeApps.length} app{activeApps.length !== 1 ? 's' : ''} registered{archivedCount > 0 ? ` (${archivedCount} archived)` : ''}</p>- <div className="grid grid-cols-1 @sm:grid-cols-2 @lg:grid-cols-3 @3xl:grid-cols-4 @5xl:grid-cols-5 @7xl:grid-cols-6 gap-3">+ <div className="grid grid-cols-[repeat(auto-fit,minmax(min(100%,14rem),1fr))] gap-3">{sortedApps.map((app) => (<AppTile key={app.id} app={app} onUpdate={refetch} />))}diff --git a/client/src/components/dashboard/builtins/HourlyActivityWidget.jsx b/client/src/components/dashboard/builtins/HourlyActivityWidget.jsxindex 674bcd662d..363762710a 100644--- a/client/src/components/dashboard/builtins/HourlyActivityWidget.jsx+++ b/client/src/components/dashboard/builtins/HourlyActivityWidget.jsx@@ -29,7 +29,7 @@ export default function HourlyActivityWidget({ dashboardState }) {if (totalSessions === 0) return null;return (- <div className="@container bg-port-card border border-port-border rounded-xl p-4 @md:p-6">+ <div className="@container min-w-0 bg-port-card border border-port-border rounded-xl p-4"><div className="flex flex-col @sm:flex-row @sm:items-center justify-between gap-2 mb-4"><div className="flex items-center gap-3"><div className="text-2xl" aria-hidden="true">⏰</div>diff --git a/client/src/components/ui/PageSkeleton.jsx b/client/src/components/ui/PageSkeleton.jsxindex fdebb0b86d..3570763732 100644--- a/client/src/components/ui/PageSkeleton.jsx+++ b/client/src/components/ui/PageSkeleton.jsx@@ -160,7 +160,7 @@ export default function PageSkeleton({const body = layout === 'grid'? <div className={`grid grid-cols-1 gap-4 items-start ${gridColsClass}`}>{cardBlocks}</div>: (- <div className={`grid grid-cols-1 gap-6 items-start ${sidebar ? 'lg:grid-cols-[1fr_360px]' : ''}`}>+ <div className={`grid grid-cols-1 gap-6 items-start ${sidebar ? '@5xl/skeleton:grid-cols-[minmax(0,1fr)_360px]' : ''}`}>{stackedCards}{sidebar && (<SkeletonCard titleWidthClass="w-1/3" lineWidths={['w-full', 'w-5/6', 'w-4/6']} />@@ -173,7 +173,7 @@ export default function PageSkeleton({if (header === 'bar') {return (<div- className={`flex flex-col min-h-0 ${fullHeight ? 'h-full' : ''}`}+ className={`@container/skeleton flex flex-col min-h-0 ${fullHeight ? 'h-full' : ''}`}role="status"aria-busy="true"aria-label={label}@@ -208,7 +208,7 @@ export default function PageSkeleton({return (<div- className={`${padded ? 'p-4 md:p-6' : ''} ${fullHeight ? 'h-full overflow-y-auto' : ''}`}+ className={`@container/skeleton min-w-0 ${padded ? 'p-4 md:p-6' : ''} ${fullHeight ? 'h-full overflow-y-auto' : ''}`}role="status"aria-busy="true"aria-label={label}diff --git a/client/src/pages/CreateApp.jsx b/client/src/pages/CreateApp.jsxindex 52ead9f75e..09d611172e 100644--- a/client/src/pages/CreateApp.jsx+++ b/client/src/pages/CreateApp.jsx@@ -280,14 +280,14 @@ export default function CreateApp() {const hasRailContent = detecting || detected || detectionLog.length > 0;return (- <div className="max-w-5xl mx-auto">+ <div className="@container/page min-w-0 max-w-5xl mx-auto"><div className="mb-6"><h1 className="text-2xl font-bold text-white">Add App</h1><p className="text-gray-500">Import an existing project or create a new one from a template</p></div><form onSubmit={handleSubmit} className="space-y-6">- <div className="grid grid-cols-1 lg:grid-cols-[1fr_320px] gap-6 items-start">+ <div className="grid grid-cols-1 @5xl/page:grid-cols-[minmax(0,1fr)_320px] gap-6 items-start">{/* Left column — path input + configuration form */}<div className="space-y-6 min-w-0">{/* Path Input */}@@ -487,7 +487,7 @@ export default function CreateApp() {</div>{/* Right column — detection status rail */}- <aside className="space-y-3 lg:sticky lg:top-4 self-start">+ <aside className="space-y-3 @5xl/page:sticky @5xl/page:top-4 self-start">{/* Detection Progress */}{detecting && (<div className="bg-port-card border border-port-border rounded-xl p-4 space-y-2">diff --git a/client/src/pages/DataDog.jsx b/client/src/pages/DataDog.jsxindex 87389e3510..76cea12799 100644--- a/client/src/pages/DataDog.jsx+++ b/client/src/pages/DataDog.jsx@@ -195,13 +195,13 @@ export default function DataDog() {}return (- <div className="p-4 sm:p-6">- <div className="flex flex-col sm:flex-row sm:justify-between sm:items-center gap-4 mb-6">+ <div className="@container/page min-w-0 p-4 sm:p-6">+ <div className="flex flex-wrap justify-between items-center gap-4 mb-6"><h1 className="text-xl sm:text-2xl font-bold text-white">DataDog Integration</h1>{!editingInstance && (<buttononClick={handleCreate}- className="w-full sm:w-auto px-4 py-2 bg-port-accent hover:bg-port-accent/80 text-white rounded"+ className="max-w-full w-full @sm/page:w-auto px-4 py-2 bg-port-accent hover:bg-port-accent/80 text-white rounded">+ Add DataDog Instance</button>@@ -224,13 +224,13 @@ export default function DataDog() {<div className="flex flex-col-reverse sm:flex-row gap-2 sm:justify-end"><buttononClick={handleDeleteCancel}- className="w-full sm:w-auto px-4 py-2 bg-gray-600 hover:bg-gray-700 text-white rounded"+ className="max-w-full w-full @sm/page:w-auto px-4 py-2 bg-gray-600 hover:bg-gray-700 text-white rounded">Cancel</button><buttononClick={handleDeleteConfirm}- className="w-full sm:w-auto px-4 py-2 bg-port-error hover:bg-port-error/80 text-white rounded"+ className="max-w-full w-full @sm/page:w-auto px-4 py-2 bg-port-error hover:bg-port-error/80 text-white rounded">Delete</button>@@ -238,7 +238,7 @@ export default function DataDog() {</div></Modal>- <div className="grid grid-cols-1 lg:grid-cols-[1fr_360px] gap-6 items-start">+ <div className="grid grid-cols-1 @5xl/page:grid-cols-[minmax(0,1fr)_360px] gap-6 items-start">{editingInstance ? (<div className="bg-gray-800 rounded-lg p-4 sm:p-6 min-w-0"><h2 className="text-lg sm:text-xl font-bold text-white mb-4">@@ -334,14 +334,14 @@ export default function DataDog() {<buttononClick={handleSave}disabled={saving || !formData.name || !formData.site || (editingInstance === 'new' && (!formData.apiKey || !formData.appKey))}- className="w-full sm:w-auto px-4 py-2 bg-port-success hover:bg-port-success/80 text-white rounded disabled:opacity-50 disabled:cursor-not-allowed"+ className="max-w-full w-full @sm/page:w-auto px-4 py-2 bg-port-success hover:bg-port-success/80 text-white rounded disabled:opacity-50 disabled:cursor-not-allowed">{saving ? 'Saving...' : 'Save'}</button><buttononClick={handleCancel}disabled={saving}- className="w-full sm:w-auto px-4 py-2 bg-gray-600 hover:bg-gray-700 text-white rounded disabled:opacity-50"+ className="max-w-full w-full @sm/page:w-auto px-4 py-2 bg-gray-600 hover:bg-gray-700 text-white rounded disabled:opacity-50">Cancel</button>@@ -350,7 +350,7 @@ export default function DataDog() {</div>) : null}- <div className="space-y-4 lg:col-start-2 lg:row-start-1">+ <div className="space-y-4 @5xl/page:col-start-2 @5xl/page:row-start-1">{Object.values(instances).length === 0 ? (<div className="bg-gray-800 rounded-lg p-8 text-center"><p className="text-gray-400">No DataDog instances configured.</p>diff --git a/client/src/pages/GitHub.jsx b/client/src/pages/GitHub.jsxindex 5e7f5a687e..4426859f43 100644--- a/client/src/pages/GitHub.jsx+++ b/client/src/pages/GitHub.jsx@@ -208,7 +208,7 @@ export default function GitHub() {}return (- <div className="p-4 sm:p-6">+ <div className="@container/page min-w-0 p-4 sm:p-6"><h1 className="text-xl sm:text-2xl font-bold text-white mb-6">GitHub Repos</h1>{!authStatus?.authenticated && (@@ -290,11 +290,11 @@ export default function GitHub() {</div></Modal>- <div className="grid grid-cols-1 lg:grid-cols-[1fr_360px] gap-6 items-start">+ <div className="grid grid-cols-1 @5xl/page:grid-cols-[minmax(0,1fr)_360px] gap-6 items-start">{/* Repo List */}- <div className="bg-port-card rounded-lg border border-port-border p-4 sm:p-6 min-w-0">- <div className="flex flex-col gap-3 mb-4 sm:flex-row sm:items-center sm:justify-between">- <div className="flex items-center gap-3">+ <div className="bg-port-card rounded-lg border border-port-border @container/repos p-4 sm:p-6 min-w-0">+ <div className="flex flex-wrap gap-3 mb-4 items-center justify-between">+ <div className="flex flex-wrap items-center gap-3"><h2 className="text-lg font-bold text-white">Repositories</h2>{lastSync && (<span className="text-xs text-gray-500">Last sync: {timeAgo(lastSync)}</span>@@ -360,16 +360,16 @@ export default function GitHub() {)}{/* Search + Filter */}- <div className="flex flex-col sm:flex-row gap-2 mb-4">+ <div className="flex flex-wrap gap-2 mb-4"><inputtype="text"aria-label="Search repositories"value={search}onChange={(e) => setSearch(e.target.value)}placeholder="Search repos..."- className="flex-1 px-3 py-2 bg-port-bg border border-port-border rounded text-white text-sm"+ className="min-w-0 w-full flex-auto px-3 py-2 bg-port-bg border border-port-border rounded text-white text-sm"/>- <div className="flex gap-1">+ <div className="flex flex-wrap gap-1">{FILTERS.map(f => (<buttonkey={f}@@ -418,7 +418,7 @@ export default function GitHub() {{repoList.map(repo => (<divkey={repo.fullName}- className={`flex flex-col sm:flex-row sm:items-center gap-2 p-3 rounded border border-port-border ${+ className={`flex flex-col @xl/repos:flex-row @xl/repos:items-center gap-2 p-3 rounded border border-port-border ${repo.isArchived ? 'opacity-50 bg-port-bg/50' : 'bg-port-bg'}`}>@@ -453,7 +453,7 @@ export default function GitHub() {<span className="text-xs px-1.5 py-0.5 rounded bg-red-900/50 text-red-400 border border-red-800">npm</span>)}{repo.managedSecrets?.map(s => (- <span key={s} className="text-xs px-1.5 py-0.5 rounded bg-port-accent/10 text-port-accent border border-port-accent/30">+ <span key={s} className="max-w-full [overflow-wrap:anywhere] text-xs px-1.5 py-0.5 rounded bg-port-accent/10 text-port-accent border border-port-accent/30">{s}</span>))}@@ -462,7 +462,7 @@ export default function GitHub() {<p className="text-xs text-gray-500 mt-0.5 truncate">{repo.description}</p>)}</div>- <div className="flex items-center gap-3 shrink-0">+ <div className="flex flex-wrap items-center gap-3 shrink-0"><span className="text-xs text-gray-500">{timeAgo(repo.pushedAt)}</span>{!repo.isArchived && (<label className="flex items-center gap-1.5 cursor-pointer">@@ -494,7 +494,7 @@ export default function GitHub() {)}</div>- <div className="space-y-6">+ <div className="min-w-0 space-y-6 [overflow-wrap:anywhere]">{/* Secrets Management */}<div className="bg-port-card rounded-lg border border-port-border p-4 sm:p-6"><h2 className="text-lg font-bold text-white mb-4">Secrets Management</h2>diff --git a/client/src/pages/Jira.jsx b/client/src/pages/Jira.jsxindex 3edb77313c..2569eb658a 100644--- a/client/src/pages/Jira.jsx+++ b/client/src/pages/Jira.jsx@@ -192,10 +192,10 @@ export default function Jira() {}return (- <div className="p-4 sm:p-6">- <div className="flex flex-col sm:flex-row sm:justify-between sm:items-center gap-4 mb-6">+ <div className="@container/page min-w-0 p-4 sm:p-6">+ <div className="flex flex-wrap justify-between items-center gap-4 mb-6"><h1 className="text-xl sm:text-2xl font-bold text-white">JIRA Integration</h1>- <div className="flex items-center gap-2">+ <div className="flex flex-wrap items-center gap-2"><Linkto="/devtools/jira/reports"className="px-4 py-2 border border-port-border hover:border-port-accent text-gray-300 hover:text-white rounded text-sm"@@ -205,7 +205,7 @@ export default function Jira() {{!editingInstance && (<buttononClick={handleCreate}- className="w-full sm:w-auto px-4 py-2 bg-port-accent hover:bg-port-accent/80 text-white rounded"+ className="max-w-full w-full @sm/page:w-auto px-4 py-2 bg-port-accent hover:bg-port-accent/80 text-white rounded">+ Add JIRA Instance</button>@@ -229,13 +229,13 @@ export default function Jira() {<div className="flex flex-col-reverse sm:flex-row gap-2 sm:justify-end"><buttononClick={handleDeleteCancel}- className="w-full sm:w-auto px-4 py-2 bg-gray-600 hover:bg-gray-700 text-white rounded"+ className="max-w-full w-full @sm/page:w-auto px-4 py-2 bg-gray-600 hover:bg-gray-700 text-white rounded">Cancel</button><buttononClick={handleDeleteConfirm}- className="w-full sm:w-auto px-4 py-2 bg-port-error hover:bg-port-error/80 text-white rounded"+ className="max-w-full w-full @sm/page:w-auto px-4 py-2 bg-port-error hover:bg-port-error/80 text-white rounded">Delete</button>@@ -243,7 +243,7 @@ export default function Jira() {</div></Modal>- <div className="grid grid-cols-1 lg:grid-cols-[1fr_360px] gap-6 items-start">+ <div className="grid grid-cols-1 @5xl/page:grid-cols-[minmax(0,1fr)_360px] gap-6 items-start">{editingInstance ? (<div className="bg-gray-800 rounded-lg p-4 sm:p-6 min-w-0"><h2 className="text-lg sm:text-xl font-bold text-white mb-4">@@ -324,14 +324,14 @@ export default function Jira() {<buttononClick={handleSave}disabled={saving || !formData.name || !formData.baseUrl || !formData.email || !formData.apiToken}- className="w-full sm:w-auto px-4 py-2 bg-port-success hover:bg-port-success/80 text-white rounded disabled:opacity-50 disabled:cursor-not-allowed"+ className="max-w-full w-full @sm/page:w-auto px-4 py-2 bg-port-success hover:bg-port-success/80 text-white rounded disabled:opacity-50 disabled:cursor-not-allowed">{saving ? 'Saving...' : 'Save'}</button><buttononClick={handleCancel}disabled={saving}- className="w-full sm:w-auto px-4 py-2 bg-gray-600 hover:bg-gray-700 text-white rounded disabled:opacity-50"+ className="max-w-full w-full @sm/page:w-auto px-4 py-2 bg-gray-600 hover:bg-gray-700 text-white rounded disabled:opacity-50">Cancel</button>@@ -340,7 +340,7 @@ export default function Jira() {</div>) : null}- <div className="space-y-4 lg:col-start-2 lg:row-start-1">+ <div className="space-y-4 @5xl/page:col-start-2 @5xl/page:row-start-1">{Object.values(instances).length === 0 ? (<div className="bg-gray-800 rounded-lg p-8 text-center"><p className="text-gray-400">No JIRA instances configured.</p>diff --git a/client/src/pages/LoraDatasetDetail.jsx b/client/src/pages/LoraDatasetDetail.jsxindex 287e9f9d80..9a719fcdbf 100644--- a/client/src/pages/LoraDatasetDetail.jsx+++ b/client/src/pages/LoraDatasetDetail.jsx@@ -503,7 +503,7 @@ export default function LoraDatasetDetail({ recordId }) {}return (- <div className="space-y-4">+ <div className="@container/page min-w-0 space-y-4"><div className="flex items-start justify-between gap-3 flex-wrap"><div className="min-w-0"><Link to="/models/training" className="text-xs text-gray-400 hover:text-white flex items-center gap-1 mb-1">@@ -699,7 +699,7 @@ export default function LoraDatasetDetail({ recordId }) {</div></details>- <div className="grid grid-cols-1 lg:grid-cols-[1fr_320px] gap-4 items-start">+ <div className="grid grid-cols-1 @5xl/page:grid-cols-[minmax(0,1fr)_320px] gap-4 items-start"><DatasetImageGriddataset={dataset}onImagesChange={onImagesChange}diff --git a/client/src/pages/StoryBuilder.jsx b/client/src/pages/StoryBuilder.jsxindex 0652664580..04c9e7f5ec 100644--- a/client/src/pages/StoryBuilder.jsx+++ b/client/src/pages/StoryBuilder.jsx@@ -247,12 +247,12 @@ function StoryBuilderIndex() {const intake = useStoryImportIntake(onCreated);return (- // Wide two-column shell above lg: create form left, "Continue a story" list- // right (mirrors the POST launcher redesign, #1986). Below lg the grid+ // Wide two-column shell when the container fits: create form left, "Continue a story" list+ // right (mirrors the POST launcher redesign, #1986). In narrow containers the grid// collapses to a single stacked column so mobile is unchanged. The 22rem// sidebar track is reserved even with no sessions so the form keeps a// comfortable ~48rem width instead of stretching the full shell.- <div className="max-w-6xl mx-auto space-y-6">+ <div className="@container/page min-w-0 max-w-6xl mx-auto space-y-6"><header><h1 className="text-2xl font-bold flex items-center gap-2"><Sparkles className="w-6 h-6 text-port-accent" /> Story Builder@@ -263,7 +263,7 @@ function StoryBuilderIndex() {</p></header>- <div className="grid grid-cols-1 lg:grid-cols-[minmax(0,1fr)_22rem] gap-6 items-start">+ <div className="grid grid-cols-1 @5xl/page:grid-cols-[minmax(0,1fr)_22rem] gap-6 items-start"><section className="bg-port-card border border-port-border rounded-lg"><TabPillstabs={INTAKE_TAB_ITEMS}diff --git a/client/src/widgetContainerConventions.test.js b/client/src/widgetContainerConventions.test.jsnew file mode 100644index 0000000000..6633a8b627--- /dev/null+++ b/client/src/widgetContainerConventions.test.js@@ -0,0 +1,28 @@+import { describe, it, expect } from 'vitest';+import { readFileSync } from 'node:fs';+import { dirname, resolve } from 'node:path';+import { fileURLToPath } from 'node:url';+import { maskComments, stringLiterals } from './test/classNameScan.js';++const root = dirname(fileURLToPath(import.meta.url));+const registryDir = resolve(root, 'components/dashboard');+const registry = readFileSync(resolve(registryDir, 'widgetRegistry.jsx'), 'utf8');+const widgets = [...registry.matchAll(/import\('([^']+)'\)/g)].map(([, path]) => `${path}.jsx`);+// Device-specific hover/touch variants are deliberately outside this layout rule.+const viewportLayout = /(?:^|\s)(?:sm|md|lg|xl|2xl):(?:grid-cols-|flex-(?:row|col)|(?:min-|max-)?w-|p[xytrbl]?-|gap-|hidden\b|inline\b|inline-flex\b)/;+const violations = (source) => stringLiterals(maskComments(source))+ .filter(({ value }) => viewportLayout.test(value)).map(({ value }) => value);++describe('dashboard widget container layout', () => {+ it('detects viewport layout while allowing container queries and device hover affordances', () => {+ expect(violations('<div className="grid grid-cols-1 lg:grid-cols-5" />')).toHaveLength(1);+ expect(violations('<div className="grid grid-cols-1 @lg:grid-cols-5 md:opacity-0" />')).toEqual([]);+ });++ it('all registered widget roots use container-aware layout variants', () => {+ expect(widgets.length).toBeGreaterThan(20);+ const findings = widgets.flatMap(path => violations(readFileSync(resolve(registryDir, path), 'utf8'))+ .map(value => `${path}: ${value}`));+ expect(findings).toEqual([]);+ });+});diff --git a/docs/UX_DESIGN_GUIDE.md b/docs/UX_DESIGN_GUIDE.mdindex 0608183685..d8a38e68bc 100644--- a/docs/UX_DESIGN_GUIDE.md+++ b/docs/UX_DESIGN_GUIDE.md@@ -268,3 +268,15 @@ A growing collection must remain usable with hundreds, thousands, or more record- Verify the public behavior: initial and next-page request limits, unrelated-tab silence, no duplicate concurrent loads, stale-response rejection, retry without skipped pages, end-of-results, deep links, and keyboard/mobile access. Measure transfer and rendered-row count using synthetic large fixtures; never put private records into tests or reports.Adoption is incremental. CoS uses the shared request and footer primitives; Media History reuses the footer with its existing `useGalleryPage` server-filtered adapter; existing collection surfaces require scoped migrations rather than a claim that this document alone makes them conform.++## Narrow monitors and embedded containers++Responsive acceptance is based on **available content width**, not just screen width. An expanded sidebar, inspector, drawer or dashboard grid can leave a 240–480px panel on a desktop monitor. A viewport `sm:` row still activates there and can push controls outside its card.++- Put a named `@container` on the page or reusable component root and query that container for internal layout. A container cannot query itself: apply variants to descendants. Keep device/viewport affordances separate from content layout.+- Stack fixed side rails until the container fits both a useful primary column and the rail plus gaps. Use `minmax(0,1fr)` for flexible grid tracks and `min-w-0` on shrinking flex/grid children. Container thresholds must account for padding and gaps.+- Toolbars and action groups wrap; search inputs have `min-w-0` and a bounded width. Keep labels, actions, focus order and all filter choices available. Long user strings wrap (`overflow-wrap:anywhere`) or truncate with an accessible full-value path.+- Dashboard widgets must work at 240, 320 and 480px container widths on a 1440px desktop. Prefer content-sized auto-fit grids with a minimum clamped to `100%`; a six-column app grid must not remain six columns in a small tile.+- Never fix overflow by hiding it at the page/card root. Intentional tables, timelines and code panes may scroll locally, with keyboard access and a visible cue. Measure both scroll dimensions and child rectangles: clipping can hide a defect without increasing document scroll width.++Before accepting a new or changed page, check 320, 390, 768, 1024, 1280 and 1440px viewports, expanded/collapsed navigation, 200% zoom, and narrow embedded containers. Exercise empty, populated, loading and failure states, long synthetic names/URLs and all action groups. Record the route/component, viewport and container width, state and observed result; mark untested states explicitly. The scheduled UX audit includes these checks and deduplicates findings with the mobile-responsive audit. Structural convention tests supplement real browser geometry checks; passing them does not certify every route.diff --git a/docs/validation/2026-09-22-responsive-containers.md b/docs/validation/2026-09-22-responsive-containers.mdnew file mode 100644index 0000000000..b77939b105--- /dev/null+++ b/docs/validation/2026-09-22-responsive-containers.md@@ -0,0 +1,33 @@+# Narrow-container layout audit++## Scope and findings++Pattern inventory: 1,705 tracked non-test client JS/JSX sources, including 131 page sources. Searched for fixed/minimum widths, custom grid tracks, non-wrapping action rows, and viewport layout variants in every registered dashboard widget. This is a source-pattern audit plus the browser sample below, not visual certification of all route/state combinations.++| Surface | Failure pattern | Change |+| --- | --- | --- |+| GitHub Repos | Fixed side rail and desktop toolbar active inside a narrow page; filter and repository action rows overflow | Named page/card containers, delayed rail, wrapping filters/actions, shrinkable search and long secret names |+| Jira, DataDog | Same fixed rail; header actions exceed narrow content width | Container-based rail and wrapping headers |+| Create App, LoRA dataset, Story Builder | Fixed rail activated by viewport despite sidebar-reduced content width | Stack until the page container fits both columns; shrinkable main track |+| Brain Inbox and import preview | Fixed review/settings rail uses viewport width | Named container tracks and matching placement/sticky variants |+| PageSkeleton | Loading side rail can activate earlier than the loaded page fits | Container-based sidebar layout |+| Apps Grid, Hourly Activity | Desktop column counts remain active in a small dashboard tile | Clamped auto-fit app grid and container-based heatmap |+| System Health, CoS, Backup, Goals, Upcoming Tasks, Network Exposure, Decision Log, While Away | Viewport-based padding, summary columns or labels inside resizable tiles | Component-owned containers; narrow padding; container variants |+| System Health, Backup, Upcoming Tasks, Network Exposure | Browser measurements additionally exposed overflowing header/actions/metadata/status | Wrapping groups and bounded status values |++## Browser evidence++Used an isolated Vite harness importing the real components and stylesheet, with API responses intercepted to synthetic fixtures. No live instance records or provider calls were used. Chromium checked each visible descendant's rectangle against the fixture bounds and compared scrollWidth/clientWidth (1px rounding tolerance).++- GitHub, Jira, DataDog, Apps Grid (six apps), and Hourly Activity (24 nonzero hours): 240, 320, 390, 640, 768, 960 and 1200px fixture widths inside a 1440px desktop viewport; no remaining measured overflow.+- GitHub additionally exercised populated repositories, long names/URLs and long secret names at those container widths and at 320, 390, 768, 1024, 1280 and 1440px viewport widths; no remaining measured overflow.+- System Health, CoS, Backup, Goals (one active goal), Upcoming Tasks (ready task), Network Exposure, Decision Log and While Away: 240, 320, 480 and 960px fixture widths; no remaining measured overflow. Backup used its never-run state; Decision Log used aggregate counts without decision rows; While Away used empty activity.+- The supplementary page/Brain/skeleton changes were source-reviewed and covered by existing applicable tests/build, not individually certified by this browser sample. Full navigation-shell, every theme, zoom, loading/error and every record state remain the scheduled audit's responsibility.++## Prevention and checks++`client/src/widgetContainerConventions.test.js` discovers widget entrypoints from the registry and rejects viewport-based layout variants while permitting device-specific hover behavior. Existing responsive-grid checks remain in place. `docs/UX_DESIGN_GUIDE.md` defines container sizing, wrapping, long strings, local scrolling, viewport/sidebar/zoom/state acceptance and honest coverage reporting.++The UX scheduled-task default now includes responsive layout as checklist item 8, a six-viewport matrix, narrow desktop widgets, clipping checks, sidebar/zoom/state checks and cross-audit deduplication. Version 3 retires version 2's hash so existing uncustomized schedules upgrade through the normal store path; customized prompts remain user-owned.++Focused client validation passed 126 tests across 10 suites; prompt compatibility/integrity validation passed 91 tests across two suites. StoryBuilder's existing tests emitted a reproduced localhost request error despite passing; tracked separately in [#8064](https://github.com/atomantic/PortOS/issues/8064).diff --git a/server/services/taskPromptDefaults/integrity.snapshot.json b/server/services/taskPromptDefaults/integrity.snapshot.jsonindex ed8eb3ad47..60564db097 100644--- a/server/services/taskPromptDefaults/integrity.snapshot.json+++ b/server/services/taskPromptDefaults/integrity.snapshot.json@@ -52,7 +52,7 @@"typing": "bd7cb874b2784395280b116369c7e7ac","ui-bugs": "073bea13a94b0266c53b5f55bb2344b9","user-action-review": "1a083430e43f60cdd586cfffbdebc583",- "ux": "ac11f692eae40ffe8ddeaeaccbcf75e9"+ "ux": "b8c0bde4075685625443a405b2c70b50"},"PROMPT_VERSIONS": {"accessibility": 3,@@ -102,7 +102,7 @@"typing": 3,"ui-bugs": 3,"user-action-review": 2,- "ux": 2+ "ux": 3},"REFERENCE_WATCH_AUDITED_VERSION": 3,"PREVIOUS_DEFAULT_PROMPTS": {@@ -363,7 +363,8 @@"945a716d446d26a03e2805d28bd1ae16"],"ux": [- "e03d03fc7c16faa5b5db93be2896b9ad"+ "e03d03fc7c16faa5b5db93be2896b9ad",+ "ac11f692eae40ffe8ddeaeaccbcf75e9"]}}diff --git a/server/services/taskPromptDefaults/prompts.js b/server/services/taskPromptDefaults/prompts.jsindex 13eeefb20d..72b1332b3c 100644--- a/server/services/taskPromptDefaults/prompts.js+++ b/server/services/taskPromptDefaults/prompts.js@@ -766,7 +766,7 @@ interface the same way and hold to the same checklist.Duplicate findings are noise. Do NOT file:- **Raw console errors / broken elements / failed requests** — \`ui-bugs\` owns these.-- **Viewport breakage** (overflow, sub-44px tap targets, horizontal scroll) — \`mobile-responsive\` owns these.+- **Touch-only mechanics** (hover-only controls and tap-target sizing) — \`mobile-responsive\` owns these. Responsive layout failures ARE part of this UX audit; deduplicate against findings from that sibling task.- **ARIA labels, contrast ratios, keyboard traps** — \`accessibility\` owns these.Mention an overlap only when it is the *cause* of a UX failure you are filing@@ -787,10 +787,15 @@ keyboard-inaccessible icon") — and file it as the UX finding, not as the a11y3. **Walk each main route** with Playwright MCP. For every route:- \`browser_navigate\` to it, then \`browser_snapshot\` to read the structure.- - \`browser_resize\` to **1440x900** (desktop) and **375x812** (mobile) and+ - \`browser_resize\` to **1440x900**, **1280x800**, **1024x768**, **768x1024**, **390x844**, and **320x812** andsnapshot at each — the fold differs, and a buried primary action is thesingle most common finding.+ - Test with the navigation sidebar expanded and collapsed, and at 200% zoom.+ - Resize dashboard widgets and embedded panels to 240px, 320px, and 480px wide on a desktop viewport. Viewport breakpoints do not prove a narrow container fits.+ - Inspect empty, populated, loading, and error states with synthetic long names, URLs, and action labels. Check bounding rectangles and scrollWidth/clientWidth on the page AND cards: overflow-hidden can conceal unreachable controls even when the document has no horizontal scrollbar. Exempt only intentional local scroll regions such as tables/timelines; verify their keyboard access.+ - Record route/widget, viewport AND container width, state, sidebar mode, blocked action, and responsible component. Report unvisited routes/states as untested, never as passing.+4. **Evaluate each route against this named checklist.** Cite the checklistnumber in the finding so results are reproducible rather than vibes:@@ -812,6 +817,8 @@ keyboard-inaccessible icon") — and file it as the UX finding, not as the a11y7. **Information hierarchy matches the user's task** — what they came for isthe most prominent thing, not the densest table or the newest feature.+ 8. **Narrow-container reflow** — no overlapping cards, clipped controls, off-screen actions, or page-level horizontal scroll. Toolbars wrap, flexible children shrink, long strings wrap or have an accessible full-value path, and side panels stack before squeezing the primary work. Consult the app's design standard; for PortOS use docs/UX_DESIGN_GUIDE.md.+5. **File ONE item per finding** using the "Record" mechanics under "Where torecord findings" above. Each finding must carry:@@ -819,7 +826,7 @@ keyboard-inaccessible icon") — and file it as the UX finding, not as the a11ynaming the screen and the problem (e.g.\`ux-settings-save-below-fold-on-mobile\`); ≤80 chars total; unique againstevery existing \`[ux-…]\` slug (re-check before each record).- - **The screen/route** you audited and which checklist item (1–7) it failed.+ - **The screen/route** you audited and which checklist item (1–8) it failed.- **What the user is trying to do** on that screen.- **Why the current design impedes it** — 1–2 sentences, concrete andobservable, referencing what you saw in the snapshot.diff --git a/server/services/taskPromptDefaults/versions.js b/server/services/taskPromptDefaults/versions.jsindex ba7b5fd220..a50742cd2f 100644--- a/server/services/taskPromptDefaults/versions.js+++ b/server/services/taskPromptDefaults/versions.js@@ -45,7 +45,8 @@ export const PROMPT_VERSIONS = {'documentation': 7, // v7: carries {modeInstructions} and ranks wrong documentation above missing documentation, verifying instructions against the code rather than trusting the prose. Previously v6: the changelog step names `AGENTS.md` (or `CLAUDE.md`) as the file carrying the repo's documented convention — #4852 made AGENTS.md the canonical cross-vendor agent-instructions filename, and a managed app that adopted it would otherwise be told to read a file it no longer has. v5: the changelog step defers to the convention the repo documents (some repos collect per-branch fragments in a directory so parallel agents don't conflict) instead of prescribing an append to `.changelog/NEXT.md`. v4: generic {appName} body (v1 hardcoded "PortOS"; v2/v3 retired DONE.md wording)'ui-bugs': 3, // v3: carries {modeInstructions}, exits cleanly when the interface is unreachable instead of filing from imagination, and cedes layout/a11y/UX/copy to their owners. Previously v2: generic {appName} + the app UI (older default hardcoded "PortOS" + http://localhost:5555)'mobile-responsive': 3, // v3: carries {modeInstructions} and requires the viewport width plus what a user cannot do there, rather than flagging any layout that merely looks different. Previously v2: generic {appName} app-UI body (older default hardcoded "PortOS" + http://localhost:5555)- 'ux': 2, // v2: replaces the hardcoded "Read-only on source / no branches, no PRs" paragraph with {modeInstructions} — the audit is registered as file-issues-capable, so a do-work dispatch previously got a mode banner that its own body contradicted in two places. Previously v1: walk the running UI with Playwright MCP against a 7-item named UX checklist and file ONE tracker item per finding via {trackerInstructions} — read-only on source, no branches/PRs. Mode (file-issues vs implement) is injected at dispatch via {modeInstructions} / applyAuditModeWrapper — no prompt bump required.+ 'ux': 3, // v3: audits narrow monitors and widget containers, including clipped overflow and sidebar/zoom states.+ // v2: replaces the hardcoded "Read-only on source / no branches, no PRs" paragraph with {modeInstructions} — the audit is registered as file-issues-capable, so a do-work dispatch previously got a mode banner that its own body contradicted in two places. Previously v1: walk the running UI with Playwright MCP against a 7-item named UX checklist and file ONE tracker item per finding via {trackerInstructions} — read-only on source, no branches/PRs. Mode (file-issues vs implement) is injected at dispatch via {modeInstructions} / applyAuditModeWrapper — no prompt bump required.'data-safety': 1, // v1: data/upgrade-safety audit (migrations, schema parity, version gates). Mode injected at dispatch.'simplify': 1, // v1: dead-code/duplication audit. Mode injected at dispatch.'module-hygiene': 1, // v1: evidence-led complexity, responsibility, reuse, and reusable-surface discoverability audit. Mode injected at dispatch.