Some checks failed
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Failing after 1m46s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Ersetzt die Vorhaben-Tab-Navigation durch Cockpit/Ausführen/Planen/Kontrolle/Team, Deep Links für APs/Projekte/Gates und Programm-Scope im Header. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
601 B
JavaScript
23 lines
601 B
JavaScript
import { Navigate, Outlet } from 'react-router-dom'
|
|
import { ModeShell } from '../../components/ModeShell.jsx'
|
|
import { ModeSubNav } from '../../components/ModeSubNav.jsx'
|
|
|
|
const CONTROL_NAV = [
|
|
{ to: '/control/status', label: 'Steuerung', end: true },
|
|
{ to: '/control/journey', label: 'Journey', end: true },
|
|
]
|
|
|
|
export function ControlLayout() {
|
|
return (
|
|
<div className="app-page">
|
|
<ModeShell modeKey="control" />
|
|
<ModeSubNav items={CONTROL_NAV} />
|
|
<Outlet />
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export function ControlIndexRedirect() {
|
|
return <Navigate to="/control/status" replace />
|
|
}
|