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(cos): make Workflow tab responsive on desktop and mobile (#276)
[._.]/ Adam Eivybf5569c6150e
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 2e9911d0bf..67657594eb 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -18,6 +18,7 @@## Fixed+- **CoS Workflow tab now renders cleanly on desktop and mobile.** The stage columns had only `min-w-[12rem]` with no max — long stage descriptions stretched each column past 300px and forced horizontal scroll even on wide monitors. Columns now use responsive flex sizing on `lg+` (`lg:flex-1 lg:basis-0 lg:min-w-[11rem] lg:max-w-[15rem]`) so descriptions wrap predictably without forcing fixed widths, and the whole pipeline stacks vertically below `lg` (with arrows hidden) for phones and narrow tablets. Cards inside each stage flow into a 2-column grid on `sm`–`lg` so single-column stages don't waste tablet width.- **Volume cover-concept generation no longer 500s on upgraded installs.** The per-season "generate volume cover concepts" LLM step was shipped with its prompt template but missing from `stage-config.json`, so existing installs hit `Stage pipeline-volume-cover-concepts not found`. Added the config entry and a migration that seeds both the template and the config on next launch — fresh installs were already fine.- **Pending data migrations now apply automatically on every server start.** Previously only `update.sh` ran `scripts/run-migrations.js`, so a plain pull-and-restart (or `pm2 restart` after manual git pull) left shipped migrations un-applied — new prompt stages, settings renames, and seed data sat in the queue until the user explicitly ran update or `npm run migrations`. The server now invokes the migration runner during boot, before the AI toolkit loads `stage-config.json`, and continues on failure with an error log instead of refusing to start.- **Pipeline prose stage now honors the per-series provider/model override.** "Draft prose" was dropping the series LLM override and falling back to the default provider — fixed; the override (e.g. Codex on a series-by-series basis) is now respected on the prose stage the same way it already was on idea, comic script, and teleplay.diff --git a/client/src/components/cos/tabs/WorkflowTab.jsx b/client/src/components/cos/tabs/WorkflowTab.jsxindex 701bcd00d5..1a5ad8db66 100644--- a/client/src/components/cos/tabs/WorkflowTab.jsx+++ b/client/src/components/cos/tabs/WorkflowTab.jsx@@ -1,4 +1,4 @@-import { useState, useEffect, useCallback, useMemo } from 'react';+import { Fragment, useState, useEffect, useCallback, useMemo } from 'react';import { RefreshCw, Clock, AlertTriangle, CheckCircle2, Circle, GitBranch, Bot, ArrowRight, Info } from 'lucide-react';import * as api from '../../../services/api';import { timeAgo } from '../../../utils/formatters';@@ -126,7 +126,7 @@ function StageColumn({ stage, nodes, allNodes, hoveredId, setHoveredId }) {const hoveredNode = hoveredId ? allNodes.find(n => n.id === hoveredId) : null;return (- <div className="flex flex-col gap-2 min-w-[12rem] flex-shrink-0">+ <div className="flex w-full min-w-0 flex-col gap-2 lg:flex-1 lg:basis-0 lg:min-w-[11rem] lg:max-w-[15rem]"><div className={`rounded-md border ${palette.ring} ${palette.bg} px-3 py-2`}><div className="flex items-center gap-2"><span className={`w-2 h-2 rounded-full ${palette.dot}`} />@@ -137,7 +137,7 @@ function StageColumn({ stage, nodes, allNodes, hoveredId, setHoveredId }) {</div><p className="text-[11px] text-gray-400 mt-1 leading-snug">{stage.description}</p></div>- <div className="flex flex-col gap-1.5">+ <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-1 gap-1.5">{nodes.map(node => (<NodeCardkey={node.id}@@ -167,7 +167,7 @@ function nodeReferences(node, hoveredId, hoveredNode) {function StageArrow() {return (- <div className="flex items-center px-1 text-gray-600 shrink-0" aria-hidden="true">+ <div className="hidden lg:flex items-center px-2 text-gray-600 shrink-0" aria-hidden="true"><ArrowRight className="w-5 h-5" /></div>);@@ -270,10 +270,10 @@ export default function WorkflowTab() {)}{graph && (- <div className="overflow-x-auto pb-2">- <div className="flex items-stretch gap-2 min-w-min">+ <div className="2xl:overflow-x-auto pb-2">+ <div className="flex flex-col 2xl:flex-row 2xl:items-stretch gap-4 2xl:gap-0 2xl:min-w-min">{populatedStages.map((stage, i) => (- <div key={stage.id} className="flex items-stretch">+ <Fragment key={stage.id}><StageColumnstage={stage}nodes={stage.nodes}@@ -282,7 +282,7 @@ export default function WorkflowTab() {setHoveredId={setHoveredId}/>{i < populatedStages.length - 1 && <StageArrow />}- </div>+ </Fragment>))}</div></div>