feat: Internal Notes for bookings (#18804)

* migration + migrate booking limit page to team settings

* new pages

* use settings toggle for displaying content

* get current team presets

* update mutation

* i18n for settings page

* remove redudant await

* cancelation UI for select

* handle other selection

* extract into a util

* inital cancelation reason flow

* fix i18n to be more readable

* add cancel reason logic

* nits

* improve copy

* ensure is teamMember and not isAdmin for getting internalNotes

* improvie spacing between elements

* fix types

* more type fixes

* correct types

* Update packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.ts

* use input component and remove mb-2 to allign with icon button

* Update packages/trpc/server/routers/viewer/teams/updateInternalNotesPresets.handler.ts

Co-authored-by: Eunjae Lee <[email protected]>

* nits

* type fixs

* fix type

* fix type

* fix nullable option lost in merge

---------

Co-authored-by: Eunjae Lee <[email protected]>
This commit is contained in:
sean-brydonandEunjae Lee authored and GitHub committed 2025-01-24 09:26:52 +00:00
1 parent 1fd4c3fd4c
commit 656d6dc195
22 files changed
+683 -22

No files matched your search

@@ -54,7 +54,7 @@
"cancellation_reason": "Reason for cancellation (optional)",
"cancellation_reason_host": "Reason for cancellation",
"cancellation_reason_placeholder": "Why are you cancelling?",
"notify_attendee_cancellation_reason_warning":"Please note that the cancellation reason will be visible to the attendee.",
"notify_attendee_cancellation_reason_warning":"Cancellation reason will be shared with guests",
"rejection_reason_placeholder": "Why are you rejecting?",
"rejection_reason": "Reason for rejecting",
"rejection_reason_title": "Reject the booking request?",
@@ -2666,6 +2666,7 @@
"x_marked_as_no_show": "{{x}} marked as no-show",
"x_unmarked_as_no_show": "{{x}} unmarked as no-show",
"team_select_info": "triggers for all team event types and all team members' personal event types",
"team_settings_description":"Manage settings for you team",
"no_show_updated": "No-show status updated for attendees",
"email_copied": "Email copied",
"phone_number_copied": "Phone Number Copied",
@@ -2930,6 +2931,13 @@
"managed_users_description": "See all the managed users created by your OAuth client",
"select_oAuth_client": "Select Oauth Client",
"on_every_instance": "On every instance",
"internal_booking_note": "Internal Note",
"internal_note_cancellation_reason": "Reason shared with customer (optional)",
"internal_booking_note_description": "This note will be visible to only members of your team",
"internal_note_presets":"Internal Cancelation Notes Presets",
"internal_note_presets_description" : "Create presets for internal notes that can be applied to bookings",
"internal_note_presets_updated_successfully" : "Internal note presets updated successfully",
"add_preset" : "Add Preset",
"authorize": "Authorize",
"next": "Next",
"ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑"