From 30403e8d708a070bf2ceade50d78d00fc45fd0a0 Mon Sep 17 00:00:00 2001 From: "kemal.earth" <606977+kemaldotearth@users.noreply.github.com> Date: Wed, 22 Apr 2026 18:58:55 +0100 Subject: [PATCH] chore(studio): switch opt in for logs (#45123) ## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Make it opt in not default. ## Summary by CodeRabbit * **Bug Fixes** * Fixed the unified logs preview feature to properly respect both the feature flag and user preference settings. --- .../interfaces/App/FeaturePreview/FeaturePreviewContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewContext.tsx b/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewContext.tsx index 073660d5cc0..4a3420ee54f 100644 --- a/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewContext.tsx +++ b/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewContext.tsx @@ -94,7 +94,7 @@ export const useUnifiedLogsPreview = () => { const isLoading = !flagsHaveLoaded || isOrgLoading const isEligible = unifiedLogsEnabled && isEnterpriseOrSupabaseOrg - const isEnabled = isEligible && flags[LOCAL_STORAGE_KEYS.UI_PREVIEW_UNIFIED_LOGS] + const isEnabled = unifiedLogsEnabled && flags[LOCAL_STORAGE_KEYS.UI_PREVIEW_UNIFIED_LOGS] const enable = () => onUpdateFlag(LOCAL_STORAGE_KEYS.UI_PREVIEW_UNIFIED_LOGS, true) const disable = () => onUpdateFlag(LOCAL_STORAGE_KEYS.UI_PREVIEW_UNIFIED_LOGS, false)