Round 26: Grade Analytics, School Transport, Peer Assessment, Styling

- Grade Analytics & Reporting View: distribution histogram, student trajectory, class comparison, subject analysis, report generation
- School Transport & Bus Routes View: route management, student assignment, transport schedule, stop management
- Peer Assessment View: creation wizard, rating sliders, results radar chart, self vs peer comparison
- 3 new Prisma models: GradeReport, TransportRoute, TransportStop
- Extended PeerAssessment and StudentTransport models
- Enhanced classes-view with gradient header, glassmorphism cards
- Enhanced attendance-view with attendance rate gauge, status indicators
- Fixed duplicate variable name bugs in school-transport-view.tsx
- 12+ new API route files
- 300+ i18n keys added
- All views verified working in browser
This commit is contained in:
Mustafa Cetin committed 2026-07-30 07:20:05 +00:00
1 parent 3d0d518bb9
commit 7f0810c88f
28 files changed
+10264 -127

No files matched your search

+8
View File
@@ -35,6 +35,9 @@ export async function GET(request: Request) {
student: {
select: { id: true, firstName: true, lastName: true },
},
route: {
select: { id: true, routeNumber: true, routeName: true, transportType: true },
},
},
});
@@ -64,6 +67,7 @@ export async function POST(request: Request) {
driverName,
driverPhone,
distanceKm,
routeId,
notes,
isDemo,
} = body;
@@ -91,6 +95,7 @@ export async function POST(request: Request) {
driverName: driverName || null,
driverPhone: driverPhone || null,
distanceKm: distanceKm != null ? distanceKm : null,
routeId: routeId || null,
notes: notes || null,
isDemo: isDemo ?? false,
},
@@ -98,6 +103,9 @@ export async function POST(request: Request) {
student: {
select: { id: true, firstName: true, lastName: true },
},
route: {
select: { id: true, routeNumber: true, routeName: true, transportType: true },
},
},
});