feat: app complète - tous les modules
This commit is contained in:
20
app/constants/contactCategories.ts
Normal file
20
app/constants/contactCategories.ts
Normal 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;
|
||||
}
|
||||
23
app/constants/visiteChecklist.ts
Normal file
23
app/constants/visiteChecklist.ts
Normal 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';
|
||||
Reference in New Issue
Block a user