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
address review (claude): day-mode expand contrast, pause-on-open, dedupe keys
[._.]/ Adam Eivya01977e6475d
diff --git a/client/src/components/musicVideo/RenderStatusPanel.jsx b/client/src/components/musicVideo/RenderStatusPanel.jsxindex 2944b1d48a..1e9fdb6d34 100644--- a/client/src/components/musicVideo/RenderStatusPanel.jsx+++ b/client/src/components/musicVideo/RenderStatusPanel.jsx@@ -1,3 +1,4 @@+import { useRef } from 'react';import { Film, Download, Maximize2 } from 'lucide-react';// The final-render surface: a progress bar while the assemble job runs, and the@@ -9,11 +10,14 @@ import { Film, Download, Maximize2 } from 'lucide-react';// history id is NOT its filename stem (`music-video-*.mp4`), so reconstructing// `/data/videos/<id>.mp4` 404s. `onOpenPreview(key)` opens the page-level// MediaLightbox; the expand control sits in the player corner so native-// play/pause keeps working. "Open in Media History →" stays — it goes to the-// full history grid, not the same-page lightbox.+// play/pause keeps working. Opening the lightbox pauses this player first so+// the lightbox's autoplay unmute doesn't double-play the same audio. "Open in+// Media History →" stays — it goes to the full history grid, not the same-page+// lightbox.export default function RenderStatusPanel({rendering, progress, renderHistoryId, finalVideo, onOpenPreview,}) {+ const playerRef = useRef(null);if (rendering) {return (<div className="mt-2">@@ -55,6 +59,7 @@ export default function RenderStatusPanel({// own black) instead of being stretched to fill it.<div className="relative"><video+ ref={playerRef}src={finalVideo.src}controlsplaysInline@@ -64,10 +69,13 @@ export default function RenderStatusPanel({/><buttontype="button"- onClick={() => onOpenPreview?.(`video:${renderHistoryId}`)}+ onClick={() => {+ playerRef.current?.pause();+ onOpenPreview?.(`video:${renderHistoryId}`);+ }}aria-label="View final video full size"title="View final video full size"- className="absolute top-2 right-2 min-h-[44px] min-w-[44px] sm:min-h-0 sm:min-w-0 p-1.5 flex items-center justify-center rounded bg-black/50 text-white hover:bg-black/80 focus:outline-none focus:ring-2 focus:ring-port-accent"+ className="always-dark absolute top-2 right-2 min-h-[44px] min-w-[44px] sm:min-h-0 sm:min-w-0 p-1.5 flex items-center justify-center rounded bg-black/50 text-white hover:bg-black/80 focus:outline-none focus:ring-2 focus:ring-port-accent"><Maximize2 className="w-3.5 h-3.5" /></button>diff --git a/client/src/components/musicVideo/SceneCard.jsx b/client/src/components/musicVideo/SceneCard.jsxindex 3d1258baea..ef0a8acd08 100644--- a/client/src/components/musicVideo/SceneCard.jsx+++ b/client/src/components/musicVideo/SceneCard.jsx@@ -81,8 +81,8 @@ export default function SceneCard({<buttontype="button"onClick={() => onOpenPreview?.(`image:${scene.referenceImageId}`)}- aria-label="View reference frame full size"- title="View reference frame full size"+ aria-label={`View scene ${index + 1} reference frame full size`}+ title={`View scene ${index + 1} reference frame full size`}className="shrink-0 rounded border border-port-border overflow-hidden focus:outline-none focus:ring-2 focus:ring-port-accent"><img@@ -118,9 +118,9 @@ export default function SceneCard({<buttontype="button"onClick={() => onOpenPreview?.(`video:${scene.videoHistoryId}`)}- aria-label="View clip full size"- title="View clip full size"- className="absolute top-1 right-1 min-h-[44px] min-w-[44px] sm:min-h-0 sm:min-w-0 p-1 flex items-center justify-center rounded bg-black/50 text-white hover:bg-black/80 focus:outline-none focus:ring-2 focus:ring-port-accent"+ aria-label={`View scene ${index + 1} clip full size`}+ title={`View scene ${index + 1} clip full size`}+ className="always-dark absolute top-1 right-1 min-h-[44px] min-w-[44px] sm:min-h-0 sm:min-w-0 p-1 flex items-center justify-center rounded bg-black/50 text-white hover:bg-black/80 focus:outline-none focus:ring-2 focus:ring-port-accent"><Maximize2 className="w-3 h-3" /></button>diff --git a/client/src/pages/MusicVideo.jsx b/client/src/pages/MusicVideo.jsxindex d9d46844cd..95879f36d1 100644--- a/client/src/pages/MusicVideo.jsx+++ b/client/src/pages/MusicVideo.jsx@@ -407,7 +407,11 @@ export default function MusicVideo() {});}}- return items;+ // Scenes can reuse the same frame/clip (ProjectToolbar surfaces a+ // "Repetition: N unique frames" badge). Dedupe by key so prev/next and+ // openPreview's .find() land on a single item rather than the first of+ // several identical keys with different prompts.+ return [...new Map(items.map((i) => [i.key, i])).values()];}, [selected, finalVideo.src]);const [preview, setPreview] = usePreviewRoute(previewItems);const openPreview = useCallback((key) => {diff --git a/client/src/pages/MusicVideo.test.jsx b/client/src/pages/MusicVideo.test.jsxindex 3ed02914d3..c79135d896 100644--- a/client/src/pages/MusicVideo.test.jsx+++ b/client/src/pages/MusicVideo.test.jsx@@ -774,7 +774,7 @@ describe('MusicVideo media lightbox (#3718)', () => {it('opens the lightbox from a reference-frame thumbnail click', async () => {await openProject(PROJECT_WITH_CLIP);- fireEvent.click(await screen.findByRole('button', { name: 'View reference frame full size' }));+ fireEvent.click(await screen.findByRole('button', { name: 'View scene 1 reference frame full size' }));const dialog = await screen.findByRole('dialog', { name: /Media viewer/i });expect(dialog).toBeTruthy();// Image uses previewUrl (/data/images/<id>); img may be MediaImage-wrapped.@@ -789,7 +789,7 @@ describe('MusicVideo media lightbox (#3718)', () => {expect(inlineVideo).toBeTruthy();expect(inlineVideo.hasAttribute('controls')).toBe(true);- fireEvent.click(await screen.findByRole('button', { name: 'View clip full size' }));+ fireEvent.click(await screen.findByRole('button', { name: 'View scene 1 clip full size' }));const dialog = await screen.findByRole('dialog', { name: /Media viewer/i });const lightboxVideo = dialog.querySelector('video');expect(lightboxVideo?.getAttribute('src')).toBe('/data/videos/h1.mp4');