* feat: expose form validation methods from EventTypePlatformWrapper
- Add validateForm and handleFormSubmit methods to onFormStateChange prop
- Update useEventTypeForm hook to return validateForm method
- Add proper TypeScript types for form validation result
- Enable external form validation and submission capabilities
Co-Authored-By: somay@cal.com <somay@cal.com>
* fix: correct forwardRef syntax to resolve parsing errors
- Fix forwardRef parameter destructuring syntax
- Use proper props parameter pattern for forwardRef components
- Ensure prettier can parse the file correctly
Co-Authored-By: somay@cal.com <somay@cal.com>
* feat: add form validation and submission handlers to event types platform wrapper
* refactor: move form validation and submit handlers from hook to wrapper component
* fix: add ref to the save button for proper form validation
* feat: extend ref-based validation API to AvailabilitySettingsPlatformWrapper
- Add AvailabilityFormValidationResult and AvailabilitySettingsPlatformWrapperRef types
- Implement forwardRef pattern in AvailabilitySettings component with save button ref
- Add validateForm and handleFormSubmit methods using useImperativeHandle
- Update AvailabilitySettingsPlatformWrapper to support ref forwarding
- Add comprehensive documentation for ref-based validation API in both event-type.mdx and availability-settings.mdx
- Follow same patterns established in EventTypePlatformWrapper for consistency
Co-Authored-By: somay@cal.com <somay@cal.com>
* refactor: rename AvailabilitySettingsPlatformWrapperRef to AvailabilitySettingsFormRef
* feat: add ref-based validation pattern to availability example page
- Mirror the ref-based validation implementation from event-types.tsx
- Add useRef, handleValidate, and handleSubmit functions
- Demonstrate validateForm() and handleFormSubmit() methods
- Add validation and submit buttons to showcase the new API
- Use AvailabilitySettingsFormRef type for proper typing
Co-Authored-By: somay@cal.com <somay@cal.com>
* refactor: remove unused state variables
* docs: clarify form validation behavior for availability and event type atoms
* chore: remove console.logs
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: somay@cal.com <somay@cal.com>
Co-authored-by: Somay Chauhan <somaychauhan98@gmail.com>
* docs: improve English naturalness in API v2 documentation
- Fix awkward API summary 'Find out when is an event type ready to be booked' to 'Get available time slots for an event type'
- Correct 'setup' vs 'set up' usage throughout documentation
- Fix OAuth capitalization consistency
- Improve 'api' to 'API' capitalization in v2 docs
- Enhance readability while preserving technical accuracy
Fixes unnatural English phrasing in titles, headers, descriptions, and summaries across API v2 documentation files.
Co-Authored-By: keith@cal.com <keithwillcode@gmail.com>
* docs: add missing articles 'the' in API v2 documentation
- Fix 'How to Set Up API' to 'How to Set Up the API' in titles
- Add 'the' before 'API' in descriptions and summaries
- Fix grammar error 'all you need to is' to 'all you need to do is'
- Improve naturalness while maintaining technical accuracy
Co-Authored-By: keith@cal.com <keithwillcode@gmail.com>
* docs: fix unnatural English in API v2 @ApiOperation summaries
- Fix grammatically incorrect 'conferencing apps oauths callback' to 'Conferencing app OAuth callback'
- Replace 'ooo' with 'out-of-office' in user-facing summaries for clarity
- Ensure consistent sentence case capitalization (only first letter capitalized)
- Remove trailing periods from summaries for consistency
- Fix awkward phrasing like 'Get by attribute id all of...' to more natural English
- Revert 'Introduction to the API v2' back to 'Introduction to API v2'
- Improve naturalness while maintaining technical accuracy
Co-Authored-By: keith@cal.com <keithwillcode@gmail.com>
* Update apps/api/v2/src/modules/slots/slots-2024-09-04/controllers/slots.controller.ts
* Update docs/api-reference/v2/openapi.json
* docs: fix setup/set up usage - use 'backend setup' (noun) not 'backend set up' (verb)
Co-Authored-By: keith@cal.com <keithwillcode@gmail.com>
* docs: fix setup/set up verb usage - use 'set up' (verb) not 'setup' (verb)
- Fix 'You have to setup' → 'You have to set up' in quickstart.mdx
- Fix 'Setup environment variables' → 'Set up environment variables'
- Fix 'Setup root of your app' → 'Set up root of your app'
- Fix 'prompted to setup' → 'prompted to set up' in setup.mdx
Co-Authored-By: keith@cal.com <keithwillcode@gmail.com>
* Ran v2 locally to regen the doc json files
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* [CAL-5926] Add 'onTimeslotsLoaded' prop to 'Booker' atom
* Added 'onTimeslotsLoaded' to BookerPlatformWrapperAtomProps
* fixed type error and added onTimeslotsLoaded prop to doc
---------
Co-authored-by: Somay Chauhan <somaychauhan98@gmail.com>
* Adds onFormStateChange callback on EventTypeSettings atom
* updated docs for event-type
* added watch all form values
---------
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com>
* hide docs for old google connect endpoint
* update docs for atoms
* fix css styles for week view
* update v2 reference
* add dutch translations in cal provider
* fix: add nl i18n in BaseCalProvider
---------
Co-authored-by: Morgan Vernay <morgan@cal.com>
* feat: added office 365 video to conferencing atoms
* added documentation for conferencing atoms
* added props table to the documentation
---------
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com>
* feat: create event type atom
* fixup! feat: create event type atom
* fixup! fixup! feat: create event type atom
* docs: base doc for create event type atom