Improve delete UX and prepaid credit time display.

Show minutes and local expiry for resource credits; add shared delete hook with row/card loading overlays, detail-page deleting modal, and disabled controls to prevent double-delete.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
keyhan
2026-05-24 00:33:16 +03:30
parent 695e05f948
commit abbe821d91
15 changed files with 352 additions and 83 deletions
+3
View File
@@ -187,6 +187,9 @@ export interface ResourceCredit {
billingCycle?: string;
expiresAt: string;
remainingMs: number;
remainingDays?: number;
remainingHours?: number;
remainingMinutes?: number;
remainingLabel: string;
}