Files
cal.diy/packages/features/flags/config.ts
T
a12ab5bb65 chore: add database-backed feature flag for sidebar tips section (#26516)
* chore: remove tips section from sidebar

Co-Authored-By: amit@cal.com <samit91848@gmail.com>

* chore: add feature flag for sidebar tips section

Co-Authored-By: amit@cal.com <samit91848@gmail.com>

* chore: use database-backed feature flag for sidebar tips section

Co-Authored-By: amit@cal.com <samit91848@gmail.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-01-09 22:31:45 +05:30

51 lines
1.4 KiB
TypeScript

/**
* Right now we only support boolean flags.
* Maybe later on we can add string variants or numeric ones
**/
export type AppFlags = {
"calendar-cache": boolean;
"calendar-cache-serve": boolean;
emails: boolean;
insights: boolean;
teams: boolean;
webhooks: boolean;
workflows: boolean;
organizations: boolean;
"email-verification": boolean;
"google-workspace-directory": boolean;
"disable-signup": boolean;
attributes: boolean;
"organizer-request-email-v2": boolean;
"delegation-credential": boolean;
"salesforce-crm-tasker": boolean;
"workflow-smtp-emails": boolean;
"cal-video-log-in-overlay": boolean;
"use-api-v2-for-team-slots": boolean;
pbac: boolean;
"restriction-schedule": boolean;
"team-booking-page-cache": boolean;
"cal-ai-voice-agents": boolean;
"tiered-support-chat": boolean;
"calendar-subscription-cache": boolean;
"calendar-subscription-sync": boolean;
"onboarding-v3": boolean;
"booker-botid": boolean;
"booking-calendar-view": boolean;
"booking-email-sms-tasker": boolean;
"bookings-v3": boolean;
"booking-audit": boolean;
"sidebar-tips": boolean;
};
export type TeamFeatures = Record<keyof AppFlags, boolean>;
/**
* Explicit state for API/UI layer.
* - "enabled": row with enabled = true
* - "disabled": row with enabled = false
* - "inherit": no row
*/
export type FeatureState = "enabled" | "disabled" | "inherit";
export type FeatureId = keyof AppFlags;