Repository navigation
Conversation
Prettify is disabled for logs snippets, but gave no indication why. Uses DropdownMenuItemTooltip / ButtonTooltip for the menu item and toolbar button respectively, per review feedback on #48452.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe SQL editor now uses shared tooltip components for the prettify dropdown item and toolbar button. Log-source users see a restriction message, while other users see the prettify label and keyboard shortcut. ChangesSQL prettify tooltip integration
Estimated code review effort: 1 (Trivial) | ~5 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🎭 Playwright Test Results (next)Details
Flaky testsFeatures › queue-table-operations.spec.ts › Queue Table Operations › pending changes persist when switching between tables Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
Co-authored-by: Charis <[email protected]>
Braintrust eval report
|
I have read the CONTRIBUTING.md file.
YES
What kind of change does this PR introduce?
Bug fix
What is the current behavior?
In the SQL Editor, the Prettify SQL action (both the "More actions" dropdown menu item and the toolbar button) is disabled for logs snippets, but gives no indication why.
What is the new behavior?
The disabled Prettify menu item now uses
DropdownMenuItemTooltipand the disabled Prettify toolbar button usesButtonTooltip, both showing "Can only prettify SQL queries" while disabled. Addresses review feedback from #48452 (Linear FE-4038).Additional context
Resolves FE-4038
Summary by CodeRabbit