From 33d803d244f6fb2222631b8add3aaf7e7daa3449 Mon Sep 17 00:00:00 2001 From: Potenz Date: Sat, 19 Jul 2025 21:13:56 +0530 Subject: [PATCH] ui fixed --- apps/Frontend/src/pages/claims-page.tsx | 40 +++++++++++-------- apps/Frontend/src/pages/documents-page.tsx | 20 +++++----- .../src/pages/insurance-eligibility-page.tsx | 23 ++++++----- apps/Frontend/src/pages/payments-page.tsx | 22 ++++++---- 4 files changed, 59 insertions(+), 46 deletions(-) diff --git a/apps/Frontend/src/pages/claims-page.tsx b/apps/Frontend/src/pages/claims-page.tsx index 24cc27e..e66abbf 100644 --- a/apps/Frontend/src/pages/claims-page.tsx +++ b/apps/Frontend/src/pages/claims-page.tsx @@ -353,9 +353,9 @@ export default function ClaimsPage() { const patientAppointments = appointments .filter((a) => a.patientId === patient.id) .sort( - (a, b) => - parseLocalDate(b.date).getTime() - parseLocalDate(a.date).getTime() -); + (a, b) => + parseLocalDate(b.date).getTime() - parseLocalDate(a.date).getTime() + ); const lastAppointment = patientAppointments[0]; // most recent @@ -366,7 +366,7 @@ export default function ClaimsPage() { setClaimFormData((prev: any) => ({ ...prev, patientId: patient.id, - serviceDate: formatLocalDate(dateToUse) + serviceDate: formatLocalDate(dateToUse), })); }; @@ -386,7 +386,7 @@ export default function ClaimsPage() { const lastName = rest.join(" ") || ""; const parsedDob = parse(dob, "M/d/yyyy", new Date()); // robust for "4/17/1964", "12/1/1975", etc. - + const newPatient: InsertPatient = { firstName, lastName, @@ -425,8 +425,8 @@ export default function ClaimsPage() { const patientAppointments = appointments .filter((appt) => appt.patientId === patient.id) .sort( - (a, b) => - parseLocalDate(b.date).getTime() - parseLocalDate(a.date).getTime() + (a, b) => + parseLocalDate(b.date).getTime() - parseLocalDate(a.date).getTime() ); // Sort descending by date if (patientAppointments.length > 0) { @@ -437,7 +437,9 @@ export default function ClaimsPage() { appointmentId: latestAppointment!.id, insuranceProvider: patient.insuranceProvider || "N/A", insuranceId: patient.insuranceId || "N/A", - lastAppointment: formatLocalDate(parseLocalDate(latestAppointment!.date)), + lastAppointment: formatLocalDate( + parseLocalDate(latestAppointment!.date) + ), }); } @@ -591,6 +593,7 @@ export default function ClaimsPage() {
+
- {/* Header */} -
-

- Insurance Claims -

-

- Manage and submit insurance claims for patients -

+
+
+
+

+ Insurance Claims +

+

+ Manage and submit insurance claims for patients +

+
+
{/* New Claims Section */} -
+
+
-
-
-
-

- Documents -

-

- View and manage recent uploaded claim PDFs -

+
+
+
+
+

Documents

+

+ View and manage recent uploaded claim PDFs +

+
{selectedPatient && ( diff --git a/apps/Frontend/src/pages/insurance-eligibility-page.tsx b/apps/Frontend/src/pages/insurance-eligibility-page.tsx index 3f09289..34792d6 100644 --- a/apps/Frontend/src/pages/insurance-eligibility-page.tsx +++ b/apps/Frontend/src/pages/insurance-eligibility-page.tsx @@ -234,7 +234,7 @@ export default function InsuranceEligibilityPage() { }; return ( -
+
dispatch(clearTaskStatus())} /> -
-
- {/* Header */} -
-

- Insurance Eligibility -

-

- Check insurance eligibility and view patient information -

+
+
+
+
+

+ Insurance Eligibility +

+

+ Check insurance eligibility and view patient information +

+
{/* Insurance Eligibility Check Form */} diff --git a/apps/Frontend/src/pages/payments-page.tsx b/apps/Frontend/src/pages/payments-page.tsx index 34fe645..10b532a 100644 --- a/apps/Frontend/src/pages/payments-page.tsx +++ b/apps/Frontend/src/pages/payments-page.tsx @@ -142,17 +142,23 @@ export default function PaymentsPage() { return (
- - + +
- +
- {/* Header */} -
-
-

Payments

-

Manage patient payments and outstanding balances

+
+
+
+

Payments

+

+ Manage patient payments and outstanding balances +

+