Files
cal.diy/apps/web/public
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 <33722304+ThyMinimalDev@users.noreply.github.com>
2025-12-18 12:24:41 -03:00
..
2022-04-15 08:54:09 +00:00
2022-07-28 13:58:26 -06:00
2023-05-22 21:53:37 +00:00
2022-09-06 16:58:16 -06:00
2023-09-05 19:56:02 +02:00
2022-02-10 14:22:45 -07:00
2022-02-10 14:22:45 -07:00
2022-02-10 14:22:45 -07:00
2022-02-18 10:33:18 -07:00
2022-02-10 14:22:45 -07:00
2022-02-10 14:22:45 -07:00
2023-11-28 14:52:53 +00:00
2022-02-10 14:22:45 -07:00
2022-02-10 14:22:45 -07:00
2024-04-17 11:09:11 -04:00
2023-04-12 23:10:23 -03:00