Scheduling infrastructure for absolutely everyone.
feat: added cancelled by to booking detail view (#18521)
Praasha9172fd832ab
diff --git a/apps/web/modules/bookings/views/bookings-single-view.tsx b/apps/web/modules/bookings/views/bookings-single-view.tsxindex f5372f603b8..71c18e87926 100644--- a/apps/web/modules/bookings/views/bookings-single-view.tsx+++ b/apps/web/modules/bookings/views/bookings-single-view.tsx@@ -558,6 +558,14 @@ export default function Success(props: PageProps) {<div className="col-span-2 mb-6 last:mb-0">{cancellationReason}</div></>)}+ {isCancelled && bookingInfo?.cancelledBy && (+ <>+ <div className="font-medium">{t("cancelled_by")}</div>+ <div className="col-span-2 mb-6 last:mb-0">+ <p className="break-words">{bookingInfo?.cancelledBy}</p>+ </div>+ </>+ )}{previousBooking && (<><div className="font-medium">{t("rescheduled_by")}</div>diff --git a/packages/features/bookings/lib/getUserBooking.ts b/packages/features/bookings/lib/getUserBooking.tsindex 2c021bee3d0..a337df39b45 100644--- a/packages/features/bookings/lib/getUserBooking.ts+++ b/packages/features/bookings/lib/getUserBooking.ts@@ -19,6 +19,7 @@ const getUserBooking = async (uid: string) => {status: true,metadata: true,cancellationReason: true,+ cancelledBy: true,responses: true,rejectionReason: true,userPrimaryEmail: true,diff --git a/packages/lib/server/locales/en/common.json b/packages/lib/server/locales/en/common.jsonindex b9103f0d9a9..547c8139bbf 100644--- a/packages/lib/server/locales/en/common.json+++ b/packages/lib/server/locales/en/common.json@@ -75,6 +75,7 @@"you_can_view_booking_details_with_this_url": "You can view the booking details from this url {{url}} and add the event to your calendar","no_options_available": "No options available","cancellation_reason": "Reason for cancellation (optional)",+ "cancelled_by":"Cancelled By","cancellation_reason_host": "Reason for cancellation","cancellation_reason_placeholder": "Why are you cancelling?","notify_attendee_cancellation_reason_warning": "Cancellation reason will be shared with guests",