feat: event dashboard metric cards with stats endpoint (UX-02)
Add GET /events/{event}/stats endpoint returning aggregate counts for
persons (by status, approved without shift), pending identity matches,
and shift fill rates. Frontend metric cards component shows four
actionable KPIs on the event overview tab.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -111,6 +111,7 @@ Route::middleware('auth:sanctum')->group(function () {
|
||||
});
|
||||
|
||||
// Event-scoped resources
|
||||
Route::get('events/{event}/stats', [EventController::class, 'stats']);
|
||||
Route::prefix('events/{event}')->group(function () {
|
||||
Route::apiResource('locations', LocationController::class)
|
||||
->except(['show']);
|
||||
|
||||
Reference in New Issue
Block a user