From 28b9fe5e18303ee82e383d6d437931275e387269 Mon Sep 17 00:00:00 2001 From: Malsha Gamage Date: Mon, 16 Feb 2026 14:31:33 +0530 Subject: [PATCH 1/6] Make Users page responsive and mobile-friendly Update the Users page layout to be responsive: switch the header container to stack vertically on small screens and align horizontally on md+ with spacing (flex-col md:flex-row md:justify-between md:items-center gap-4). Make the "Add New User" button full-width on mobile (w-full md:w-auto). Also apply minor whitespace/formatting cleanups inside the add-user dialog markup. --- frontend/app/dashboard/users/page.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/frontend/app/dashboard/users/page.tsx b/frontend/app/dashboard/users/page.tsx index c877ae5..f9dfae2 100644 --- a/frontend/app/dashboard/users/page.tsx +++ b/frontend/app/dashboard/users/page.tsx @@ -190,7 +190,7 @@ export default function UsersPage() { return (
-
+

User Management

Manage all system users and their permissions

@@ -200,27 +200,27 @@ export default function UsersPage() { onOpenChange={(open) => { setIsAddDialogOpen(open) if (open) { - resetForm() + resetForm() } }} > - - Add New User - Enter user details to add to the system + Add New User + Enter user details to add to the system - - + + From b15bb055a7efdf66db3aaa919f1bdc47a270d4fa Mon Sep 17 00:00:00 2001 From: Malsha Gamage Date: Mon, 16 Feb 2026 15:14:13 +0530 Subject: [PATCH 2/6] Improve responsiveness of users & activity pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update layout and sizing in dashboard users and user-activity pages for better mobile support. Header sections now stack on small screens (flex-col → md:flex-row), titles use responsive font sizes, action buttons are repositioned with responsive spacing, and search inputs switch to full width on small devices (w-full → md:w-64). These changes improve alignment and readability on narrow viewports without altering functionality. --- frontend/app/dashboard/user-activity/page.tsx | 22 +++++++++---------- frontend/app/dashboard/users/page.tsx | 22 +++++++++---------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/frontend/app/dashboard/user-activity/page.tsx b/frontend/app/dashboard/user-activity/page.tsx index 0de63dd..cd5be31 100644 --- a/frontend/app/dashboard/user-activity/page.tsx +++ b/frontend/app/dashboard/user-activity/page.tsx @@ -122,12 +122,12 @@ export default function UserActivityPage() { return (
-
-
-

User Activity Logs

+
+
+

User Activity Logs

Monitor user actions and system activities (live from users table)

-
+
@@ -139,7 +139,7 @@ export default function UserActivityPage() { Export Logs -
+
@@ -183,14 +183,14 @@ export default function UserActivityPage() { -
+
- Recent Activities - Real-time user activity monitoring + Recent Activities + Real-time user activity monitoring
-
- - +
+ +
diff --git a/frontend/app/dashboard/users/page.tsx b/frontend/app/dashboard/users/page.tsx index f9dfae2..fad7656 100644 --- a/frontend/app/dashboard/users/page.tsx +++ b/frontend/app/dashboard/users/page.tsx @@ -249,19 +249,19 @@ export default function UsersPage() { -
+
- All Users - Total {stats.total} users in the system + All Users + Total {stats.total} users in the system
-
- - handleSearch(e.target.value)} - /> +
+ + handleSearch(e.target.value)} + />
From 7e33386021be11476442cc91e1d1ed466e9809c7 Mon Sep 17 00:00:00 2001 From: Malsha Gamage Date: Mon, 16 Feb 2026 15:30:45 +0530 Subject: [PATCH 3/6] Refactor hospital page layout and dialog markup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rework the Hospitals page header and dialog markup to improve responsiveness and alignment. The header now uses a column-to-row flex layout with adjusted heading sizes and left-aligned text; the Add Hospital dialog and trigger were moved into their own container to preserve layout and spacing on small screens. Also updated the All Hospitals card header to be responsive (search input becomes full-width on small screens) and tweaked spacing classes. No functional changes to form behavior were made — this is purely layout/CSS structure cleanup. --- frontend/app/dashboard/hospitals/page.tsx | 66 ++++++++++++----------- 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/frontend/app/dashboard/hospitals/page.tsx b/frontend/app/dashboard/hospitals/page.tsx index 27a8acb..b9bbfbc 100644 --- a/frontend/app/dashboard/hospitals/page.tsx +++ b/frontend/app/dashboard/hospitals/page.tsx @@ -176,38 +176,40 @@ export default function HospitalsPage() { return (
-
-
-

Hospital Management

+
+
+

Hospital Management

Manage hospitals, facilities, and assignments

- - - - - - - Add New Hospital - Enter hospital details to add to the system - - - - - - - - -
+ + + + Add New Hospital + Enter hospital details to add to the system + + + + + + + + +
+
@@ -233,12 +235,12 @@ export default function HospitalsPage() { -
-
+
+
All Hospitals Registered medical facilities on the platform
-
+
Date: Mon, 16 Feb 2026 15:40:00 +0530 Subject: [PATCH 4/6] Make Doctors page header responsive Adjust layout and spacing in DoctorsPage for better responsiveness: convert header and card header to column layout on small screens and row on md+, reduce title size on small screens, and left-align text. Move the Add New Doctor Dialog into its own stacked container to sit below the title on mobile (preserving open/reset logic), and make the search input container full-width on small screens with fixed width on md+. No behavior changes to dialog actions or form handling. --- frontend/app/dashboard/doctors/page.tsx | 70 +++++++++++++------------ 1 file changed, 36 insertions(+), 34 deletions(-) diff --git a/frontend/app/dashboard/doctors/page.tsx b/frontend/app/dashboard/doctors/page.tsx index f22b266..fd2ea85 100644 --- a/frontend/app/dashboard/doctors/page.tsx +++ b/frontend/app/dashboard/doctors/page.tsx @@ -204,40 +204,42 @@ export default function DoctorsPage() { return (
-
-
-

Doctor Management

+
+
+

Doctor Management

Manage doctor profiles and schedules

- { - setIsAddDialogOpen(open) - if (open) { - resetForm() - } - }} - > - - - - - - Add New Doctor - Enter doctor details to add to the system - - - - - - - - + + + + Add New Doctor + Enter doctor details to add to the system + + + + + + + + +
@@ -263,12 +265,12 @@ export default function DoctorsPage() { -
-
+
+
All Doctors Registered medical practitioners on the platform
-
+
Date: Mon, 16 Feb 2026 15:52:24 +0530 Subject: [PATCH 5/6] Make doctor-hospitals header responsive Adjust header layout to be column on small screens and row on md+ screens by replacing static flex classes with `flex flex-col gap-4 md:flex-row md:justify-between md:items-center`. Also constrain the Assign Doctor button width with `w-fit` so it doesn't stretch full-width on small viewports. Minor markup/indentation cleanup. --- frontend/app/dashboard/doctor-hospitals/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/app/dashboard/doctor-hospitals/page.tsx b/frontend/app/dashboard/doctor-hospitals/page.tsx index dd1e6c2..6549bf7 100644 --- a/frontend/app/dashboard/doctor-hospitals/page.tsx +++ b/frontend/app/dashboard/doctor-hospitals/page.tsx @@ -68,15 +68,15 @@ export default function DoctorHospitalsPage() { return (
-
+

Hospital Assignments

Manage doctor-hospital relationships and sessions

- +
{error && ( From dd1533b29ac75cd4be433d8fd736b3a1c571eb9d Mon Sep 17 00:00:00 2001 From: Malsha Gamage Date: Mon, 16 Feb 2026 16:08:57 +0530 Subject: [PATCH 6/6] Improve dashboard responsive headers Adjust layout and spacing for Agents and Commissions pages to improve responsiveness on small screens. Agents page: stack header elements on mobile, reduce title size on small screens, left-align text, move the Add New Agent dialog trigger into its own container with proper top margin, and make card header/search input responsive (full width on small, fixed on md). Commissions page: switch header to a column on small screens with sm:flex-row for larger, add gap spacing and constrain the Adjust Rates button to its content (w-fit). These are UI/layout-only changes; no business logic was modified. --- frontend/app/dashboard/agents/page.tsx | 66 +++++++++++---------- frontend/app/dashboard/commissions/page.tsx | 6 +- 2 files changed, 37 insertions(+), 35 deletions(-) diff --git a/frontend/app/dashboard/agents/page.tsx b/frontend/app/dashboard/agents/page.tsx index 78d3088..f83486c 100644 --- a/frontend/app/dashboard/agents/page.tsx +++ b/frontend/app/dashboard/agents/page.tsx @@ -175,38 +175,40 @@ export default function AgentsPage() { return (
-
-
-

Agent Management

+
+
+

Agent Management

Manage all agents and partnerships

- { - setIsAddDialogOpen(open) - if (open) resetForm() - }} - > - - - - - - Add New Agent - Enter agent details - - - - - - - - + + + + Add New Agent + Enter agent details + + + + + + + + +
@@ -254,12 +256,12 @@ export default function AgentsPage() { -
-
+
+
All Agents Active agents and booking statistics
-
+
-
+

Commission Settings

Manage agent commission rates and payouts

- +