feat(app): route dashboard separately from home; add to crumbs map
The launcher (Home) and the operations view (Dashboard) are now distinct routes. Home is the landing page; Dashboard is reached from the sidebar or from the launcher's "Open dashboard" tile.
This commit is contained in:
parent
740ab31f8c
commit
74fc8323f0
1 changed files with 5 additions and 7 deletions
|
|
@ -37,8 +37,7 @@ function App() {
|
||||||
{ label: openProject.name },
|
{ label: openProject.name },
|
||||||
];
|
];
|
||||||
const labels = {
|
const labels = {
|
||||||
home: ['Dragonflight'],
|
home: ['Home'], dashboard: ['Dashboard'],
|
||||||
dashboard: ['Dashboard'],
|
|
||||||
library: ['Library'], projects: ['Projects'],
|
library: ['Library'], projects: ['Projects'],
|
||||||
upload: ['Ingest', 'Upload'], recorders: ['Ingest', 'Recorders'],
|
upload: ['Ingest', 'Upload'], recorders: ['Ingest', 'Recorders'],
|
||||||
schedule: ['Ingest', 'Schedule'],
|
schedule: ['Ingest', 'Schedule'],
|
||||||
|
|
@ -63,10 +62,6 @@ function App() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Home is the launcher and renders edge-to-edge — skip the topbar so the
|
|
||||||
// hero logo + tiles get the full canvas.
|
|
||||||
const isLauncher = route === 'home' && !openAsset;
|
|
||||||
|
|
||||||
let content;
|
let content;
|
||||||
if (openAsset) {
|
if (openAsset) {
|
||||||
content = <AssetDetail asset={openAsset} onClose={() => setOpenAsset(null)} />;
|
content = <AssetDetail asset={openAsset} onClose={() => setOpenAsset(null)} />;
|
||||||
|
|
@ -92,11 +87,14 @@ function App() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Home (launcher) suppresses the topbar — it's a full-bleed landing page.
|
||||||
|
const hideTopbar = !openAsset && route === 'home';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="app" data-density="comfortable" data-grid-size="md" data-sidebar="expanded">
|
<div className="app" data-density="comfortable" data-grid-size="md" data-sidebar="expanded">
|
||||||
<Sidebar active={openAsset ? 'library' : route} onNavigate={navigate} />
|
<Sidebar active={openAsset ? 'library' : route} onNavigate={navigate} />
|
||||||
<div className="main">
|
<div className="main">
|
||||||
{!openAsset && !isLauncher && (
|
{!openAsset && !hideTopbar && (
|
||||||
<Topbar
|
<Topbar
|
||||||
crumbs={crumbs}
|
crumbs={crumbs}
|
||||||
onNavigate={navigate}
|
onNavigate={navigate}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue