feat: app complète - tous les modules

This commit is contained in:
Bastien COIGNOUX
2026-05-04 09:09:10 +02:00
parent 695d4e76d0
commit 432f8ce176
15 changed files with 1355 additions and 108 deletions

View File

@ -0,0 +1,20 @@
export const CONTACT_CATEGORIE_LABELS: Record<string, string> = {
notaire: 'Notaire',
agent_immo: 'Agent immobilier',
artisan_gros_oeuvre: 'Artisan gros œuvre',
artisan_second_oeuvre: 'Artisan second œuvre',
artisan_finitions: 'Artisan finitions',
banquier: 'Banquier',
courtier: 'Courtier',
diagnostiqueur: 'Diagnostiqueur',
geometre: 'Géomètre',
avocat: 'Avocat',
comptable: 'Comptable',
vendeur: 'Vendeur',
acheteur: 'Acheteur',
autre: 'Autre',
};
export function labelContactCategorie(key: string): string {
return CONTACT_CATEGORIE_LABELS[key] ?? key;
}

View File

@ -0,0 +1,23 @@
export type ChecklistEtat = 'ok' | 'attention' | 'probleme' | 'non';
export const CHECKLIST_ETATS: { id: ChecklistEtat; label: string; color: string }[] = [
{ id: 'ok', label: 'OK', color: '#16A34A' },
{ id: 'attention', label: 'Attention', color: '#CA8A04' },
{ id: 'probleme', label: 'Problème', color: '#DC2626' },
{ id: 'non', label: 'Non vérifié', color: '#64748B' },
];
export const CHECKLIST_ITEMS: { id: string; label: string }[] = [
{ id: 'facade', label: 'Façade / extérieur' },
{ id: 'toiture', label: 'Toiture / couverture' },
{ id: 'humidite', label: 'Humidité / traces' },
{ id: 'menuiseries', label: 'Menuiseries' },
{ id: 'chauffage', label: 'Chauffage / ECS' },
{ id: 'electricite', label: 'Électricité' },
{ id: 'plomberie', label: 'Plomberie / évacuations' },
{ id: 'copropriete', label: 'Parties communes / copro' },
{ id: 'bruit', label: 'Nuisances (bruit, odeurs)' },
{ id: 'stationnement', label: 'Stationnement / accès' },
];
export const GENERATE_RAPPORT_PATH = '/api/mdb/generate-rapport';