From eddb9eb6e3ad67eb298f1e324b33802845df9096 Mon Sep 17 00:00:00 2001 From: iamkiddy Date: Fri, 5 Dec 2025 19:16:02 +0000 Subject: [PATCH] Refactor appointment detail messaging and styles for clarity - Updated the appointment detail pages for both admin and user views to replace "Meeting would be available shortly" with "Click here to join," enhancing user clarity on meeting access. - Adjusted CSS classes for buttons and icons to improve layout consistency and responsiveness across different screen sizes. --- app/(admin)/admin/booking/[id]/page.tsx | 18 +++++------------- app/(user)/user/appointments/[id]/page.tsx | 18 +++++++++--------- 2 files changed, 14 insertions(+), 22 deletions(-) diff --git a/app/(admin)/admin/booking/[id]/page.tsx b/app/(admin)/admin/booking/[id]/page.tsx index ff14ed3..1a03d0f 100644 --- a/app/(admin)/admin/booking/[id]/page.tsx +++ b/app/(admin)/admin/booking/[id]/page.tsx @@ -457,10 +457,11 @@ export default function AppointmentDetailPage() { } setRescheduleDialogOpen(true); }} - className={`p-2 rounded-lg transition-colors ${isDark ? "hover:bg-gray-700 text-gray-300 hover:text-white" : "hover:bg-gray-100 text-gray-600 hover:text-gray-900"}`} + className={`flex items-center gap-2 px-3 py-2 rounded-lg transition-colors ${isDark ? "hover:bg-gray-700 text-gray-300 hover:text-white" : "hover:bg-gray-100 text-gray-600 hover:text-gray-900"}`} title="Reschedule Appointment" > - + + Reschedule )} @@ -682,9 +683,7 @@ export default function AppointmentDetailPage() {

{appointment.can_join_as_moderator ? "Meeting is active - You can join as moderator" - : appointment.scheduled_datetime - ? `Meeting would be available to join starting at ${formatTime(appointment.scheduled_datetime)}` - : "Meeting would be available shortly"} + : "Click here to join"}

)} @@ -837,20 +836,13 @@ export default function AppointmentDetailPage() { // If can_join_as_moderator != true, display "Meeting would be available shortly" if (!canJoinAsModerator) { - const meetingTime = appointment.scheduled_datetime - ? formatTime(appointment.scheduled_datetime) - : "the scheduled time"; return ( ); } diff --git a/app/(user)/user/appointments/[id]/page.tsx b/app/(user)/user/appointments/[id]/page.tsx index 73e06fe..f964a72 100644 --- a/app/(user)/user/appointments/[id]/page.tsx +++ b/app/(user)/user/appointments/[id]/page.tsx @@ -469,7 +469,7 @@ export default function UserAppointmentDetailPage() {

- {appointment.can_join_as_participant ? "Meeting is active - You can join now" : "Meeting would be available shortly"} + {appointment.can_join_as_participant ? "Meeting is active - You can join now" : "Click here to join"}

)} @@ -568,15 +568,15 @@ export default function UserAppointmentDetailPage() { const startedAt = appointment.started_at || appointment.meeting_started_at; const hasStarted = startedAt != null && startedAt !== ""; - // If can_join_as_participant != true, display "Meeting would be available shortly" + // If can_join_as_participant != true, display "Click here to join" if (!canJoinAsParticipant) { return ( ); } @@ -596,14 +596,14 @@ export default function UserAppointmentDetailPage() { ); } - // If can_join_as_participant == true && started_at == null, show "Meeting would be available shortly" + // If can_join_as_participant == true && started_at == null, show "Click here to join" return ( ); })()}