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>
This commit is contained in:
authored and GitHub committed 2026-01-09 22:31:45 +05:30
1 parent 2b7c087ac8
commit a12ab5bb65
4 files changed
+12 -3

No files matched your search

+1
View File
@@ -34,6 +34,7 @@ export type AppFlags = {
"booking-email-sms-tasker": boolean;
"bookings-v3": boolean;
"booking-audit": boolean;
"sidebar-tips": boolean;
};
export type TeamFeatures = Record<keyof AppFlags, boolean>;
+1
View File
@@ -33,6 +33,7 @@ const initialData: AppFlags = {
"booking-email-sms-tasker": false,
"bookings-v3": false,
"booking-audit": false,
"sidebar-tips": false,
};
if (process.env.NEXT_PUBLIC_IS_E2E) {
@@ -0,0 +1,3 @@
INSERT INTO "Feature" (slug, enabled, description, "type")
VALUES ('sidebar-tips', false, 'Enables the tips section in the sidebar.', 'OPERATIONAL')
ON CONFLICT (slug) DO NOTHING;