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:
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import EventMetricCards from '@/components/events/EventMetricCards.vue'
|
||||
import EventTabsNav from '@/components/events/EventTabsNav.vue'
|
||||
import { useEventChildren } from '@/composables/api/useEvents'
|
||||
import { dutchPlural } from '@/lib/dutch-plural'
|
||||
@@ -65,6 +66,12 @@ function onTileClick(tile: typeof tiles[number]) {
|
||||
<template>
|
||||
<EventTabsNav>
|
||||
<template #default="{ event }">
|
||||
<!-- Metric cards (shown for all event types) -->
|
||||
<EventMetricCards
|
||||
v-if="event"
|
||||
:event-id="event.id"
|
||||
/>
|
||||
|
||||
<!-- ═══════════════════════════════════════════ -->
|
||||
<!-- Festival Overzicht (dashboard) -->
|
||||
<!-- ═══════════════════════════════════════════ -->
|
||||
|
||||
Reference in New Issue
Block a user