tududi/frontend/utils
Chris 57a6e558f3
fix: use CALDAV_ENABLED for calendar feature flag (#1070)
* fix: add FF_ENABLE_CALDAV feature flag for CalDAV functionality

Introduces a new dedicated feature flag for CalDAV sync that checks
both FF_ENABLE_CALDAV and CALDAV_ENABLED environment variables. This
allows the CalDAV tab to appear in profile settings when users set
CALDAV_ENABLED=true as documented.

The existing FF_ENABLE_CALENDAR remains unchanged as it's for a
separate (hidden) calendar feature.

Changes:
- Added 'caldav' feature flag to backend service (checks FF_ENABLE_CALDAV
  or CALDAV_ENABLED)
- Updated frontend FeatureFlags interface to include 'caldav'
- Changed CalDAV tab to use 'caldav' feature flag instead of 'calendar'
- Added FF_ENABLE_CALDAV to .env.example, .env.test, Dockerfile, and CI

Fixes #1048

* fix: add caldav property to all FeatureFlags initializations

Fixes TypeScript errors where FeatureFlags objects were missing the
new caldav property in:
- frontend/utils/featureFlags.ts (defaultFlags and error return)
- frontend/components/Navbar.tsx
- frontend/components/Sidebar.tsx
- frontend/components/Sidebar/SidebarNav.tsx
2026-04-25 18:21:53 +03:00
..
apiKeysService.ts fix: add CSRF token support to frontend requests (#1025) 2026-04-14 15:06:56 +03:00
areasService.ts fix: add CSRF token support to frontend requests (#1025) 2026-04-14 15:06:56 +03:00
attachmentsService.ts fix: add CSRF token support to frontend requests (#1025) 2026-04-14 15:06:56 +03:00
authUtils.ts fix: add CSRF token support to frontend requests (#1025) 2026-04-14 15:06:56 +03:00
backupService.ts fix: add CSRF token support to frontend requests (#1025) 2026-04-14 15:06:56 +03:00
bannersService.ts Fix today pagination (#596) 2025-11-26 23:00:50 +02:00
caldavService.ts feat(caldav): Add CalDAV Synchronization Support (Issue #978) (#1030) 2026-04-17 17:40:39 +03:00
csrfService.ts fix: add CSRF token support to frontend requests (#1025) 2026-04-14 15:06:56 +03:00
dateUtils.test.ts Fix date format inconsistency in Task detail screen (#956) 2026-03-21 18:47:33 +02:00
dateUtils.ts Fix date format inconsistency in Task detail screen (#956) 2026-03-21 18:47:33 +02:00
featureFlags.ts fix: use CALDAV_ENABLED for calendar feature flag (#1070) 2026-04-25 18:21:53 +03:00
fetcher.ts Lint frontend (#131) 2025-07-09 12:23:55 +03:00
habitsService.ts fix: add CSRF token support to frontend requests (#1025) 2026-04-14 15:06:56 +03:00
inboxService.ts fix: add CSRF token support to frontend requests (#1025) 2026-04-14 15:06:56 +03:00
keyboardShortcutsService.ts Add custom keyboard shortcuts (#749) 2025-12-28 21:58:21 +02:00
localeUtils.ts Fix date format to respect timezone preference, not just language (#898) (#916) 2026-03-06 15:44:15 +02:00
noteDeleteUtils.ts Fix notes.js & areas.js UID usage and remove IDs. (#355) 2025-09-29 16:03:46 +03:00
notesService.ts fix: add CSRF token support to frontend requests (#1025) 2026-04-14 15:06:56 +03:00
oidcService.ts fix: add CSRF token support to frontend requests (#1025) 2026-04-14 15:06:56 +03:00
profileService.ts fix: add CSRF token support to frontend requests (#1025) 2026-04-14 15:06:56 +03:00
projectsService.ts fix: add CSRF token support to frontend requests (#1025) 2026-04-14 15:06:56 +03:00
searchService.ts Reorder elements (#687) 2025-12-09 10:51:51 +02:00
sharesService.ts fix: add CSRF token support to frontend requests (#1025) 2026-04-14 15:06:56 +03:00
slugUtils.ts Setup slugify and fix nanoid issues 2025-08-08 23:14:40 +03:00
tagsService.ts fix: add CSRF token support to frontend requests (#1025) 2026-04-14 15:06:56 +03:00
taskEventService.ts Fix bump issues (#651) 2025-12-04 18:19:40 +02:00
taskIntelligenceService.ts Lint frontend (#131) 2025-07-09 12:23:55 +03:00
taskSortUtils.ts Fix in progress today priority 2025-12-14 09:07:39 +02:00
tasksService.ts fix: add CSRF token support to frontend requests (#1025) 2026-04-14 15:06:56 +03:00
timezoneUtils.ts fixup! Scaffold timezone package 2025-10-20 16:01:49 +03:00
urlService.ts fix: add CSRF token support to frontend requests (#1025) 2026-04-14 15:06:56 +03:00
userUtils.ts Tweak UI for feature 2025-10-13 11:09:19 +03:00