
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-09-11 15:27:50 +01:00
2025-10-21 20:02:03 +01:00
2025-12-15 10:43:22 +00:00
2025-10-21 20:02:03 +01:00
2022-06-27 12:17:38 +02:00
2025-11-19 15:46:05 -05:00
2025-11-19 15:46:05 -05:00
2025-09-10 23:18:59 -03:00
2025-10-09 14:02:12 +00:00
2025-08-26 18:57:38 -03:00
2025-03-19 19:00:55 -03:00
2024-04-09 16:46:06 +00:00
2025-09-11 15:27:50 +01:00
2025-12-18 12:24:41 -03:00
2025-12-18 12:24:41 -03:00
2025-11-19 01:11:52 +00:00
2025-10-09 14:02:12 +00:00
2025-03-05 14:58:02 -03:00
2025-09-10 23:18:59 -03:00
2025-10-09 14:02:12 +00:00
2025-10-09 14:02:12 +00:00
2025-09-12 05:57:09 -03:00
2023-06-28 18:22:51 +02:00
2024-04-25 12:47:17 -04:00
2025-10-21 20:02:03 +01:00
2024-04-25 12:47:17 -04:00
2024-12-09 11:37:46 +01:00
2025-11-04 15:55:09 +00:00
2025-09-19 10:16:56 -03:00
2025-09-11 15:27:50 +01:00
2024-04-25 12:47:17 -04:00
2025-10-21 20:02:03 +01:00
2025-03-02 16:52:57 -03:00
2025-09-08 00:59:51 +00:00