feat: implement filtered and paginated doctor appointments panel with status filtering

This commit is contained in:
hamed
2026-07-19 11:50:16 +03:30
parent 8420a1a6c2
commit 4e78a76824
7 changed files with 324 additions and 4 deletions
@@ -77,6 +77,8 @@ export interface TauriDashboardViewProps {
/** «میزان درآمد» series (revenue_by_day) */
incomeLine: ChartPoint[];
appointments: ApptRow[];
/** جایگزین جدول ساده — برای نمایش نسخهٔ فیلتردار/قابل‌ویرایش. */
appointmentsSlot?: React.ReactNode;
loading: boolean;
formatNumber: (n: number) => string;
formatRial: (rial: number) => string;
@@ -97,6 +99,7 @@ export function TauriDashboardView({
patientBars,
incomeLine,
appointments,
appointmentsSlot,
loading,
formatNumber,
formatRial,
@@ -152,7 +155,8 @@ export function TauriDashboardView({
</Link>
</div>
<div className="px-0 md:px-[24px] pb-[16px]">
<NewAppointmentsTable rows={appointments} loading={loading} />
{/* والد می‌تواند نسخهٔ فیلتردار را جای جدول ساده بنشاند. */}
{appointmentsSlot ?? <NewAppointmentsTable rows={appointments} loading={loading} />}
</div>
</div>
</div>