feat: add option to hide duration selector in booking page for multiple durations (#27033)
* feat: add option to hide duration selector in booking page for multiple durations - Add 'hideDurationSelectorInBookingPage' field to event type metadata schema - Add checkbox under Default Duration select in event type settings - Modify Duration component to hide selector when setting is enabled - URL params can still set duration when selector is hidden - Add i18n translation for the new checkbox label - Add e2e tests for the new functionality Co-Authored-By: [email protected] <[email protected]> * fix: rename checkbox label to 'Hide duration selector' Co-Authored-By: [email protected] <[email protected]> * fix: replace text locator with data-testid in E2E test Replace `text=Multiple duration` locator with `page.getByTestId("event-types").locator('a[title="Multiple duration"]')` to follow E2E test best practices. Co-Authored-By: unknown <> * fix: add data-testid to hide duration selector checkbox for E2E tests Co-Authored-By: [email protected] <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]> Co-authored-by: Syed Ali Shahbaz <[email protected]>
This commit is contained in:
5 files changed
+145
-1
No files matched your search
@@ -881,6 +881,7 @@
|
||||
"available_durations": "Available durations",
|
||||
"default_duration": "Default duration",
|
||||
"default_duration_no_options": "Please choose available durations first",
|
||||
"hide_duration_selector_in_booking_page": "Hide duration selector",
|
||||
"multiple_duration_mins": "{{count}} $t(minute_timeUnit)",
|
||||
"multiple_duration_timeUnit": "{{count}} $t({{unit}}_timeUnit)",
|
||||
"multiple_duration_timeUnit_short": "{{count}}$t({{unit}}_short)",
|
||||
|
||||
Reference in new issue
Block a user