
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
..
2023-06-28 18:22:51 +02:00
2022-04-15 08:54:09 +00:00
2022-07-28 13:58:26 -06:00
2023-05-23 08:56:24 +00:00
2023-05-22 21:53:37 +00:00
2022-09-06 16:58:16 -06:00
2025-12-11 11:14:31 +01:00
2025-11-05 14:48:06 +00:00
2024-05-20 09:43:06 +02:00
2025-12-18 12:24:41 -03:00
2023-11-13 13:55:28 +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-10 14:22:45 -07:00
2022-02-10 14:22:45 -07:00
2023-09-05 19:56:02 +02:00
2023-06-21 17:14:23 +02:00
2023-06-06 15:31:43 +00:00
2023-06-21 17:14:23 +02:00
2023-06-06 15:31:43 +00:00
2023-06-21 17:14:23 +02:00
2023-06-06 15:31:43 +00:00
2023-05-30 16:31:49 +00:00
2025-09-14 12:00:12 -03:00
2022-02-10 14:22:45 -07:00
2022-02-10 14:22:45 -07:00
2022-10-18 11:46:22 -06:00
2022-05-14 13:49:39 +00:00
2022-02-10 14:22:45 -07:00
2022-02-10 14:22:45 -07:00
2022-08-08 13:39:51 -06:00
2022-08-08 13:39:51 -06:00
2023-02-01 13:10:16 +01:00
2025-09-14 12:00:12 -03:00
2025-12-12 17:11:21 +00:00
2025-12-12 17:11:21 +00:00
2025-12-12 17:11:21 +00:00
2025-12-12 17:11:21 +00:00
2025-12-12 17:11:21 +00:00
2025-12-12 17:11:21 +00:00
2025-12-12 17:11:21 +00:00
2025-12-12 17:11:21 +00: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
2024-09-26 15:27:56 -04:00
2023-11-28 14:52:53 +00:00
2022-11-22 12:04:06 +00:00
2023-10-06 07:46:21 +00:00
2024-08-30 16:38:09 -04:00
2024-01-16 17:01:08 +00: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
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-09-15 19:53:09 +00:00
2023-06-15 10:27:39 -07:00
2022-08-25 18:48:50 -06:00
2025-03-11 11:49:51 +05:30
2022-02-10 14:22:45 -07:00
2025-03-09 08:53:34 +00:00
2022-02-10 14:22:45 -07:00
2025-05-27 23:12:25 +00:00
2025-09-17 12:53:35 +05:30
2025-11-05 14:48:06 +00:00
2022-12-13 21:22:38 +00:00
2022-12-13 21:22:38 +00:00
2024-05-20 14:10:13 +05:30
2024-04-17 11:09:11 -04:00
2024-06-27 15:43:20 +00:00
2024-06-27 15:43:20 +00:00
2022-09-14 08:15:13 +01:00
2022-09-14 08:15:13 +01:00
2022-09-14 08:15:13 +01:00
2023-04-12 23:10:23 -03:00
2022-02-10 14:22:45 -07:00