From 65af13b0b2c463202659ee24a443aa74b8f388cf Mon Sep 17 00:00:00 2001 From: iamkiddy Date: Thu, 4 Dec 2025 18:07:27 +0000 Subject: [PATCH] Update appointment detail pages to clarify meeting availability messages and add meeting information section Refactor the appointment detail components for both admin and user interfaces to change the messaging for meeting availability from "Meeting Not Available" to "Meeting would be available shortly." Additionally, introduce a new section displaying meeting information, including start time and access instructions, enhancing user clarity and experience. --- app/(admin)/admin/booking/[id]/page.tsx | 31 +++++++++++++++++-- app/(user)/user/appointments/[id]/page.tsx | 35 ++++++++++++++++++---- 2 files changed, 58 insertions(+), 8 deletions(-) diff --git a/app/(admin)/admin/booking/[id]/page.tsx b/app/(admin)/admin/booking/[id]/page.tsx index cc4e38d..54e6a83 100644 --- a/app/(admin)/admin/booking/[id]/page.tsx +++ b/app/(admin)/admin/booking/[id]/page.tsx @@ -621,10 +621,35 @@ export default function AppointmentDetailPage() {

- {appointment.can_join_as_moderator ? "Meeting is active - You can join as moderator" : "Meeting is not available yet"} + {appointment.can_join_as_moderator ? "Meeting is active - You can join as moderator" : "Meeting would be available shortly"}

)} + {appointment.scheduled_datetime && ( +
+

+ Meeting Information +

+
+
+

+ Meeting Start Time: +

+

+ {formatDate(appointment.scheduled_datetime)} at {formatTime(appointment.scheduled_datetime)} +

+
+
+

+ How to Access: +

+

+ Click the "Start Meeting" button below to begin the session. Once started, participants can join using the meeting link. You can also use the moderator link above to join directly. +

+
+
+
+ )}
)} @@ -701,7 +726,7 @@ export default function AppointmentDetailPage() { const startedAt = appointment.started_at || appointment.meeting_started_at; const hasStarted = startedAt != null && startedAt !== ""; - // If can_join_as_moderator != true, display "Meeting Not Available" + // If can_join_as_moderator != true, display "Meeting would be available shortly" if (!canJoinAsModerator) { return ( ); } diff --git a/app/(user)/user/appointments/[id]/page.tsx b/app/(user)/user/appointments/[id]/page.tsx index 49c90d0..2b57326 100644 --- a/app/(user)/user/appointments/[id]/page.tsx +++ b/app/(user)/user/appointments/[id]/page.tsx @@ -528,10 +528,35 @@ export default function UserAppointmentDetailPage() {

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

)} + {appointment.scheduled_datetime && ( +
+

+ Meeting Information +

+
+
+

+ Meeting Start Time: +

+

+ {formatDate(appointment.scheduled_datetime)} at {formatTime(appointment.scheduled_datetime)} +

+
+
+

+ How to Access: +

+

+ Click the "Join Now" button below or use the meeting link above when the meeting becomes available. The meeting will be accessible shortly before the scheduled start time. +

+
+
+
+ )}
)} @@ -585,7 +610,7 @@ 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 Not Available" + // If can_join_as_participant != true, display "Meeting would be available shortly" if (!canJoinAsParticipant) { return ( ); } @@ -613,14 +638,14 @@ export default function UserAppointmentDetailPage() { ); } - // If can_join_as_participant == true && started_at == null, show "Meeting Not Available" + // If can_join_as_participant == true && started_at == null, show "Meeting would be available shortly" return ( ); })()} -- 2.39.5