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 music video dependency repair crashing on missing toast.info
Claude80599bfab03e
diff --git a/client/src/components/musicVideo/DependencyImpactPanel.jsx b/client/src/components/musicVideo/DependencyImpactPanel.jsxindex 6157e3f981..ee6c0e21ec 100644--- a/client/src/components/musicVideo/DependencyImpactPanel.jsx+++ b/client/src/components/musicVideo/DependencyImpactPanel.jsx@@ -30,7 +30,9 @@ export default function DependencyImpactPanel({ project, busy, onRepair }) {return <li key={shot.sceneId}>{scene?.label || shot.sceneId}: {shot.reasons.join('; ')} → derived clip, composition and review evidence</li>;})}</ul>- <p>Up to {formatCount(result.estimate.maxGenerations)} clip submissions ({formatCount(result.estimate.outputSeconds)} seconds of footage); {formatCount(result.estimate.evidenceRebuilds)} evidence records need rebuilding or review. Historical assets are retained.</p>+ <p>{result.estimate.maxGenerations > 0+ ? `Up to ${formatCount(result.estimate.maxGenerations)} clip submissions (${formatCount(result.estimate.outputSeconds)} seconds of footage)`+ : 'No new clips needed'}; {formatCount(result.estimate.evidenceRebuilds)} evidence records need rebuilding or review. Historical assets are retained.</p>{!result.shots.length && <p>Selected takes can be kept. Rebuild the draft and review it again; historical passing reviews cannot approve changed dependencies.</p>}<button type="button" disabled={busy || revisionActive} onClick={() => onRepair(result.basis)}className="min-h-[44px] rounded border border-port-border px-3 text-port-accent disabled:opacity-50">diff --git a/client/src/components/musicVideo/DependencyImpactPanel.test.jsx b/client/src/components/musicVideo/DependencyImpactPanel.test.jsxindex cd256b565e..ecac0abb6e 100644--- a/client/src/components/musicVideo/DependencyImpactPanel.test.jsx+++ b/client/src/components/musicVideo/DependencyImpactPanel.test.jsx@@ -18,6 +18,12 @@ describe('rendered stale impact', () => {fireEvent.click(screen.getByRole('button', { name: 'Repair affected dependencies' }));expect(repair).toHaveBeenCalledWith('example-basis');});+ it('says no clips are needed when only review evidence is stale', async () => {+ getMusicVideoDependencyImpact.mockResolvedValue({ ...impact, shots: [], estimate: { maxGenerations: 0, outputSeconds: 0, evidenceRebuilds: 2 } });+ render(<DependencyImpactPanel project={project} onRepair={vi.fn()} />);+ expect(await screen.findByText(/No new clips needed; 2 evidence records/)).toBeInTheDocument();+ expect(screen.queryByText(/Up to 0 clip/)).not.toBeInTheDocument();+ });it('drops an older project response and keeps an active repair disabled', async () => {let resolveOld;getMusicVideoDependencyImpact.mockReturnValueOnce(new Promise((resolve) => { resolveOld = resolve; })).mockResolvedValueOnce(impact);diff --git a/client/src/components/ui/Toast.jsx b/client/src/components/ui/Toast.jsxindex 7c5e9919a0..1dd26ab558 100644--- a/client/src/components/ui/Toast.jsx+++ b/client/src/components/ui/Toast.jsx@@ -124,14 +124,15 @@ export const toast = Object.assign(error: (content, opts = {}) => add(content, opts, 'error'),loading: (content, opts = {}) => add(content, opts, 'loading'),warning: (content, opts = {}) => add(content, opts, 'warning'),+ info: (content, opts = {}) => add(content, opts, 'info'),dismiss,});export default toast;-const TYPE_ICON = { success: '✓', error: '✕', warning: '⚠' };-const TYPE_CLASS = { success: 'text-port-success', error: 'text-port-error', loading: 'text-gray-400', warning: 'text-port-warning' };+const TYPE_ICON = { success: '✓', error: '✕', warning: '⚠', info: 'ℹ' };+const TYPE_CLASS = { success: 'text-port-success', error: 'text-port-error', loading: 'text-gray-400', warning: 'text-port-warning', info: 'text-port-accent' };export function Toaster({ position = 'bottom-right', toastOptions = {} }) {const [items, setItems] = useState([]);diff --git a/client/src/components/ui/Toast.test.jsx b/client/src/components/ui/Toast.test.jsxindex 1e8a826cc6..26a3d96565 100644--- a/client/src/components/ui/Toast.test.jsx+++ b/client/src/components/ui/Toast.test.jsx@@ -62,6 +62,14 @@ describe('Toaster accessibility', () => {const glyph = status.querySelector('[aria-hidden="true"]');expect(glyph).toHaveTextContent('✓');});++ // Regression: `toast.info` was missing while ~30 callers used it, so the+ // music-video dependency repair threw `a.info is not a function` mid-flow.+ it('announces an info toast politely', () => {+ render(<Toaster />);+ act(() => { toast.info('Rendering the revised draft'); });+ expect(screen.getByRole('status')).toHaveTextContent('Rendering the revised draft');+ });});describe('loading spinner', () => {