Mandats : refonte wizard nomination-first + types statutory/functional

- Réordonnancement étapes : nomination → infos → résumé (au lieu de infos → nomination → toolbox → résumé)
- Cas nomination renommé : 'election' → 'collective' ; auto-désignation scindée en mode période/réunion
- Types mandat ajoutés : statutory, functional (labels + filtres index)
- Légères corrections texte modalities (ortho, reformulation)
- Fix TS : assertions non-null sur statusGroupMap et paramValues

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Yvv
2026-04-24 20:33:16 +02:00
parent 3ba9c43ce3
commit 3b339b643c
4 changed files with 543 additions and 366 deletions
+3 -1
View File
@@ -66,7 +66,7 @@ const filteredMandates = computed(() => {
// Filter by status group
if (activeStatus.value && statusGroupMap[activeStatus.value]) {
const allowedStatuses = statusGroupMap[activeStatus.value]
const allowedStatuses = statusGroupMap[activeStatus.value]!
list = list.filter(m => allowedStatuses.includes(m.status))
}
@@ -95,6 +95,8 @@ const filteredMandates = computed(() => {
const typeLabel = (mandateType: string) => {
switch (mandateType) {
case 'statutory': return 'Statutaire'
case 'functional': return 'Fonctionnel'
case 'techcomm': return 'Comité technique'
case 'smith': return 'Forgeron'
case 'custom': return 'Personnalisé'
File diff suppressed because it is too large Load Diff
-1
View File
@@ -34,7 +34,6 @@ export interface GroupMemberCreate {
export const useGroupsStore = defineStore('groups', () => {
const { $api } = useApi()
const orgs = useOrgsStore()
const list = ref<GroupSummary[]>([])
const loading = ref(false)
+1 -1
View File
@@ -1,7 +1,7 @@
export default defineNuxtConfig({
compatibilityDate: '2025-07-15',
ssr: false,
devtools: { enabled: true },
devtools: { enabled: false },
devServer: { port: 3002, host: '0.0.0.0' },
components: [{ path: '~/components', pathPrefix: false }],
css: ['~/assets/css/moods.css'],