feat(appointments): edit page + filters modal — phase C2/C3

- AppointmentEditPage (edit.pdf): full-page edit of بخش/سرویس/پرسنل, Jalali
  date + start/end time, deposit, status and notes; hydrates from
  GET /appointment/{uuid} and saves through the general PATCH with the
  optimistic-lock version. Routed at /admin/appointments/:uuid/edit (the
  actions-menu ویرایش target).
- AppointmentFiltersModal (filter-desktop.pdf): name/national-code search,
  بخش/سرویس selects, six status checkboxes (لغو شده covers both cancel
  reasons), gender radios, حذف همه reset. Filtering is client-side over the
  loaded day via the pure applyAppointmentFilters; toolbar gains the filter
  button with an active indicator.
- /my/appointments rows now include patient_national_code and patient_gender
  so the filters have data to match on.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
hamed
2026-07-14 00:02:22 +03:30
co-authored by Claude Fable 5
parent 91ea1b02aa
commit f736e4acd8
8 changed files with 493 additions and 1 deletions
+2
View File
@@ -105,6 +105,8 @@ export interface Appointment {
version: number;
created_at: string;
patient_uuid?: string;
patient_national_code?: string | null;
patient_gender?: string | null;
is_reserve?: boolean;
deposit_required?: boolean;
deposit_amount_rials?: number | null;