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

keep every approval problem listed while planning edits are unsaved

[._.]/ Adam Eivyc08bf085b230
diff --git a/client/src/components/musicVideo/ProductionReviewPanel.jsx b/client/src/components/musicVideo/ProductionReviewPanel.jsx
index 792c1395ef..9d99e21f3f 100644
--- a/client/src/components/musicVideo/ProductionReviewPanel.jsx
+++ b/client/src/components/musicVideo/ProductionReviewPanel.jsx
@@ -106,6 +106,13 @@ export default function ProductionReviewPanel({ project, review, onOpenArtifact,
if (!evidenceComplete) return 'Complete the machine review notes (40+ characters each, plus limitations).';
return null;
};
+ // The problems listed under the help line: all of them, less the first when the help line is showing it
+ // (it isn't while edits are unsaved or an action is running). A proof with nothing rendered lists none.
+ const listedProblems = stage => {
+ if (!ready || ready[stage].approved || (stage === 'proof' && proofNeedsRender)) return [];
+ const problems = ready[stage].problems || [];
+ return dirty || review.busy ? problems : problems.slice(1);
+ };
// A link to another step's section crosses steps through the page; within this step it just unfolds the target.
const jump = (tab, anchor) => event => {
if (onNavigate && tab !== STAGE_TABS[stage]) { event.preventDefault(); onNavigate(tab, anchor); return; }
@@ -231,7 +238,7 @@ export default function ProductionReviewPanel({ project, review, onOpenArtifact,
}}>Request changes</button>
</div>
{approvalHelp(key) && <p id={fieldId(`${key}-approval-help`)} role="status" className="mt-1 text-sm text-port-warning">{approvalHelp(key)}</p>}
- {approvalHelp(key) && (ready?.[key].problems || []).length > 1 && <ul className="mt-1 list-disc pl-5 text-xs text-port-text-muted">{ready[key].problems.slice(1).map(problem => <li key={problem}>{problem}</li>)}</ul>}
+ {listedProblems(key).length > 0 && <ul className="mt-1 list-disc pl-5 text-xs text-port-text-muted">{listedProblems(key).map(problem => <li key={problem}>{problem}</li>)}</ul>}
{key === 'proof' ? proofContent : <ProductionReviewContext stage={key} project={project} onOpenArtifact={onOpenArtifact} onArtReady={available => setVisibleArt(available ? artIdentity : null)} onSeek={onSeek} />}
{openRequests(key).length > 0 && <div role="group" aria-label={`${label} change requests`} className="mt-2 space-y-2 rounded border border-port-warning p-2">
<p className="text-sm">Resolve these change requests to approve.</p>
diff --git a/client/src/components/musicVideo/ProductionReviewPanel.test.jsx b/client/src/components/musicVideo/ProductionReviewPanel.test.jsx
index 2d8d57f564..c0532b09c8 100644
--- a/client/src/components/musicVideo/ProductionReviewPanel.test.jsx
+++ b/client/src/components/musicVideo/ProductionReviewPanel.test.jsx
@@ -314,6 +314,31 @@ describe('Production proof playback evidence', () => {
});
});
+describe('Approval problems with unsaved edits', () => {
+ it.each([
+ [['Cover the master with timed shots.']],
+ [['Cover the master with timed shots.', 'Resolve storyboard feedback for shot: chorus: hold longer']],
+ ])('lists every storyboard problem while planning edits are unsaved (%j)', (problems) => {
+ const review = reviewFixture();
+ review.readiness.storyboard = { approved: false, problems };
+ function Board() {
+ const planning = useState({ ...project.productionReview.draft, cast: 'Edited cast' });
+ return <ProductionReviewPanel project={project} review={review} onOpenArtifact={vi.fn()} stage="storyboard" planning={planning} />;
+ }
+ render(<Board />);
+ expect(screen.getByText('Save your planning edits first.')).toBeTruthy();
+ for (const problem of problems) expect(screen.getByText(problem)).toBeTruthy();
+ });
+
+ it('shows the first problem once, on the help line, when nothing is unsaved', () => {
+ const review = reviewFixture();
+ review.readiness.storyboard = { approved: false, problems: ['Cover the master with timed shots.', 'Second problem.'] };
+ render(<ProductionReviewPanel project={project} review={review} onOpenArtifact={vi.fn()} stage="storyboard" />);
+ expect(screen.getAllByText(/Cover the master with timed shots\./)).toHaveLength(1);
+ expect(screen.getByText('Second problem.')).toBeTruthy();
+ });
+});
+
describe('Lyric timing lives on the Song step', () => {
it('leaves song content and timing verification out of the storyboard planning editor', () => {
const review = reviewFixture();