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

fix: align music page shell

[._.]/ Adam Eivy19815c5cdf90
diff --git a/.changelog/next/changed-music-page-shell.md b/.changelog/next/changed-music-page-shell.md
new file mode 100644
index 0000000000..3fca972c78
--- /dev/null
+++ b/.changelog/next/changed-music-page-shell.md
@@ -0,0 +1 @@
+- Music now uses the same full-page layout and navigation style as Media Gen.
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index 77c4b724f3..42592f5201 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -556,6 +556,10 @@ const FULL_WIDTH_PATH_PREFIXES = [
];
const FULL_WIDTH_PATH_REGEXES = [
+ // Music mirrors the Media Gen page shell: title bar + tabs over a separately
+ // scrolling body. Keep this boundary-specific so `/music-video` retains its
+ // own route classification.
+ /^\/music(?:\/|$)/,
// Only Game DETAIL workspaces own an internal scroll region; the
// bare /game index stays on the normal padded page layout.
/^\/game\/[^/]+\/?$/,
diff --git a/client/src/components/Layout.test.jsx b/client/src/components/Layout.test.jsx
index 2cfbc9f75f..8e7f3d75ba 100644
--- a/client/src/components/Layout.test.jsx
+++ b/client/src/components/Layout.test.jsx
@@ -267,6 +267,9 @@ describe('Layout — isFullWidthRoute classification', () => {
['/story-builder', false], ['/story-builder/s1/step', true],
['/pipeline', false], ['/pipeline/series/s1', true],
['/local-llm', false], ['/local-llm/m', true],
+ // Music owns the same full-bleed title/tab/body shell as Media Gen, but
+ // its similarly named Music Video route is classified independently.
+ ['/music', true], ['/music/generate', true], ['/music-video', false],
// Game: only a single-segment detail workspace.
['/game', false], ['/game/', false], ['/game/g1', true], ['/game/g1/x', false],
// Apps: detail editor is full-width, but the Add App form is explicitly excluded
diff --git a/client/src/pages/Music.jsx b/client/src/pages/Music.jsx
index a15dc6654e..eed7f4e2a2 100644
--- a/client/src/pages/Music.jsx
+++ b/client/src/pages/Music.jsx
@@ -35,8 +35,8 @@ export default function Music() {
if (!VALID.has(active)) return <Navigate to="/music/generate" replace />;
return (
- <div>
- <div className="flex items-center gap-3 mb-4">
+ <div className="flex h-full flex-col">
+ <div className="flex items-center gap-3 border-b border-port-border p-4">
<MusicIcon className="w-6 h-6 text-port-accent" />
<h1 className="text-2xl font-bold text-white">Music</h1>
</div>
@@ -49,13 +49,14 @@ export default function Music() {
activeTab={active}
onChange={(id) => navigate(`/music/${id}`)}
ariaLabel="Music sections"
- className="mb-6"
/>
- {active === 'generate' && <MusicDesigner />}
- {active === 'artists' && <ArtistsManager />}
- {active === 'albums' && <AlbumsManager />}
- {active === 'tracks' && <TracksManager />}
+ <div className="flex-1 overflow-auto p-4">
+ {active === 'generate' && <MusicDesigner />}
+ {active === 'artists' && <ArtistsManager />}
+ {active === 'albums' && <AlbumsManager />}
+ {active === 'tracks' && <TracksManager />}
+ </div>
</div>
);
}