Add diagnostic tools to view database schema and logs

Integrate a new database debug page for administrators to view database schema, table counts, and relationships, accessible via a new route and sidebar item.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/xTmsprA
This commit is contained in:
michaelschal committed 2025-08-12 08:03:34 +00:00
1 parent fb9bb34702
commit 4ee0fdd206
4 files changed
+170 -4

No files matched your search

@@ -13,6 +13,7 @@ import BLReconciliation from "@/pages/BLReconciliation";
import Publicities from "@/pages/Publicities";
import NocoDBConfig from "@/pages/NocoDBConfig";
import DatabaseDebug from "@/pages/DatabaseDebug";
import CustomerOrders from "@/pages/CustomerOrders";
import DlcPage from "@/pages/DlcPage";
@@ -77,6 +78,7 @@ function RouterProduction() {
<Route path="/dlc" component={DlcPage} />
<Route path="/tasks" component={Tasks} />
<Route path="/nocodb-config" component={NocoDBConfig} />
<Route path="/database-debug" component={DatabaseDebug} />
<Route path="/" component={Dashboard} />
<Route component={NotFound} />
</Switch>
+6
View File
@@ -149,6 +149,12 @@ export default function Sidebar() {
icon: Database,
roles: ["admin"]
},
{
path: "/database-debug",
label: "Debug Base de Données",
icon: Database,
roles: ["admin"]
},
];
const hasPermission = (roles: string[]) => {