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

Promote Music Video and 3D to top-level Create pages

[._.]/ Adam Eivyaeaf4e40b7c6
diff --git a/client/src/App.jsx b/client/src/App.jsx
index edd85e4960..c8e03cbc51 100644
--- a/client/src/App.jsx
+++ b/client/src/App.jsx
@@ -172,8 +172,9 @@ function UniverseRouteRedirect({ fromPrefix, canon = false }) {
// Rebase a legacy route prefix onto its current one, preserving the trailing
// path (ids, tabs), query string, and hash. Every page promoted out of the
// Media Gen tab shell into its own Create page needs exactly this — Creative
-// Director (`/media/creative-director/:id/:tab`) and Sprites
-// (`/media/sprites/:id`) so far — so it's parameterized rather than copied per
+// Director (`/media/creative-director/:id/:tab`), Sprites
+// (`/media/sprites/:id`), Music Video (`/media/music-video/:projectId`), and
+// 3D (`/media/3d/:id`) so far — so it's parameterized rather than copied per
// move. `from` must be an anchored regex so it can only match the prefix.
function PrefixRedirect({ from, to }) {
const { pathname, search, hash } = useLocation();
@@ -183,6 +184,8 @@ function PrefixRedirect({ from, to }) {
const MEDIA_CREATIVE_DIRECTOR_PREFIX = /^\/media\/creative-director/;
const MEDIA_SPRITES_PREFIX = /^\/media\/sprites/;
+const MEDIA_MUSIC_VIDEO_PREFIX = /^\/media\/music-video/;
+const MEDIA_3D_PREFIX = /^\/media\/3d/;
// Normalize a tab-less /creative-director/:id URL to its overview tab while
// preserving any query string + hash. A bare `<Navigate to="overview">` would
@@ -334,8 +337,11 @@ export default function App() {
<Route path="creative-director" element={<RedirectWithSearch to="/creative-director" />} />
<Route path="creative-director/:id" element={<PrefixRedirect from={MEDIA_CREATIVE_DIRECTOR_PREFIX} to="/creative-director" />} />
<Route path="creative-director/:id/:tab" element={<PrefixRedirect from={MEDIA_CREATIVE_DIRECTOR_PREFIX} to="/creative-director" />} />
- <Route path="music-video" element={<MusicVideo />} />
- <Route path="music-video/:projectId" element={<MusicVideo />} />
+ {/* Music Video moved to the top-level /music-video route (Create
+ sidebar link). These redirects keep legacy /media/music-video
+ bookmarks + in-app deep-links working. */}
+ <Route path="music-video" element={<PrefixRedirect from={MEDIA_MUSIC_VIDEO_PREFIX} to="/music-video" />} />
+ <Route path="music-video/:projectId" element={<PrefixRedirect from={MEDIA_MUSIC_VIDEO_PREFIX} to="/music-video" />} />
{/* Sprites live at /sprites (Create sidebar link). These redirects
keep legacy /media/sprites bookmarks working after the MediaGen
tab was removed. */}
@@ -346,8 +352,11 @@ export default function App() {
<Route path="models" element={<MediaModels />} />
<Route path="threejs" element={<ThreejsModels />} />
<Route path="threejs/:id" element={<ThreejsModelDetail />} />
- <Route path="3d" element={<Media3D />} />
- <Route path="3d/:id" element={<Media3DDetail />} />
+ {/* 3D moved to the top-level /3d route (Create sidebar link). These
+ redirects keep legacy /media/3d bookmarks + in-app deep-links
+ working. */}
+ <Route path="3d" element={<PrefixRedirect from={MEDIA_3D_PREFIX} to="/3d" />} />
+ <Route path="3d/:id" element={<PrefixRedirect from={MEDIA_3D_PREFIX} to="/3d" />} />
<Route path="loras" element={<Loras />} />
<Route path="training" element={<LoraTraining />} />
<Route path="training/:datasetId" element={<LoraDatasetDetail />} />
@@ -371,6 +380,15 @@ export default function App() {
<Route path="creative-director" element={<CreativeDirector />} />
<Route path="creative-director/:id" element={<CreativeDirectorOverviewRedirect />} />
<Route path="creative-director/:id/:tab" element={<CreativeDirectorDetail />} />
+ {/* Music Video — a top-level Create page (moved out of the Media Gen
+ tabs). The project id is the URL, per the ID-based deep-linking
+ convention. */}
+ <Route path="music-video" element={<MusicVideo />} />
+ <Route path="music-video/:projectId" element={<MusicVideo />} />
+ {/* 3D — a top-level Create page (moved out of the Media Gen tabs). The
+ record id is the URL, per the ID-based deep-linking convention. */}
+ <Route path="3d" element={<Media3D />} />
+ <Route path="3d/:id" element={<Media3DDetail />} />
{/* Index (list) hosts the create drawer at /new; `:id` is now a routed
detail page (editable config + render history), not a sidebar edit
drawer. React Router ranks the static `new` segment above `:id`, so
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index 64768e8506..26dc8d87ab 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -220,7 +220,7 @@ const navItems = [
icon: Sparkles,
defaultTo: '/media',
children: [
- { to: '/media/3d', label: '3D', icon: Boxes },
+ { to: '/3d', label: '3D', icon: Boxes },
{ to: '/authors', label: 'Authors', icon: FilePen },
{ to: '/catalog', label: 'Catalog', icon: Sparkles },
{ to: '/creative-commission', label: 'Creative Commissions', icon: CalendarClock },
@@ -230,7 +230,7 @@ const navItems = [
{ to: '/media', label: 'Media Gen', icon: Layers },
{ to: '/mood-boards', label: 'Mood Boards', icon: Palette },
{ to: '/music', label: 'Music', icon: Mic },
- { to: '/media/music-video', label: 'Music Video', icon: Music },
+ { to: '/music-video', label: 'Music Video', icon: Music },
{ to: '/rounds', label: 'Rounds', icon: Music },
{ to: '/pipeline', label: 'Series Pipeline', icon: WorkflowIcon, dynamic: 'pipelineSeries' },
{ to: '/sharing', label: 'Sharing', icon: Share2 },
diff --git a/client/src/hooks/useMediaPreviewActions.js b/client/src/hooks/useMediaPreviewActions.js
index eeeac11870..efe4b4bc47 100644
--- a/client/src/hooks/useMediaPreviewActions.js
+++ b/client/src/hooks/useMediaPreviewActions.js
@@ -127,12 +127,12 @@ export default function useMediaPreviewActions({ onCleanComplete = null } = {})
navigate(`/media/video?${params}`);
}, [navigate]);
- // Send to 3D: open the image-to-3D workspace (/media/3d) with this image as the
+ // Send to 3D: open the image-to-3D workspace (/3d) with this image as the
// source. Images only — the 3D page resolves `?image=<filename>` against the
// gallery (URL is the source of truth for the staged source image).
const handleSendTo3d = useCallback((item) => {
if (!item?.filename || item.kind === 'video') return;
- navigate(`/media/3d?image=${encodeURIComponent(item.filename)}`);
+ navigate(`/3d?image=${encodeURIComponent(item.filename)}`);
}, [navigate]);
// Continue: extract the LAST frame of a video clip and seed Video Gen
diff --git a/client/src/pages/ImageGen.jsx b/client/src/pages/ImageGen.jsx
index 5021c60be6..61a154f150 100644
--- a/client/src/pages/ImageGen.jsx
+++ b/client/src/pages/ImageGen.jsx
@@ -1035,11 +1035,11 @@ export default function ImageGen() {
setInitImageStrength(0.4);
};
- // "Send to 3D" opens the image-to-3D workspace (/media/3d) with this render as
+ // "Send to 3D" opens the image-to-3D workspace (/3d) with this render as
// the source image — deep-linked via ?image= (URL is the source of truth).
const handleSendTo3d = (img) => {
if (!img?.filename) return;
- navigate(`/media/3d?image=${encodeURIComponent(img.filename)}`);
+ navigate(`/3d?image=${encodeURIComponent(img.filename)}`);
};
const notConnected = status && status.connected === false;
diff --git a/client/src/pages/Media3D.jsx b/client/src/pages/Media3D.jsx
index f49c8de1ac..ff4f01f6e2 100644
--- a/client/src/pages/Media3D.jsx
+++ b/client/src/pages/Media3D.jsx
@@ -200,7 +200,7 @@ export default function Media3D() {
const [genPercent, setGenPercent] = useState(null);
const [modelId, setModelId] = useState(null);
// Existing image-to-3D records (newest-first) so the page doubles as a library:
- // each links to its `/media/3d/:id` detail view.
+ // each links to its `/3d/:id` detail view.
const [records, setRecords] = useState([]);
// Central HF-token status (stored / env / cli) for the gated-model notice. `present`
// is tri-state — see useHfTokenStatus; `null` means unknown, not absent.
@@ -249,7 +249,7 @@ export default function Media3D() {
|| targets[0];
}, [targets, targetFromRoute]);
- // Keep the URL honest: if a bare `/media/3d` resolved a default target, reflect
+ // Keep the URL honest: if a bare `/3d` resolved a default target, reflect
// it so the selection is shareable/reload-safe (URL as source of truth). The
// functional updater reads the freshest params, so this effect depends only on
// the resolved target — not on every unrelated `?image=`/`?glb=` change.
@@ -435,7 +435,7 @@ export default function Media3D() {
</section>
)}
- {/* Library of existing renders — each opens its `/media/3d/:id` detail
+ {/* Library of existing renders — each opens its `/3d/:id` detail
view (GLB viewer + download). URL is the source of truth for what's
open, so every card is a deep link. */}
{records.length > 0 && (
@@ -447,7 +447,7 @@ export default function Media3D() {
return (
<Link
key={record.id}
- to={`/media/3d/${record.id}`}
+ to={`/3d/${record.id}`}
className="group overflow-hidden rounded-lg border border-port-border bg-port-card hover:border-port-accent"
>
<div className="relative aspect-square bg-port-bg">
diff --git a/client/src/pages/Media3D.test.jsx b/client/src/pages/Media3D.test.jsx
index 4eb0b5eccf..ecb78ef2b3 100644
--- a/client/src/pages/Media3D.test.jsx
+++ b/client/src/pages/Media3D.test.jsx
@@ -66,7 +66,7 @@ function LocationProbe() {
// Media3D reads the source image / target / glb from the URL, so every render
// needs a router. The path is irrelevant to useSearchParams — only the query is.
-function renderAt(entry = '/media/3d', extra = null) {
+function renderAt(entry = '/3d', extra = null) {
return render(
<MemoryRouter initialEntries={[entry]}>
<Media3D />
@@ -178,7 +178,7 @@ describe('Media3D — generation workspace', () => {
});
it('shows the source image from the ?image= deep link', async () => {
- renderAt('/media/3d?image=example-robot.png');
+ renderAt('/3d?image=example-robot.png');
expect(await screen.findByAltText('Selected source image')).toBeInTheDocument();
expect(screen.queryByText(/Pick a source image to continue/i)).not.toBeInTheDocument();
});
@@ -188,7 +188,7 @@ describe('Media3D — generation workspace', () => {
getImageTo3dModel.mockResolvedValue({
id: 'm1', status: 'ready', assetPath: '/data/image-to-3d/m1/model.glb', runs: [{ percent: 100 }],
});
- renderAt('/media/3d?image=example-robot.png');
+ renderAt('/3d?image=example-robot.png');
const btn = await screen.findByRole('button', { name: /Generate 3D/i });
expect(btn).toBeEnabled();
fireEvent.click(btn);
@@ -205,7 +205,7 @@ describe('Media3D — generation workspace', () => {
id: 'm2', status: 'failed', assetPath: null,
error: 'TRELLIS.2 could not download a gated model dependency from Hugging Face. Accept the terms … huggingface-cli login',
});
- renderAt('/media/3d?image=example-robot.png');
+ renderAt('/3d?image=example-robot.png');
fireEvent.click(await screen.findByRole('button', { name: /Generate 3D/i }));
expect(await screen.findByText(/could not download a gated model dependency from Hugging Face/i)).toBeInTheDocument();
// No mesh preview on failure.
@@ -213,7 +213,7 @@ describe('Media3D — generation workspace', () => {
});
it('offers inline token entry, not terminal instructions, when no HF token is stored', async () => {
- renderAt('/media/3d?image=example-robot.png');
+ renderAt('/3d?image=example-robot.png');
expect(await screen.findByText(/needs a free Hugging Face account/i)).toBeInTheDocument();
// The fix for #3032: a paste-and-save field, not a "run huggingface-cli login" nag.
expect(screen.getByPlaceholderText('hf_…')).toBeInTheDocument();
@@ -226,7 +226,7 @@ describe('Media3D — generation workspace', () => {
it('renders no gated-access notice when the selected target omits gatedRepos', async () => {
getImageTo3dTargets.mockResolvedValue({ targets: [target({ gatedRepos: undefined, installed: true })] });
- renderAt('/media/3d?image=example-robot.png');
+ renderAt('/3d?image=example-robot.png');
await screen.findByRole('button', { name: /Generate 3D/i });
await waitFor(() => expect(getHfTokenStatus).toHaveBeenCalled());
expect(screen.queryByPlaceholderText('hf_…')).toBeNull();
@@ -238,7 +238,7 @@ describe('Media3D — generation workspace', () => {
// The user's real complaint: an HF_TOKEN set for imagegen/local-LLM downloads was
// ignored here, so the page kept demanding a terminal login.
getHfTokenStatus.mockResolvedValue({ hfTokenPresent: true, source: 'env' });
- renderAt('/media/3d?image=example-robot.png');
+ renderAt('/3d?image=example-robot.png');
expect(await screen.findByText(/Hugging Face token configured/i)).toBeInTheDocument();
expect(screen.getByText(/HF_TOKEN environment variable/i)).toBeInTheDocument();
expect(screen.queryByPlaceholderText('hf_…')).toBeNull();
@@ -251,7 +251,7 @@ describe('Media3D — generation workspace', () => {
// tells the user to add a token on THIS page — so the form must stay reachable
// when one is already configured, or that instruction can't be followed here.
getHfTokenStatus.mockResolvedValue({ hfTokenPresent: true, source: 'stored' });
- renderAt('/media/3d?image=example-robot.png');
+ renderAt('/3d?image=example-robot.png');
fireEvent.click(await screen.findByRole('button', { name: /use a different token/i }));
expect(screen.getByPlaceholderText('hf_…')).toBeInTheDocument();
});
@@ -260,14 +260,14 @@ describe('Media3D — generation workspace', () => {
// Absent-vs-failed: a pending/failed status must not flash "add a token" at a user
// who has one (nor claim one is configured).
getHfTokenStatus.mockRejectedValue(new Error('offline'));
- renderAt('/media/3d?image=example-robot.png');
+ renderAt('/3d?image=example-robot.png');
await screen.findByRole('button', { name: /Generate 3D/i });
expect(screen.queryByPlaceholderText('hf_…')).toBeNull();
expect(screen.queryByText(/Hugging Face token configured/i)).toBeNull();
});
it('keeps Generate disabled and explains why when no image is picked', async () => {
- renderAt('/media/3d');
+ renderAt('/3d');
const btn = await screen.findByRole('button', { name: /Generate 3D/i });
expect(btn).toBeDisabled();
expect(screen.getByText(/Pick a source image to continue/i)).toBeInTheDocument();
@@ -275,14 +275,14 @@ describe('Media3D — generation workspace', () => {
it('gates Generate when the chosen target still needs installing', async () => {
getImageTo3dTargets.mockResolvedValue({ targets: [target({ installed: false })] });
- renderAt('/media/3d?image=example-robot.png');
+ renderAt('/3d?image=example-robot.png');
const btn = await screen.findByRole('button', { name: /Generate 3D/i });
expect(btn).toBeDisabled();
expect(screen.getByText(/Install TRELLIS\.2 below before generating/i)).toBeInTheDocument();
});
it('writes a picked image into the shareable URL', async () => {
- renderAt('/media/3d', <LocationProbe />);
+ renderAt('/3d', <LocationProbe />);
fireEvent.click(await screen.findByRole('button', { name: /Pick source image/i }));
fireEvent.click(screen.getByRole('button', { name: 'Pick hero' }));
await waitFor(() => {
@@ -291,14 +291,14 @@ describe('Media3D — generation workspace', () => {
});
it('reflects the resolved default target back into the URL', async () => {
- renderAt('/media/3d', <LocationProbe />);
+ renderAt('/3d', <LocationProbe />);
await waitFor(() => {
expect(screen.getByLabelText('Current query')).toHaveTextContent('target=trellis2');
});
});
it('renders the mesh preview from a ?glb= deep link', async () => {
- renderAt('/media/3d?image=example-robot.png&glb=%2Fdata%2Fmodels3d%2Frobot.glb');
+ renderAt('/3d?image=example-robot.png&glb=%2Fdata%2Fmodels3d%2Frobot.glb');
expect(await screen.findByTestId('glb-viewer')).toHaveTextContent('/data/models3d/robot.glb');
});
@@ -308,6 +308,6 @@ describe('Media3D — generation workspace', () => {
]);
renderAt();
const link = await screen.findByRole('link', { name: /Example Beacon/i });
- expect(link.getAttribute('href')).toBe('/media/3d/image3d-abc');
+ expect(link.getAttribute('href')).toBe('/3d/image3d-abc');
});
});
diff --git a/client/src/pages/Media3DDetail.jsx b/client/src/pages/Media3DDetail.jsx
index c8784f30f8..00e2ca0c96 100644
--- a/client/src/pages/Media3DDetail.jsx
+++ b/client/src/pages/Media3DDetail.jsx
@@ -14,7 +14,7 @@ import toast from '../components/ui/Toast';
// Poll cadence while a render is in flight (a real TRELLIS.2 render is multi-minute).
const POLL_INTERVAL_MS = 2500;
-// Per-record detail view for an image-to-3D model (`/media/3d/:id`). The record
+// Per-record detail view for an image-to-3D model (`/3d/:id`). The record
// id is the URL, so a finished mesh is a shareable, reload-safe deep link. Mounts
// the reusable GlbViewer once the render lands (status `ready` + `assetPath`),
// with a Download .glb, and offers re-render / delete. Polls while generating.
@@ -40,7 +40,7 @@ export default function Media3DDetail() {
}, [id, mountedRef]);
// Re-fetch from scratch whenever the routed id changes — reset loading/notFound
- // so switching between two `/media/3d/:id` records shows a spinner instead of
+ // so switching between two `/3d/:id` records shows a spinner instead of
// the previous record's content (and doesn't carry a stale not-found flag).
useEffect(() => {
setLoading(true); setNotFound(false);
@@ -73,7 +73,7 @@ export default function Media3DDetail() {
toast.error(err?.message || 'Delete failed');
return false;
});
- if (ok) navigate('/media/3d');
+ if (ok) navigate('/3d');
}, [id, navigate]);
if (loading) {
@@ -88,7 +88,7 @@ export default function Media3DDetail() {
return (
<div className="mx-auto max-w-4xl py-16 text-center">
<p className="text-sm text-gray-400">This 3D model no longer exists.</p>
- <Link to="/media/3d" className="mt-3 inline-flex items-center gap-1.5 text-sm text-port-accent hover:underline">
+ <Link to="/3d" className="mt-3 inline-flex items-center gap-1.5 text-sm text-port-accent hover:underline">
<ArrowLeft className="h-4 w-4" /> Back to 3D
</Link>
</div>
@@ -108,7 +108,7 @@ export default function Media3DDetail() {
return (
<div className="mx-auto max-w-4xl">
<header className="mb-4">
- <Link to="/media/3d" className="inline-flex items-center gap-1.5 text-xs text-gray-400 hover:text-white">
+ <Link to="/3d" className="inline-flex items-center gap-1.5 text-xs text-gray-400 hover:text-white">
<ArrowLeft className="h-3.5 w-3.5" /> Back to 3D
</Link>
<div className="mt-2 flex flex-wrap items-center justify-between gap-3">
diff --git a/client/src/pages/Media3DDetail.test.jsx b/client/src/pages/Media3DDetail.test.jsx
index 7218da1c08..4dac01dd9e 100644
--- a/client/src/pages/Media3DDetail.test.jsx
+++ b/client/src/pages/Media3DDetail.test.jsx
@@ -36,10 +36,10 @@ const record = (over = {}) => ({
function renderAt(id = 'image3d-1') {
return render(
- <MemoryRouter initialEntries={[`/media/3d/${id}`]}>
+ <MemoryRouter initialEntries={[`/3d/${id}`]}>
<Routes>
- <Route path="/media/3d" element={<div>3D index</div>} />
- <Route path="/media/3d/:id" element={<Media3DDetail />} />
+ <Route path="/3d" element={<div>3D index</div>} />
+ <Route path="/3d/:id" element={<Media3DDetail />} />
</Routes>
</MemoryRouter>,
);
diff --git a/client/src/pages/MediaGen.jsx b/client/src/pages/MediaGen.jsx
index 86d5a2fd6c..24d3f5632a 100644
--- a/client/src/pages/MediaGen.jsx
+++ b/client/src/pages/MediaGen.jsx
@@ -1,5 +1,5 @@
import { useNavigate, useLocation, Outlet } from 'react-router-dom';
-import { Layers, Image as ImageIcon, Film, History, HardDrive, Scissors, FolderOpen, Sparkles, GraduationCap, Music, Box } from 'lucide-react';
+import { Layers, Image as ImageIcon, Film, History, HardDrive, Scissors, FolderOpen, Sparkles, GraduationCap, Box } from 'lucide-react';
import TabPills from '../components/ui/TabPills';
const TABS = [
@@ -7,7 +7,6 @@ const TABS = [
{ id: 'video', label: 'Video', icon: Film },
{ id: 'threejs', label: 'Three.js', icon: Box },
{ id: 'timeline', label: 'Timeline', icon: Scissors },
- { id: 'music-video', label: 'Music Video', icon: Music },
{ id: 'history', label: 'History', icon: History },
{ id: 'collections', label: 'Collections', icon: FolderOpen },
{ id: 'loras', label: 'LoRAs', icon: Sparkles },
diff --git a/client/src/pages/MusicVideo.jsx b/client/src/pages/MusicVideo.jsx
index f973c0e2fd..58484001db 100644
--- a/client/src/pages/MusicVideo.jsx
+++ b/client/src/pages/MusicVideo.jsx
@@ -96,7 +96,7 @@ function YoutubeImportControls({ id, url, onUrlChange, job, onStart, compact = f
export default function MusicVideo() {
// Deep-linkable project selection: the selected project lives in the URL
- // (/media/music-video/:projectId) rather than local state, so a project's
+ // (/music-video/:projectId) rather than local state, so a project's
// scene board is directly shareable/bookmarkable and reachable from the
// media job-completion hooks. selectProject() navigates; the browser URL is
// the single source of truth for "which project is open".
@@ -153,7 +153,7 @@ export default function MusicVideo() {
toast.error('Finish or cancel the in-progress YouTube import before switching projects');
return;
}
- navigate(id ? `/media/music-video/${id}` : '/media/music-video');
+ navigate(id ? `/music-video/${id}` : '/music-video');
};
// Drop the binding once the import settles (or is cancelled) so the backstop
// below stops guarding a project the user is free to leave again.
@@ -170,7 +170,7 @@ export default function MusicVideo() {
if (!ytImportEdit.active || !ytEditProjectId) return;
if (routeProjectId !== ytEditProjectId) {
toast.error('Finish or cancel the in-progress YouTube import before switching projects');
- navigate(`/media/music-video/${ytEditProjectId}`, { replace: true });
+ navigate(`/music-video/${ytEditProjectId}`, { replace: true });
}
}, [routeProjectId, ytImportEdit.active, ytEditProjectId, navigate]);
// Merge ONLY a scene's referenceImageId via a functional update so a render
@@ -265,7 +265,7 @@ export default function MusicVideo() {
deleteMusicVideoProject(id, { silent: true })
.then(() => {
setProjects((prev) => prev.filter((p) => p.id !== id));
- if (selectedId === id) navigate('/media/music-video');
+ if (selectedId === id) navigate('/music-video');
})
.catch((err) => toast.error(err?.message || 'Failed to delete project'));
};
@@ -706,7 +706,7 @@ export default function MusicVideo() {
{!selected && !loading && routeProjectId && (
<p className="text-sm text-port-text-muted">
Project not found — it may have been deleted.{' '}
- <button onClick={() => navigate('/media/music-video')} className="text-port-accent underline">Back to projects</button>
+ <button onClick={() => navigate('/music-video')} className="text-port-accent underline">Back to projects</button>
</p>
)}
{!selected && (loading || !routeProjectId) && <p className="text-sm text-port-text-muted">Select or create a project to open its scene board.</p>}
diff --git a/client/src/pages/MusicVideo.test.jsx b/client/src/pages/MusicVideo.test.jsx
index 9bf2dd5baa..34306e7cda 100644
--- a/client/src/pages/MusicVideo.test.jsx
+++ b/client/src/pages/MusicVideo.test.jsx
@@ -89,16 +89,16 @@ const PROJECT_ANALYZED = {
};
// The page now selects the open project via the route param
-// (/media/music-video/:projectId), so tests render it inside a router that
+// (/music-video/:projectId), so tests render it inside a router that
// serves the same component at both the index and the :projectId route —
// clicking a project navigates to its id'd URL, and the component re-reads
// useParams() to open its board (no remount: both routes render the same
// component type, so React preserves the instance across the param change).
const renderMV = () => render(
- <MemoryRouter initialEntries={['/media/music-video']}>
+ <MemoryRouter initialEntries={['/music-video']}>
<Routes>
- <Route path="/media/music-video" element={<MusicVideo />} />
- <Route path="/media/music-video/:projectId" element={<MusicVideo />} />
+ <Route path="/music-video" element={<MusicVideo />} />
+ <Route path="/music-video/:projectId" element={<MusicVideo />} />
</Routes>
</MemoryRouter>,
);
@@ -127,12 +127,12 @@ function NavTo({ to }) {
return <button onClick={() => navigate(to)}>{`go-${to}`}</button>;
}
const renderMVWithNav = (to) => render(
- <MemoryRouter initialEntries={['/media/music-video']}>
+ <MemoryRouter initialEntries={['/music-video']}>
<LocationProbe />
<NavTo to={to} />
<Routes>
- <Route path="/media/music-video" element={<MusicVideo />} />
- <Route path="/media/music-video/:projectId" element={<MusicVideo />} />
+ <Route path="/music-video" element={<MusicVideo />} />
+ <Route path="/music-video/:projectId" element={<MusicVideo />} />
</Routes>
</MemoryRouter>,
);
@@ -420,10 +420,10 @@ describe('MusicVideo YouTube audio import (#1945)', () => {
it('bounces URL-driven navigation (deep link / Back / ⌘K) away from a project with an in-flight import back to it', async () => {
listMusicVideoProjects.mockResolvedValue([PROJECT_NO_CLIP]); // mv-2
- renderMVWithNav('/media/music-video/mv-3');
+ renderMVWithNav('/music-video/mv-3');
// Open mv-2 and start its detail-view import.
fireEvent.click(await screen.findByRole('button', { name: new RegExp(PROJECT_NO_CLIP.name) }));
- await waitFor(() => expect(screen.getByTestId('loc').textContent).toBe('/media/music-video/mv-2'));
+ await waitFor(() => expect(screen.getByTestId('loc').textContent).toBe('/music-video/mv-2'));
const editInput = screen.getAllByPlaceholderText(/Import audio from a YouTube URL/i)
.find((el) => el.id !== 'mv-yt-create');
fireEvent.change(editInput, { target: { value: 'https://youtu.be/xyz' } });
@@ -433,9 +433,9 @@ describe('MusicVideo YouTube audio import (#1945)', () => {
// A router-driven jump to another project (not via the list buttons, so it
// bypasses selectProject's guard) must be bounced back to the import's
// project with the same guard message.
- fireEvent.click(screen.getByRole('button', { name: 'go-/media/music-video/mv-3' }));
+ fireEvent.click(screen.getByRole('button', { name: 'go-/music-video/mv-3' }));
await waitFor(() => expect(toast.error).toHaveBeenCalledWith(expect.stringMatching(/before switching projects/i)));
- await waitFor(() => expect(screen.getByTestId('loc').textContent).toBe('/media/music-video/mv-2'));
+ await waitFor(() => expect(screen.getByTestId('loc').textContent).toBe('/music-video/mv-2'));
});
it('blocks deleting the selected project while its import is in flight', async () => {
diff --git a/client/src/services/apiImageTo3d.js b/client/src/services/apiImageTo3d.js
index 7c4c2b03cd..9307ae4fed 100644
--- a/client/src/services/apiImageTo3d.js
+++ b/client/src/services/apiImageTo3d.js
@@ -1,6 +1,6 @@
import { request } from './apiCore.js';
-// Image-to-3D (the /media/3d page): the selectable targets (TRELLIS.2, …)
+// Image-to-3D (the /3d page): the selectable targets (TRELLIS.2, …)
// annotated with host availability + install status, plus the per-image model
// records that drive create → render → preview → download.
diff --git a/server/index.js b/server/index.js
index 781e207bc6..6e160f425e 100644
--- a/server/index.js
+++ b/server/index.js
@@ -388,7 +388,7 @@ app.use('/data/video-thumbnails', express.static(PATHS.videoThumbnails, ASSET_ST
// Sprite Manager library previews (anchors, strips, atlases) render inline
// via <img src="/data/sprites/<id>/<rel>"> (#2895).
app.use('/data/sprites', express.static(PATHS.sprites, ASSET_STATIC_OPTS));
-// Image-to-3D GLB meshes (#2952) — the /media/3d R3F viewer loads them inline
+// Image-to-3D GLB meshes (#2952) — the /3d R3F viewer loads them inline
// via drei useGLTF from <model.assetPath> (/data/image-to-3d/<id>/model.glb).
app.use('/data/image-to-3d', express.static(PATHS.imageTo3d, ASSET_STATIC_OPTS));
// Voice-over WAVs rendered by the pipeline audio stage — the AudioStage UI
diff --git a/server/lib/navManifest.js b/server/lib/navManifest.js
index 76ad7bd94b..cc594d79eb 100644
--- a/server/lib/navManifest.js
+++ b/server/lib/navManifest.js
@@ -21,7 +21,7 @@ export const NAV_COMMANDS = [
{ id: 'nav.media.collections', path: '/media/collections', label: 'Collections', section: 'Create', aliases: ['collections', 'media-collections', 'stacks', 'projects'], keywords: ['bucket', 'group', 'project', 'album', 'organize'] },
{ id: 'nav.create.creative-director', path: '/creative-director', label: 'Creative Director', section: 'Create', aliases: ['creative-director', 'creative', 'director', 'producer', 'orchestrator', 'long-form', 'episode'], keywords: ['story', 'episode', 'narrative', 'agent', 'auto-video', 'long-form', 'directive', 'production plan', 'plan board', 'orchestrator', 'studio', 'producer'] },
{ id: 'nav.create.creative-commission', path: '/creative-commission', label: 'Creative Commissions', section: 'Create', aliases: ['creative-commission', 'commissions', 'commission', 'creation-engine', 'autonomous-creation', 'standing-brief', 'recurring-brief'], keywords: ['schedule', 'recurring', 'nightly', 'brief', 'autonomous', 'creation engine', 'cron', 'feedback', 'taste', 'standing commission', 'auto-generate'] },
- { id: 'nav.media.music-video', path: '/media/music-video', label: 'Music Video', section: 'Create', aliases: ['music-video', 'musicvideo', 'music video', 'mv', 'sync-to-beat'], keywords: ['music', 'beat', 'sync', 'audio-reactive', 'director', 'scene board', 'tempo', 'choreography'] },
+ { id: 'nav.create.music-video', path: '/music-video', label: 'Music Video', section: 'Create', aliases: ['music-video', 'musicvideo', 'music video', 'mv', 'sync-to-beat'], keywords: ['music', 'beat', 'sync', 'audio-reactive', 'director', 'scene board', 'tempo', 'choreography'] },
{ id: 'nav.create.mood-boards', path: '/mood-boards', label: 'Mood Boards', section: 'Create', aliases: ['mood-boards', 'mood-board', 'moodboard', 'mood', 'inspiration', 'references'], keywords: ['inspiration', 'reference', 'pin', 'visual', 'canvas', 'collect', 'pinboard', 'palette', 'ideas'] },
// Promoted out of the Media Gen tabs to a top-level Create page (#2930).
// The id stays `nav.media.sprites` — it's opaque and stored in palette
@@ -30,7 +30,7 @@ export const NAV_COMMANDS = [
{ id: 'nav.media.timeline', path: '/media/timeline', label: 'Timeline', section: 'Create', aliases: ['timeline', 'video-timeline', 'editor'], keywords: ['edit', 'trim', 'composite', 'stitch', 'cut', 'compose'] },
{ id: 'nav.media.models', path: '/media/models', label: 'Media Models', section: 'Create', aliases: ['media-models', 'image-models', 'video-models', 'huggingface'], keywords: ['hf cache', 'model storage', 'disk', 'add model', 'install model', 'custom model'] },
{ id: 'nav.media.threejs', path: '/media/threejs', label: 'Three.js Models', section: 'Create', aliases: ['threejs', 'three-js', '3d-models', 'image-to-3d', 'img2threejs'], keywords: ['procedural', '3d', 'mesh', 'model', 'gallery', 'webgl', 'preview'] },
- { id: 'nav.media.3d', path: '/media/3d', label: '3D', section: 'Create', aliases: ['3d', 'image-to-mesh', 'mesh', 'trellis', 'neural-3d'], keywords: ['trellis', 'glb', 'mesh', 'photogrammetry', 'neural', 'image to 3d', 'install', 'model', 'pbr'] },
+ { id: 'nav.create.3d', path: '/3d', label: '3D', section: 'Create', aliases: ['3d', 'image-to-mesh', 'mesh', 'trellis', 'neural-3d'], keywords: ['trellis', 'glb', 'mesh', 'photogrammetry', 'neural', 'image to 3d', 'install', 'model', 'pbr'] },
{ id: 'nav.create.authors', path: '/authors', label: 'Authors', section: 'Create', aliases: ['authors', 'author', 'byline', 'author-persona', 'writer-persona'], keywords: ['author', 'byline', 'pen name', 'persona', 'writing style', 'bio', 'headshot', 'cover', 'book author'] },
{ id: 'nav.create.universe-builder', path: '/universes', label: 'Universes', section: 'Create', aliases: ['universes', 'universe', 'universe-builder', 'worldbuilder', 'worldbuild', 'world', 'lore', 'universe-canon', 'canon'], keywords: ['style template', 'sci-fi', 'fantasy', 'concept art', 'batch render', 'variations', 'characters', 'settings', 'objects', 'canon entries', 'list', 'manage'] },
{ id: 'nav.create.importer', path: '/importer', label: 'Importer', section: 'Create', aliases: ['importer', 'import'], keywords: ['paste', 'screenplay', 'novel', 'short story', 'comic script', 'analyze', 'reverse-engineer', 'extract'] },
diff --git a/server/routes/imageTo3d.js b/server/routes/imageTo3d.js
index 2dc257948e..c0b005e709 100644
--- a/server/routes/imageTo3d.js
+++ b/server/routes/imageTo3d.js
@@ -227,7 +227,7 @@ router.get('/trellis2/install', asyncHandler((req, res) => handleTargetInstall('
// ── Image-to-3D model records ─────────────────────────────────────────────
// Namespaced under /models so `/:id` never shadows the `/targets` and
-// `/trellis2/install` routes above. These drive the /media/3d page: create a
+// `/trellis2/install` routes above. These drive the /3d page: create a
// record from a gallery image (which kicks off the local render), poll the
// record for status, re-generate, delete, and download the exported GLB.