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:
4 files changed
+12
-3
No files matched your search
@@ -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>;
|
||||
|
||||
@@ -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;
|
||||
Reference in new issue
Block a user