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

Merge pull request #10230 from atomantic/claim/issue-10141

[._.]/8308dc45127c
diff --cc client/src/components/musicVideo/StageChecklist.jsx
index 85827ebb7f,9457b8e99e..1e9f5c6e5c
--- a/client/src/components/musicVideo/StageChecklist.jsx
+++ b/client/src/components/musicVideo/StageChecklist.jsx
@@@ -22,15 -22,11 +22,16 @@@ export default function StageChecklist(
<li key={item.id} className="flex min-w-0 items-start gap-2 text-sm">
{item.done
? <CheckCircle2 size={16} className="mt-0.5 shrink-0 text-port-success" aria-label="done" />
- : <Circle size={16} className="mt-0.5 shrink-0 text-port-warning" aria-label="to do" />}
+ : <Circle size={16} className="mt-0.5 shrink-0 text-port-warning" aria-label={item.stale ? 'approved earlier, stale' : 'to do'} />}
<div className="min-w-0 flex-1">
<span className={item.done ? 'text-port-text-muted' : ''}>{item.label}</span>
+ {item.stale && <span className="ml-2 rounded bg-port-warning/10 px-1.5 py-0.5 text-xs text-port-warning">done · stale</span>}
{!item.done && item.detail && <p className="break-words text-xs text-port-text-muted">{item.detail}</p>}
+ {!item.done && item.details?.length > 0 && (
+ <ul className="list-disc space-y-0.5 pl-4 text-xs text-port-text-muted">
+ {item.details.map((text) => <li key={text} className="break-words">{text}</li>)}
+ </ul>
+ )}
</div>
{!item.done && item.action && onAction && item.action.anchor !== headerAnchor && (
<button
diff --cc client/src/lib/musicVideoStages.js
index f6837ff160,6746eaaa70..4ce0f2a01a
--- a/client/src/lib/musicVideoStages.js
+++ b/client/src/lib/musicVideoStages.js
@@@ -437,29 -421,14 +437,36 @@@ export function deriveNextAction(projec
// The editable art-direction fields Production approvals needs before art can be approved.
const ART_DIRECTION_FIELDS = [['cast', 'cast'], ['environments', 'sets'], ['visualLanguage', 'visual language'], ['motionLanguage', 'motion']];
+ /** "Approved earlier — changed since: concept, scene 3 prompt" for an approval whose inputs moved; null otherwise. */
+ export function staleApprovalText(stale) {
+ if (!stale) return null;
+ const shown = stale.changedFields.slice(0, 4).join(', ');
+ const more = stale.changedFields.length > 4 ? ` +${stale.changedFields.length - 4} more` : '';
+ return stale.changedFields.length ? `Approved earlier — changed since: ${shown}${more}.` : 'Approved earlier — its inputs changed since.';
+ }
const APPROVAL_ANCHORS = { art: 'mv-review-art', storyboard: 'mv-review-storyboard', proof: 'mv-review-proof' };
+const PUBLISH_ANCHOR = 'mv-publish-kit';
+
+// Storyboard readiness problems, grouped by what the user has to go fix. The
+// server returns plain sentences; the first matching rule picks the group.
+const STORYBOARD_PROBLEM_GROUPS = [
+ { id: 'art', label: 'Art direction', test: /art direction|art feedback/i, action: { label: 'Review art direction', anchor: APPROVAL_ANCHORS.art } },
+ { id: 'lyrics', label: 'Lyrics', test: /lyrics|instrumental/i, action: { label: 'Import lyrics', anchor: 'mv-lyrics-import' } },
+ { id: 'timing', label: 'Lyric timing', test: /alignment|timing|vocal|master song/i, action: { label: 'Verify timing', anchor: APPROVAL_ANCHORS.storyboard } },
+ { id: 'coverage', label: 'Shot coverage', test: /cover the master|gaps or overlaps|create a timed/i, action: { label: 'Open the treatment', anchor: 'mv-board-treatment' } },
+ { id: 'shots', label: 'Shot details', test: /./, action: { label: 'Edit the storyboard', anchor: APPROVAL_ANCHORS.storyboard } },
+];
+
+/** One open checklist item per group of storyboard readiness problems, listing every problem in it. */
+function storyboardProblemItems(readiness) {
+ const problems = readiness?.storyboard?.problems || [];
+ if (readiness?.storyboard?.approved || !problems.length) return [];
+ return STORYBOARD_PROBLEM_GROUPS.flatMap((group, index) => {
+ const earlier = STORYBOARD_PROBLEM_GROUPS.slice(0, index);
+ const mine = problems.filter((text) => group.test.test(text) && !earlier.some((g) => g.test.test(text)));
+ return mine.length ? [{ id: `board-${group.id}`, label: group.label, done: false, details: mine, action: group.action }] : [];
+ });
+}
/**
* What one stage tab needs before it counts as done, as a short checklist the