Skip to content

Commit f0e93f4

Browse files
committed
feat(ui): Complete UI redesign with shadcn/ui components
- Add Tailwind CSS and shadcn/ui component library - Create AppShell with sidebar navigation (fixes #1) - Redesign ModelList with modern Table and refresh - Redesign ComplianceDashboard with Recharts visualizations - Add shadcn components: Button, Card, Badge, Table - Fix TypeScript path aliases for @ imports - Dashboard navigation now working correctly
1 parent 6ba9982 commit f0e93f4

File tree

14 files changed

+2080
-272
lines changed

14 files changed

+2080
-272
lines changed

AIGovHub/frontend/package-lock.json

Lines changed: 1200 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AIGovHub/frontend/package.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,34 @@
1313
"@emotion/react": "^11.14.0",
1414
"@mantine/core": "^8.3.10",
1515
"@mantine/hooks": "^8.3.10",
16+
"@radix-ui/react-dialog": "^1.1.15",
17+
"@radix-ui/react-dropdown-menu": "^2.1.16",
18+
"@radix-ui/react-slot": "^1.2.4",
19+
"@radix-ui/react-tabs": "^1.1.13",
1620
"axios": "^1.13.2",
21+
"class-variance-authority": "^0.7.1",
22+
"clsx": "^2.1.1",
23+
"date-fns": "^4.1.0",
24+
"lucide-react": "^0.562.0",
1725
"react": "^19.2.0",
1826
"react-dom": "^19.2.0",
19-
"react-router-dom": "^7.10.1"
27+
"react-router-dom": "^7.10.1",
28+
"recharts": "^3.6.0",
29+
"tailwind-merge": "^3.4.0"
2030
},
2131
"devDependencies": {
2232
"@eslint/js": "^9.39.1",
2333
"@types/node": "^24.10.1",
2434
"@types/react": "^19.2.5",
2535
"@types/react-dom": "^19.2.3",
2636
"@vitejs/plugin-react": "^5.1.1",
37+
"autoprefixer": "^10.4.23",
2738
"eslint": "^9.39.1",
2839
"eslint-plugin-react-hooks": "^7.0.1",
2940
"eslint-plugin-react-refresh": "^0.4.24",
3041
"globals": "^16.5.0",
42+
"postcss": "^8.5.6",
43+
"tailwindcss": "^4.1.18",
3144
"typescript": "~5.9.3",
3245
"typescript-eslint": "^8.46.4",
3346
"vite": "^7.2.4"

AIGovHub/frontend/src/App.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
import { MantineProvider } from "@mantine/core";
21
import { BrowserRouter, Routes, Route } from "react-router-dom";
3-
import "@mantine/core/styles.css";
42
import { ModelList } from "./components/ModelList";
53
import { ModelForm } from "./components/ModelForm";
64
import { ModelDetail } from "./components/ModelDetail";
75
import { ComplianceDashboard } from "./components/ComplianceDashboard";
86
import { PolicyList } from "./components/PolicyList";
97
import { PolicyViolations } from "./components/PolicyViolations";
8+
import { AppShell } from "./components/layout/AppShell";
109

1110
function App() {
1211
return (
13-
<MantineProvider>
14-
<BrowserRouter>
12+
<BrowserRouter>
13+
<AppShell>
1514
<Routes>
1615
<Route path="/" element={<ModelList />} />
1716
<Route path="/dashboard" element={<ComplianceDashboard />} />
@@ -20,8 +19,8 @@ function App() {
2019
<Route path="/new" element={<ModelForm />} />
2120
<Route path="/models/:id" element={<ModelDetail />} />
2221
</Routes>
23-
</BrowserRouter>
24-
</MantineProvider>
22+
</AppShell>
23+
</BrowserRouter>
2524
);
2625
}
2726

0 commit comments

Comments
 (0)