Skip to content
Snippets Groups Projects
Commit 80db63d2 authored by Marlène SIMONDANT's avatar Marlène SIMONDANT
Browse files

Update enum and interface after refining

parent 4a46b1c2
No related branches found
No related tags found
1 merge request!983feat(dashboard) : create dashboard !
Pipeline #124223 passed
......@@ -33,8 +33,8 @@ export interface IOrientation {
structureMail: string;
structurePhone: string;
};
status: 'new' | 'acknowledged' | 'waiting' | 'completed' | 'uncompleted' | 'expired';
action: 'defineRdv' | 'rdvTaken' | 'visit' | 'rdvDone' | 'closeRdv';
status: 'new' | 'waiting' | 'appointmentBooked' | 'appointmentDatePassed' | 'completed' | 'uncompleted' | 'expired';
action: 'acknowledged' | 'defineAppointment' | 'waitAppointment' | 'waitVisit' | 'closeRDV';
modifiedBy?: string;
appointmentDate?: string;
processingComment?: string;
......
......@@ -4,16 +4,21 @@ export const Status = {
color: 'dark-blue',
icon: 'new',
},
acknowledged: {
label: 'A traiter',
color: 'blue',
icon: 'eye',
},
waiting: {
label: 'En attente',
color: 'blue',
icon: 'eye',
},
appointmentBooked: {
label: 'RDV pris',
color: 'light-green',
icon: 'calendarGreen',
},
appointmentDatePassed: {
label: 'RDV passé',
color: 'grey',
icon: 'rdvDone',
},
completed: {
label: 'Terminé',
color: 'light-green',
......@@ -33,25 +38,25 @@ export const Status = {
export type StatusKey = keyof typeof Status;
export const Action = {
defineRdv: {
acknowledged: {
label: 'Accuser réception',
color: 'dark-blue',
icon: 'new',
},
defineAppointment: {
label: 'Définir le RDV',
color: 'blue',
icon: 'calendar',
},
rdvTaken: {
label: 'RDV pris',
color: 'light-green',
icon: 'calendarGreen',
},
visit: {
label: 'Visite proposée',
waitAppointment: {
label: 'Attendre le RDV',
color: 'grey',
icon: 'pedestrian',
},
rdvDone: {
label: 'RDV terminé',
waitVisit: {
label: 'Attendre la visite',
color: 'grey',
icon: 'rdvDone',
icon: 'pedestrian',
},
closeRDV: {
label: 'Clôturer le RDV',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment