mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 06:28:12 +00:00
style: overview revamp
This commit is contained in:
@@ -40,6 +40,8 @@ import InvoiceDetailPage from "./pages/invoices/InvoiceDetailPage";
|
||||
import FinanceHubPage from "./pages/invoices/FinanceHubPage";
|
||||
import MyProfilePage from "./pages/dashboard/MyProfilePage";
|
||||
import OverviewPage from "./pages/dashboard/OverviewPage";
|
||||
import OverviewDomainPage from "./pages/dashboard/OverviewDomainPage";
|
||||
import { OVERVIEW_DOMAINS } from "./components/overview/overview-domains.config";
|
||||
import ReportsIndexRedirect from "./pages/reports/ReportsIndexRedirect";
|
||||
import ReportPage from "./pages/reports/ReportPage";
|
||||
import AuditLogsPage from "./pages/AuditLogsPage";
|
||||
@@ -222,6 +224,21 @@ const App = () => {
|
||||
</RequirePermission>
|
||||
}
|
||||
/>
|
||||
{/* One drill-down route per overview domain — the old per-tab charts,
|
||||
now each on its own page. Single source of truth for the
|
||||
permission gate is OVERVIEW_DOMAINS, shared with the summary
|
||||
page's "View all" links. */}
|
||||
{OVERVIEW_DOMAINS.map((domain) => (
|
||||
<Route
|
||||
key={domain.key}
|
||||
path={`overview/${domain.key}`}
|
||||
element={
|
||||
<RequirePermission permission={domain.permission}>
|
||||
<OverviewDomainPage />
|
||||
</RequirePermission>
|
||||
}
|
||||
/>
|
||||
))}
|
||||
<Route
|
||||
path="reports"
|
||||
element={
|
||||
|
||||
Reference in New Issue
Block a user