Add automation routes and enhance header metrics management

- Introduced new routes for Automation Rules and Automation Tasks in the frontend.
- Updated the AppSidebar to include sub-items for Automation navigation.
- Enhanced HeaderMetricsContext to manage credit and page metrics more effectively, ensuring proper merging and clearing of metrics.
- Adjusted AppLayout and TablePageTemplate to maintain credit balance while managing page metrics.
This commit is contained in:
IGNY8 VPS (Salman)
2025-11-17 21:04:46 +00:00
parent aa74fb0d65
commit 0818dfe385
10 changed files with 765 additions and 8 deletions

View File

@@ -60,6 +60,8 @@ const ReferenceIndustries = lazy(() => import("./pages/Reference/Industries"));
// Other Pages - Lazy loaded
const AutomationDashboard = lazy(() => import("./pages/Automation/Dashboard"));
const AutomationRules = lazy(() => import("./pages/Automation/Rules"));
const AutomationTasks = lazy(() => import("./pages/Automation/Tasks"));
// Settings - Lazy loaded
const GeneralSettings = lazy(() => import("./pages/Settings/General"));
@@ -341,6 +343,20 @@ export default function App() {
</ModuleGuard>
</Suspense>
} />
<Route path="/automation/rules" element={
<Suspense fallback={null}>
<ModuleGuard module="automation">
<AutomationRules />
</ModuleGuard>
</Suspense>
} />
<Route path="/automation/tasks" element={
<Suspense fallback={null}>
<ModuleGuard module="automation">
<AutomationTasks />
</ModuleGuard>
</Suspense>
} />
{/* Settings */}
<Route path="/settings" element={