Skip to content

Commit 2d43bf5

Browse files
authored
Merge pull request #8 from ClassConnect-org/dev
Dev
2 parents 1c2b960 + 5bd7c98 commit 2d43bf5

27 files changed

+1934
-9
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ dist-ssr
2222
*.njsproj
2323
*.sln
2424
*.sw?
25+
26+
# env
27+
.env

helm-chart/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ env:
1111
PORT: "80"
1212
ENVIRONMENT: "production"
1313
VITE_ADMIN_SERVICE_URL: "http://administration-microservice:8000"
14+
VITE_NOTIF_SERVICE_URL: "http://notifications-microservice:8000"
15+
VITE_USERS_SERVICE_URL: "http://users-microservice:8000"

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"dependencies": {
1313
"@tailwindcss/vite": "^4.1.10",
1414
"axios": "^1.9.0",
15+
"lucide-react": "^0.517.0",
1516
"postcss": "^8.5.5",
1617
"react": "^19.1.0",
1718
"react-dom": "^19.1.0",

src/@types/admin.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,13 @@ interface AdminRequest {
55
password: string;
66
}
77

8-
export type { AdminRequest };
8+
interface Admin {
9+
id: string;
10+
email: string;
11+
}
12+
13+
interface AdminPayload {
14+
email: string;
15+
}
16+
17+
export type { AdminRequest, Admin, AdminPayload };

src/@types/audit_logs.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
interface AuditLog {
2+
id: string;
3+
admin_email: string;
4+
action: string;
5+
resource: string;
6+
resource_id: string;
7+
details: any;
8+
timestamp: string;
9+
};
10+
11+
interface AuditLogPayload {
12+
admin_email: string;
13+
action: string;
14+
resource: string;
15+
resource_id: string;
16+
details: any;
17+
timestamp: string;
18+
};
19+
20+
interface GetLogsParams {
21+
skip?: number;
22+
limit?: number;
23+
date_order?: 'asc' | 'desc';
24+
action?: string;
25+
}
26+
27+
export type { AuditLog, AuditLogPayload, GetLogsParams };

src/@types/notif_logs.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
interface NotifLog {
2+
id: string;
3+
recipients: [string];
4+
event_type: string;
5+
status: string;
6+
event_data: any;
7+
timestamp: string;
8+
};
9+
10+
interface NotifLogPayload {
11+
recipients: [string];
12+
event_type: string;
13+
status: string;
14+
event_data: any;
15+
timestamp: string;
16+
};
17+
18+
interface GetNotifLogsParams {
19+
skip?: number;
20+
limit?: number;
21+
date_order?: 'asc' | 'desc';
22+
notif_status?: string;
23+
notif_type?: string;
24+
}
25+
26+
export type { NotifLog, NotifLogPayload, GetNotifLogsParams };

src/@types/rules.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
interface Rule {
2+
id: string;
3+
title: string;
4+
description: string;
5+
effectiveDate: string; // formato YYYY-MM-DD
6+
conditions: string[];
7+
}
8+
9+
interface RulePayload {
10+
title: string;
11+
description: string;
12+
effectiveDate: string;
13+
conditions: string[];
14+
}
15+
16+
export type { Rule, RulePayload };

src/@types/user_managment.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
interface PlatformUsers {
2+
id: string;
3+
name: string;
4+
email: string;
5+
active: boolean;
6+
blocked_until: string;
7+
};
8+
9+
interface GetUsersParams {
10+
page?: number;
11+
name_contains?: string;
12+
}
13+
14+
export type { PlatformUsers, GetUsersParams };

src/Router.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import { BrowserRouter, Route, Routes } from "react-router-dom"
22
import Home from "./pages/Home"
33
import NotFound from "./pages/NotFound"
4+
import AdminDashboard from "./pages/AdminDashboard"
45

56
export default function Router() {
67
return (
78
<BrowserRouter>
89
<Routes>
910
<Route path="backoffice" element={<Home />} />
11+
<Route path="backoffice/admin/" element={<AdminDashboard />} />
1012
<Route path="*" element={<NotFound />} />
1113
</Routes>
1214
</BrowserRouter>

0 commit comments

Comments
 (0)