tududi/frontend/components/Sidebar
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
..
SidebarAreas.tsx Tweak playwright options (#303) 2025-09-09 12:53:40 +03:00
SidebarFooter.tsx Add custom keyboard shortcuts (#749) 2025-12-28 21:58:21 +02:00
SidebarHabits.tsx Feat: habits (#707) 2025-12-13 08:47:52 +02:00
SidebarHeader.tsx Fix static base path (#549) 2025-11-16 22:43:06 +02:00
SidebarNav.tsx fix: use CALDAV_ENABLED for calendar feature flag (#1070) 2026-04-25 18:21:53 +03:00
SidebarNotes.tsx Fix sidebar active links highlight (#632) 2025-12-02 22:45:50 +02:00
SidebarProjects.tsx Feat/add project states (#354) 2025-09-29 16:04:25 +03:00
SidebarTags.tsx Tweak playwright options (#303) 2025-09-09 12:53:40 +03:00
SidebarViews.tsx fix: add CSRF token support to frontend requests (#1025) 2026-04-14 15:06:56 +03:00