Skip to content

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

widen the Media Generation Settings drawer to lg and hide the pills tab-strip scrollbar

[._.]/ Adam Eivy62857a22fb8f
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index ab97a2f8bd..17934174fe 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -151,3 +151,4 @@
- **[issue-1956] Extracted a shared SIGTERM→grace→SIGKILL kill-escalation helper for spawn-based jobs** — the identical "SIGTERM, then after 8s escalate to SIGKILL if the tracked child hasn't exited" cancel block was copy-pasted across seven job-cancel paths (`musicVideo/render.js`, `videoTimeline/local.js`, `imageGen/local.js`, `imageGen/codex.js`, `videoGen/local.js`, `loraTraining/index.js`, `trackYoutubeImport.js`). It now lives in one place — `killWithEscalation(proc, { label, stillRunning, delayMs=8000 })` (`server/lib/killWithEscalation.js`) — which preserves each site's exact guard (`job.process === proc` / `activeProcess === proc` / `activeProcs.get(id) === proc`), its exit check (`exitCode === null && signalCode === null`), and its emoji-prefixed single-line warning, while wrapping the out-of-request-lifecycle `setTimeout` callback in try/catch and unref'ing the timer (codex passes `delayMs: 5000`). Behavior-preserving consolidation; covered by a new `killWithEscalation.test.js`. (#1956)
- **[issue-1967] The slide-in `Drawer` primitive gained a tabbed, wider, deep-linkable layout** — the shared right-side config drawer (`client/src/components/Drawer.jsx`) was a single flat scroll in a fixed ~520px panel, so large config surfaces (Edit App, Media Generation Settings, CoS task config) became page-length scrolls. It now takes a `size` prop (`sm`/`md`/`lg`/`xl`, the last two using more of a wide viewport via extra breakpoints; the old `widthClass` stays as a back-compat escape hatch), an optional `tabs` layout that renders a sticky `TabPills` bar under the header (collapsing to a `<select>` on mobile) with a per-tab scroll region that resets on switch, and a `bodyClassName` hook for multi-column tab bodies. A new `useDrawerTab(paramName, defaultTab, tabIds?)` hook backs the active tab with a caller-named URL search param so the open section is shareable/bookmarkable and degrades to the default on a stale link. Fully back-compat — omit `tabs` and it's the original flat drawer (existing EditAppDrawer/SyncDetailDrawer tests unchanged). This is the foundation for the drawer-UX epic (#1966); the per-surface migrations (#1968–#1973) build on it. (Closes #1967)
- **[issue-1972] SyncDetailDrawer now renders through the shared Drawer primitive** — the per-peer sync-status/detail panel (`client/src/components/sync/SyncDetailDrawer.jsx`) hand-rolled the exact drawer shell (its own backdrop, `fixed inset-y-0 right-0` `<aside>`, header/close button, Esc listener, and body scroll-lock) instead of reusing `client/src/components/Drawer.jsx`. It was the only hand-rolled clone left after the #1967 foundation, so it couldn't inherit future width/animation/a11y/mobile changes. It now mounts as `<Drawer open onClose title="Sync Details" size="sm" closeLabel="Close sync details">`, deleting the duplicated markup plus its own Esc/scroll-lock effects and the now-unused `X` import. Adopting the shared `size="sm"` (520px) replaces the old hand-rolled 480px so the drawer family stays consistent. To preserve its two-line header, the `Drawer` primitive gained an optional `subtitle` prop (rendered under the title in the header) — so the record-name stays a header concern instead of being nudged into the scrollable body with a fragile negative margin. Content, action buttons, and behavior are otherwise identical (all existing SyncDetailDrawer/SyncView/Drawer tests pass). (Closes #1972)
+- **[media-gen-drawer-width] The "Media Generation Settings" drawer now opens wide and the tab strip lost its stray scrollbar.** The three drawers that host the image/video generation settings (Image Gen, Video Gen, and the Storyboard panel) opened at the narrow default width, so the 7-section tabbed surface was crammed into a ~520px column with the tabs overflowing behind an ugly horizontal scrollbar and a lot of empty space. They now open at the `lg` width (up to 880px) so the tabs fit on one row and the content uses the space, and the shared `TabPills` pills variant now hides its horizontal scrollbar to match the underline variant. (`client/src/pages/ImageGen.jsx`, `client/src/pages/VideoGen.jsx`, `client/src/components/writers-room/StoryboardPanel.jsx`, `client/src/components/ui/TabPills.jsx`)
diff --git a/client/src/components/ui/TabPills.jsx b/client/src/components/ui/TabPills.jsx
index 79de9a8aee..4655094c46 100644
--- a/client/src/components/ui/TabPills.jsx
+++ b/client/src/components/ui/TabPills.jsx
@@ -63,7 +63,7 @@ export default function TabPills({
<div
ref={listRef}
onScroll={onScroll}
- className={`${mobileDropdown ? 'hidden sm:flex' : 'flex'} shrink-0 items-center gap-1 bg-port-card border border-port-border rounded p-1 overflow-x-auto touch-pan-x ${className}`}
+ className={`${mobileDropdown ? 'hidden sm:flex' : 'flex'} shrink-0 items-center gap-1 bg-port-card border border-port-border rounded p-1 overflow-x-auto scrollbar-hide touch-pan-x ${className}`}
role="tablist"
aria-label={ariaLabel}
>
diff --git a/client/src/components/writers-room/StoryboardPanel.jsx b/client/src/components/writers-room/StoryboardPanel.jsx
index e618559143..f993fd04b4 100644
--- a/client/src/components/writers-room/StoryboardPanel.jsx
+++ b/client/src/components/writers-room/StoryboardPanel.jsx
@@ -402,7 +402,7 @@ export default function StoryboardPanel({
)}
</div>
- <Drawer open={settingsOpen} onClose={closeImageGenSettings} title="Image Gen Settings">
+ <Drawer open={settingsOpen} onClose={closeImageGenSettings} title="Image Gen Settings" size="lg">
<ImageGenTab />
</Drawer>
</div>
diff --git a/client/src/pages/ImageGen.jsx b/client/src/pages/ImageGen.jsx
index c8925a2434..f487297f14 100644
--- a/client/src/pages/ImageGen.jsx
+++ b/client/src/pages/ImageGen.jsx
@@ -1492,7 +1492,7 @@ export default function ImageGen() {
onSelect={handleGallerySelect}
/>
- <Drawer open={settingsOpen} onClose={closeSettings} title="Media Generation Settings">
+ <Drawer open={settingsOpen} onClose={closeSettings} title="Media Generation Settings" size="lg">
<ImageGenTab />
</Drawer>
diff --git a/client/src/pages/VideoGen.jsx b/client/src/pages/VideoGen.jsx
index 06dae930e6..e6bbc5e590 100644
--- a/client/src/pages/VideoGen.jsx
+++ b/client/src/pages/VideoGen.jsx
@@ -2061,7 +2061,7 @@ export default function VideoGen() {
onRemix={(item) => item?.raw && handleRemixVideo(item.raw)}
/>
- <Drawer open={settingsOpen} onClose={closeSettings} title="Media Generation Settings">
+ <Drawer open={settingsOpen} onClose={closeSettings} title="Media Generation Settings" size="lg">
<ImageGenTab />
</Drawer>