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