Repository navigation
fix(studio): give unified logs filter 'Only' button a solid background - #47953
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughUpdates checkbox filter hover styling in synchronous and asynchronous data table filters, including count indicator visibility, “Only” control layout, and label capitalization. ChangesFilter hover controls
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 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 |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
🎭 Playwright Test Results (tanstack)Details
Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
🎭 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckbox.tsx`:
- Around line 151-155: Add bg-accent/50 to the “Only” button class lists in
DataTableFilterCheckbox.tsx (lines 151-155) and DataTableFilterCheckboxAsync.tsx
(lines 123-127), preserving their existing hover and focus styling.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 6f150ccb-a39a-4979-bdde-759caaf698a3
📒 Files selected for processing (2)
apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckbox.tsxapps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckboxAsync.tsx
| 'absolute inset-y-0 right-0 hidden font-normal text-[10px] text-muted-foreground hover:text-foreground group-hover:flex items-center', | ||
| 'rounded-md ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2' | ||
| )} | ||
| > | ||
| <span className="pl-1 pr-2">only</span> | ||
| <span className="pl-1 pr-2">Only</span> |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Apply the row-hover background to both “Only” buttons.
Both buttons are revealed over existing label/count content but remain transparent, so the PR’s overlap-prevention objective is incomplete.
apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckbox.tsx#L151-L155: addbg-accent/50.apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckboxAsync.tsx#L123-L127: addbg-accent/50.
📍 Affects 2 files
apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckbox.tsx#L151-L155(this comment)apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckboxAsync.tsx#L123-L127
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In
`@apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckbox.tsx`
around lines 151 - 155, Add bg-accent/50 to the “Only” button class lists in
DataTableFilterCheckbox.tsx (lines 151-155) and DataTableFilterCheckboxAsync.tsx
(lines 123-127), preserving their existing hover and focus styling.
| onClick={() => column?.setFilterValue([option.value])} | ||
| className={cn( | ||
| 'absolute inset-y-0 right-0 hidden font-normal text-muted-foreground backdrop-blur-xs hover:text-foreground group-hover:block', | ||
| 'absolute inset-y-0 right-0 hidden font-normal text-[10px] text-muted-foreground hover:text-foreground group-hover:flex items-center', |
There was a problem hiding this comment.
I found it looked a bit too big specially after moving to uppercase O happy to undo it
Braintrust eval report
|
The "Only" button in the Unified Logs filter facets had no background, so it overlapped the label/count behind it on hover. Added a solid
bg-background, set the label to 10px, and capitalized it to "Only". Applied to both the sync and async filter checkbox components.Before / After
Button now sits on an opaque background and no longer bleeds into the row below.
Summary by CodeRabbit