Files
crewli/apps/app/src/pages/dashboard/index.vue
bert.hausmans d2f282eb4c feat: split name into first_name + last_name across users, persons, and companies
Cross-cutting migration affecting the entire stack:
- Database: 3 migrations splitting name columns with data migration
- Models: first_name/last_name on User, Person; contact_first_name/contact_last_name on Company; backward-compatible name accessors
- API: all resources return first_name, last_name, full_name; assignablePersons endpoint updated
- Requests: validation rules updated for all person/user/company forms
- Services: VolunteerRegistrationService, ShiftAssignmentService, InvitationService updated
- Frontend: TypeScript types, Zod schemas, all forms split into Voornaam/Achternaam fields
- Display: all person/user name references use full_name; initials use first_name[0]+last_name[0]
- Tests: all 371 tests passing
- Docs: SCHEMA.md and API.md updated

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 23:04:55 +02:00

62 lines
1.5 KiB
Vue

<script setup lang="ts">
import { useAuthStore } from '@/stores/useAuthStore'
const authStore = useAuthStore()
const stats = [
{ title: 'Evenementen', value: 0, icon: 'tabler-calendar-event', color: 'primary' },
{ title: 'Personen', value: 0, icon: 'tabler-users', color: 'success' },
{ title: 'Shifts', value: 0, icon: 'tabler-clock', color: 'warning' },
{ title: 'Briefings', value: 0, icon: 'tabler-mail', color: 'info' },
]
</script>
<template>
<div>
<VCard class="mb-6">
<VCardText>
<h4 class="text-h4 mb-1">
Welkom, {{ authStore.user?.full_name ?? 'gebruiker' }}! 👋
</h4>
<p class="text-body-1 mb-0">
{{ authStore.currentOrganisation?.name ?? 'Geen organisatie geselecteerd' }}
</p>
</VCardText>
</VCard>
<VRow>
<VCol
v-for="stat in stats"
:key="stat.title"
cols="12"
sm="6"
md="3"
>
<VCard>
<VCardText class="d-flex align-center gap-x-4">
<VAvatar
:color="stat.color"
variant="tonal"
size="44"
rounded
>
<VIcon
:icon="stat.icon"
size="28"
/>
</VAvatar>
<div>
<p class="text-body-1 mb-0">
{{ stat.title }}
</p>
<h4 class="text-h4">
{{ stat.value }}
</h4>
</div>
</VCardText>
</VCard>
</VCol>
</VRow>
</div>
</template>