feat: refactor ResourceExceptionsPanel and related hooks; remove unused availability logic and simplify resource detail management

This commit is contained in:
hamed
2026-08-03 10:36:13 +03:30
parent 00c275d618
commit 8509a04ae2
6 changed files with 99 additions and 221 deletions
-17
View File
@@ -1056,25 +1056,8 @@ export interface ResourceException {
updated_at: number;
}
export interface AvailabilityInterval {
start: number;
end: number;
}
export interface AvailabilityDay {
date: number;
day_of_week: number;
intervals: AvailabilityInterval[];
total_minutes: number;
/** چرا روز خالی است — بدون این، پاسخ خالی از باگ قابل تشخیص نیست */
reasons: string[];
}
export interface ResourceAvailability {
resource_uuid: string;
timezone: string;
days: AvailabilityDay[];
}
export interface NationalHoliday {
uuid: string;