
Pedro CastroandMorgan
975fb21d86
feat(atoms): add ListEventTypes atom to enable event type management (#25047) (#25113)
* feat: add ListEventTypes atom (#25047)
* feat: add ListEventTypes atom for Platform (#25047)
- Add EventTypeListItem component in @calcom/features
- Add ListEventTypesPlatformWrapper with delete functionality
- Implement useAtomGetAllEventTypes hook
- Update backend to include slug, description, length
- Add 11 unit tests (65% coverage)
- Add 3 i18n keys
No breaking changes. Backward compatible.
* refactor(eventtypes): improve EventTypeListItem readability
- Extract EventTypeContent and EventTypeActions sub-components
- Add formatEventTypeDuration helper (90min → '1h 30m')
- Use Badge for duration display (consistency with EventTypeDescription)
- Use polymorphic Wrapper component (DRY)
- Add comprehensive tests
- Reduce main component size
Addresses @volnei feedback
* refactor: replace window.confirm with ConfirmationDialog
- Replace native window.confirm with ConfirmationDialogContent
- Update test mocks for Dialog components
- Fix HTML nesting (div instead of p for Badge container)
- Follows Cal.com pattern from AvailabilitySettings
Addresses @ThyMinimalDev feedback
* fix: add aria-label to options button for accessibility
* test: update getBulkEventTypes test to include new fields (description, slug, length)
* refactor: move EventTypeListItem to atoms package
---------
Co-authored-by: Morgan <[email protected]>
2025-12-18 12:24:41 -03:00
..
2025-12-17 13:30:35 -03:00
2025-12-17 13:30:35 -03:00
2025-12-17 13:30:35 -03:00
2025-12-17 13:30:35 -03:00
2025-12-17 13:30:35 -03:00
2025-12-17 13:30:35 -03:00
2025-12-17 13:30:35 -03:00
2025-11-17 10:57:58 +00:00
2025-11-04 15:55:09 +00:00
2025-12-18 12:24:41 -03:00
2025-11-04 15:55:09 +00:00
2025-11-04 15:55:09 +00:00
2025-11-04 15:55:09 +00:00
2025-11-04 15:55:09 +00:00
2025-11-04 15:55:09 +00:00
2025-11-04 15:55:09 +00:00
2025-11-04 15:55:09 +00:00
2025-07-14 22:49:25 +00:00
2025-11-04 15:55:09 +00:00
2025-07-14 22:49:25 +00:00
2025-11-04 15:55:09 +00:00
2025-07-14 22:49:25 +00:00
2025-11-04 15:55:09 +00:00
2025-11-04 15:55:09 +00:00
2025-11-04 15:55:09 +00:00
2025-07-14 22:49:25 +00:00
2025-11-04 15:55:09 +00:00
2025-11-04 15:55:09 +00:00
2025-12-17 13:30:35 -03:00
2025-12-17 13:30:35 -03:00
2025-12-17 13:30:35 -03:00
2025-12-17 13:30:35 -03:00
2025-12-17 13:30:35 -03:00
2025-07-14 22:49:25 +00:00
2025-12-17 13:30:35 -03:00
2025-12-17 13:30:35 -03:00
2025-12-17 13:30:35 -03:00
2025-07-14 22:49:25 +00:00
2025-07-14 22:49:25 +00:00
2025-12-17 13:30:35 -03:00
2025-12-17 13:30:35 -03:00
2025-12-17 13:30:35 -03:00
2025-12-17 13:30:35 -03:00
2025-12-17 13:30:35 -03:00