feat(nav): hide unfinished Reports section platform-wide
Aegis CI / lint-and-test (push) Has been cancelled
Snyk Security Scan / Python vulnerabilities (backend) (push) Has been cancelled
Snyk Security Scan / npm vulnerabilities (frontend) (push) Has been cancelled
Snyk Security Scan / Docker image vulnerabilities (backend) (push) Has been cancelled
Aegis CI / lint-and-test (push) Has been cancelled
Snyk Security Scan / Python vulnerabilities (backend) (push) Has been cancelled
Snyk Security Scan / npm vulnerabilities (frontend) (push) Has been cancelled
Snyk Security Scan / Docker image vulnerabilities (backend) (push) Has been cancelled
Route and nav link removed (not the page/component files, kept as a base to resume later) — navigating to /reports now falls through to the catch-all redirect to /dashboard for every role, including admin. fix(campaigns): show all non-campaign tests when adding to a campaign The 'Existing Test' picker only ever queried state=draft, but the backend places no restriction on a test's own state when adding it to a campaign (only the campaign's own status matters) — tests already in progress or completed were invisible here for no real reason.
This commit is contained in:
@@ -20,7 +20,9 @@ const TestCatalogPage = React.lazy(() => import("./pages/TestCatalogPage"));
|
||||
const ValidatedTestsPage = React.lazy(() => import("./pages/ValidatedTestsPage"));
|
||||
const ReviewQueuePage = React.lazy(() => import("./pages/ReviewQueuePage"));
|
||||
const ImportRTPage = React.lazy(() => import("./pages/ImportRTPage"));
|
||||
const ReportsPage = React.lazy(() => import("./pages/ReportsPage"));
|
||||
// Reports is unfinished — hidden platform-wide (route + nav link removed
|
||||
// below) until it's ready. Left unimported/unrouted rather than deleted.
|
||||
// const ReportsPage = React.lazy(() => import("./pages/ReportsPage"));
|
||||
const SystemPage = React.lazy(() => import("./pages/SystemPage"));
|
||||
const UsersPage = React.lazy(() => import("./pages/UsersPage"));
|
||||
const AuditLogPage = React.lazy(() => import("./pages/AuditLogPage"));
|
||||
@@ -110,8 +112,7 @@ export default function App() {
|
||||
}
|
||||
/>
|
||||
|
||||
{/* ── Reports ──────────────────────────────────────────── */}
|
||||
<Route path="/reports" element={<Suspense fallback={<LoadingSpinner text="Loading…" />}><ReportsPage /></Suspense>} />
|
||||
{/* ── Reports (hidden — unfinished, see import comment above) ── */}
|
||||
|
||||
{/* ── Settings (all authenticated users) ───────────────── */}
|
||||
<Route path="/settings" element={<Suspense fallback={<LoadingSpinner text="Loading…" />}><SettingsPage /></Suspense>} />
|
||||
|
||||
Reference in New Issue
Block a user