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): use canonical media keys and enlarge expand targets
[._.]/ Adam Eivyc6cc1c840ece
diff --git a/client/src/components/musicVideo/RenderStatusPanel.jsx b/client/src/components/musicVideo/RenderStatusPanel.jsxindex 0240060471..2944b1d48a 100644--- a/client/src/components/musicVideo/RenderStatusPanel.jsx+++ b/client/src/components/musicVideo/RenderStatusPanel.jsx@@ -64,10 +64,10 @@ export default function RenderStatusPanel({/><buttontype="button"- onClick={() => onOpenPreview?.(`mv-render:${renderHistoryId}`)}+ onClick={() => onOpenPreview?.(`video:${renderHistoryId}`)}aria-label="View final video full size"title="View final video full size"- className="absolute top-2 right-2 p-1.5 rounded bg-black/50 text-white hover:bg-black/80 focus:outline-none focus:ring-2 focus:ring-port-accent"+ 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"><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 3a541a1844..3d1258baea 100644--- a/client/src/components/musicVideo/SceneCard.jsx+++ b/client/src/components/musicVideo/SceneCard.jsx@@ -10,9 +10,9 @@ const SCENE_TIME_FIELDS = [['Start', 'startSec'], ['End', 'endSec']];* per-scene reference-frame / clip render controls.** `onOpenPreview(key)` opens the page-level MediaLightbox for a frame- * (`mv-frame:<id>`) or clip (`mv-clip:<id>`). The frame thumb is the whole- * button; the clip keeps native play/pause and uses a corner expand control- * so the open handler never fights the player.+ * (`image:<filename>`) or clip (`video:<historyId>`). The frame thumb is the+ * whole button; the clip keeps native play/pause and uses a corner expand+ * control so the open handler never fights the player.*/export default function SceneCard({scene, index, isLast, generatingFrame, generatingVideo,@@ -80,7 +80,7 @@ export default function SceneCard({{scene.referenceImageId && (<buttontype="button"- onClick={() => onOpenPreview?.(`mv-frame:${scene.referenceImageId}`)}+ onClick={() => onOpenPreview?.(`image:${scene.referenceImageId}`)}aria-label="View reference frame full size"title="View reference frame full size"className="shrink-0 rounded border border-port-border overflow-hidden focus:outline-none focus:ring-2 focus:ring-port-accent"@@ -117,10 +117,10 @@ export default function SceneCard({ScenePreview's open-in-new-tab overlay. */}<buttontype="button"- onClick={() => onOpenPreview?.(`mv-clip:${scene.videoHistoryId}`)}+ onClick={() => onOpenPreview?.(`video:${scene.videoHistoryId}`)}aria-label="View clip full size"title="View clip full size"- className="absolute top-1 right-1 p-1 rounded bg-black/50 text-white hover:bg-black/80 focus:outline-none focus:ring-2 focus:ring-port-accent"+ 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"><Maximize2 className="w-3 h-3" /></button>diff --git a/client/src/pages/MusicVideo.jsx b/client/src/pages/MusicVideo.jsxindex e9246dcfee..d9d46844cd 100644--- a/client/src/pages/MusicVideo.jsx+++ b/client/src/pages/MusicVideo.jsx@@ -365,15 +365,18 @@ export default function MusicVideo() {});// Shared lightbox: final render first (it sits above the board), then each- // scene's frame then clip in board order. Keys are stable deep-link ids- // (`?preview=mv-frame:…` / `mv-clip:…` / `mv-render:…`).+ // scene's frame then clip in board order. Keys use the canonical+ // `image:<filename>` / `video:<historyId>` shape from media/normalize so the+ // lightbox's always-mounted Add-to-collection / Pin-to-moodboard menus get a+ // real `id`/`filename` ref (same vocabulary as Media History's ?preview=).const previewItems = useMemo(() => {if (!selected) return [];const items = [];if (selected.renderHistoryId && finalVideo.src) {items.push({- key: `mv-render:${selected.renderHistoryId}`,+ key: `video:${selected.renderHistoryId}`,kind: 'video',+ id: selected.renderHistoryId,filename: finalVideo.src.split('/').pop() || selected.renderHistoryId,downloadUrl: finalVideo.src,previewUrl: videoPosterForJob(selected.renderHistoryId),@@ -384,7 +387,7 @@ export default function MusicVideo() {if (scene.referenceImageId) {const imgUrl = `/data/images/${scene.referenceImageId}`;items.push({- key: `mv-frame:${scene.referenceImageId}`,+ key: `image:${scene.referenceImageId}`,kind: 'image',filename: scene.referenceImageId,previewUrl: imgUrl,@@ -394,8 +397,9 @@ export default function MusicVideo() {}if (scene.videoHistoryId) {items.push({- key: `mv-clip:${scene.videoHistoryId}`,+ key: `video:${scene.videoHistoryId}`,kind: 'video',+ id: scene.videoHistoryId,filename: `${scene.videoHistoryId}.mp4`,downloadUrl: videoSrcForJob(scene.videoHistoryId),previewUrl: videoPosterForJob(scene.videoHistoryId),diff --git a/client/src/pages/MusicVideo.test.jsx b/client/src/pages/MusicVideo.test.jsxindex 1259762135..3ed02914d3 100644--- a/client/src/pages/MusicVideo.test.jsx+++ b/client/src/pages/MusicVideo.test.jsx@@ -809,9 +809,9 @@ describe('MusicVideo media lightbox (#3718)', () => {it('opens the lightbox from a ?preview= deep link on mount', async () => {listMusicVideoProjects.mockResolvedValue([PROJECT_WITH_CLIP]);- renderMVAt('/music-video/mv-1?preview=mv-frame%3Aimg1');+ renderMVAt('/music-video/mv-1?preview=image%3Aimg1');await screen.findByRole('heading', { level: 2, name: PROJECT_WITH_CLIP.name });const dialog = await screen.findByRole('dialog', { name: /Media viewer/i });- expect(dialog.getAttribute('aria-label')).toMatch(/img1|mv-frame:img1/);+ expect(dialog.getAttribute('aria-label')).toMatch(/img1|image:img1/);});});