-
-
Couldn't load subscription status.
- Fork 10.3k
Feat/logs preview #37230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/logs preview #37230
Conversation
Introduces a unified logs feature preview, allowing users to enable or disable a new logs interface with enhanced filtering and real-time updates. Adds context hooks, UI components (UnifiedLogsPreview, LogsSwitchBox), and conditional logic to display the new interface or revert to the old one. Updates routing and feature preview modal to support the unified logs preview, and extends local storage keys for feature flag management.
Replaced custom SVG icons with Lucide React icons in LogsSidebarMenuV2 and FilterSideBar for consistency and maintainability. Removed the unused LogsSwitchBox component and cleaned up related imports in FeaturePreviewModal.
Introduces a reusable FeaturePreviewSidebarPanel component and replaces InnerSideBarEmptyPanel usages in LogsSidebarMenuV2 and FilterSideBar. Removes unified logs feature flag logic from Sidebar and NavigationBar.utils, simplifying route generation and UI logic.
Removed the unused Sparkles icon import from LogsSidebarMenuV2. Updated FeaturePreviewSidebarPanel to use 'bg-muted/10' for background, simplified class names for text alignment, and cleaned up redundant text-left classes for improved styling consistency.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
6 Skipped Deployments
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
apps/studio/components/interfaces/App/FeaturePreview/FeaturePreview.constants.tsx
Outdated
Show resolved
Hide resolved
apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewContext.tsx
Outdated
Show resolved
Hide resolved
apps/studio/components/interfaces/App/FeaturePreview/UnifiedLogsPreview.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
- Tested on preview
Context
Shifts Unified Logs into feature preview - instead of having its own nav button in the side bar, unified logs will share the existing logs button, in which the link to the existing logs explorer or the new unified logs will be toggled by the feature preview
Key Changes
unifiedLogsfeature flag now controls the visibility of the followingAdded Unified Logs to feature preview