backend phase 15 & frontend phase 8
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import type { StatusKind } from '@/components/StatusChip';
|
||||
import type { BookingSessionStatus, BookingStatus } from '@/services/bookings/types';
|
||||
|
||||
/** Booking status → the shared semantic StatusChip kind (used by the timeline + the bookings list). */
|
||||
export const BOOKING_STATUS_KIND: Record<BookingStatus, StatusKind> = {
|
||||
pending_payment: 'pending',
|
||||
confirmed: 'info',
|
||||
in_progress: 'active',
|
||||
completed: 'verified',
|
||||
disputed: 'rejected',
|
||||
closed: 'neutral',
|
||||
cancelled: 'neutral',
|
||||
};
|
||||
|
||||
/** Session status → the shared semantic StatusChip kind (used by the session card + the today feed). */
|
||||
export const SESSION_STATUS_KIND: Record<BookingSessionStatus, StatusKind> = {
|
||||
scheduled: 'info',
|
||||
in_progress: 'active',
|
||||
completed: 'verified',
|
||||
missed: 'rejected',
|
||||
cancelled: 'neutral',
|
||||
};
|
||||
Reference in New Issue
Block a user