feat(admin): session edit form, payment edit/delete UI, and audit history modal

- SessionServiceCard menu gains «ویرایش» and «تاریخچه تغییرات» items.
- SessionAuditModal shows the session's change history (field, op badge,
  old->new, actor, time) from /session/{uuid}/audit-log.
- PaymentStep payment rows get edit (modal) + delete (confirm) controls for
  non-wallet payments, calling the new PATCH/DELETE payment endpoints.
- CreateStep accepts an editSession prop (prefill + PATCH); EditSessionPage
  reuses it at /patients/:recordUuid/session/:sessionUuid/edit.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
hamed
2026-07-17 15:23:02 +03:30
co-authored by Claude Fable 5
parent 48579dc06f
commit f2ea2ff262
8 changed files with 287 additions and 12 deletions
+10
View File
@@ -153,6 +153,16 @@ export interface DiscountRule {
updated_at: number;
}
export interface SessionAuditEntry {
field: string;
operation: 'create' | 'update' | 'delete';
old_value: string | null;
new_value: string | null;
actor_name: string | null;
note: string | null;
created_at: number;
}
export interface DiscountSuggestion {
rule_uuid: string;
rule_name: string;