Skip to content

fix(studio): give unified logs filter 'Only' button a solid background - #47953

Merged
joshenlim merged 3 commits into
masterfrom
jordi/unified-logs-only-button
Jul 15, 2026
Merged

joshenlim merged 3 commits into
masterfrom
jordi/unified-logs-only-button

Conversation

@jordienr

@jordienr jordienr commented Jul 15, 2026 •

Copy link
Copy Markdown
Member

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

  • Style
    • Improved checkbox filter hover interactions by hiding count markers when hovering over an option.
    • Updated the “Only” control styling for clearer visibility, alignment, and hover behavior.
    • Capitalized the control label to “Only” for improved readability.

@vercel

vercel Bot commented Jul 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
studio-self-hosted Ready Ready Preview, Comment Jul 15, 2026 11:54am
studio-staging Ready Ready Preview, Comment Jul 15, 2026 11:54am
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jul 15, 2026 11:54am
design-system Skipped Skipped Jul 15, 2026 11:54am
docs Skipped Skipped Jul 15, 2026 11:54am
ui-library Skipped Skipped Jul 15, 2026 11:54am
zone-www-dot-com Skipped Skipped Jul 15, 2026 11:54am

Request Review

@coderabbitai

coderabbitai Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a20e30b7-9a3c-48e2-9f95-c5e92b5fb38c

📥 Commits

Reviewing files that changed from the base of the PR and between 1242d17 and 99bd89d.

📒 Files selected for processing (2)
  • apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckbox.tsx
  • apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckboxAsync.tsx
🚧 Files skipped from review as they are similar to previous changes (2)
  • apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckboxAsync.tsx
  • apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckbox.tsx

📝 Walkthrough

Walkthrough

Updates checkbox filter hover styling in synchronous and asynchronous data table filters, including count indicator visibility, “Only” control layout, and label capitalization.

Changes

Filter hover controls

Layer / File(s) Summary
Checkbox filter hover styling
apps/studio/components/ui/DataTable/DataTableFilterCheckbox*.tsx
Count indicators now hide on group hover, while the “Only” controls use updated visibility, alignment, text styling, and capitalized labels.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is useful but does not follow the required template or include the required section headings and CONTRIBUTING acknowledgment. Add the template sections: CONTRIBUTING.md YES/NO, change type, current behavior, new behavior, and additional context.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title matches the main change: updating the Unified Logs filter "Only" button styling.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jordi/unified-logs-only-button

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@supabase

supabase Bot commented Jul 15, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@github-actions

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (tanstack)

passed  238 passed
skipped  5 skipped

Details

stats  243 tests across 28 suites
duration  4 minutes, 34 seconds
commit  9b1afca

Skipped tests

Features › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled
Features › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected
Features › sql-editor.spec.ts › SQL Editor › share with team works as expected
Features › sql-editor.spec.ts › SQL Editor › folders works as expected
Features › sql-editor.spec.ts › SQL Editor › other SQL snippets actions work as expected

@github-actions

github-actions Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (next)

passed  237 passed
flaky  1 flaky
skipped  5 skipped

Details

stats  243 tests across 28 suites
duration  5 minutes, 5 seconds
commit  99bd89d

Flaky tests

Features › queue-table-operations.spec.ts › Queue Table Operations › pending changes persist when switching between tables

Skipped tests

Features › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled
Features › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected
Features › sql-editor.spec.ts › SQL Editor › share with team works as expected
Features › sql-editor.spec.ts › SQL Editor › folders works as expected
Features › sql-editor.spec.ts › SQL Editor › other SQL snippets actions work as expected

@jordienr
jordienr marked this pull request as ready for review July 15, 2026 10:21
@jordienr
jordienr requested a review from a team as a code owner July 15, 2026 10:21

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between c9eb33a and 1242d17.

📒 Files selected for processing (2)
  • apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckbox.tsx
  • apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckboxAsync.tsx

Comment on lines +151 to +155
'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>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 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: add bg-accent/50.
  • apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckboxAsync.tsx#L123-L127: add bg-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',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason for the text-[10px]? the text sizes don't match as a result between the label and the "only"

Image

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found it looked a bit too big specially after moving to uppercase O happy to undo it

@joshenlim joshenlim Jul 15, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gotcha - yeah reckon text-xs is still okay - pushed to update 🙏
also updated the bg color of only to match the row
image

@joshenlim joshenlim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified changes on local!

@joshenlim
joshenlim enabled auto-merge (squash) July 15, 2026 11:51
@joshenlim
joshenlim merged commit 92b8ba7 into master Jul 15, 2026
37 checks passed
@joshenlim
joshenlim deleted the jordi/unified-logs-only-button branch July 15, 2026 11:59
@github-actions

github-actions Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1784116966)

Score Average Improvements Regressions
Knowledge Usage 89.7% (-8pp) - 2 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+5pp) 1 🟢 -
Tool Usage 66.7% (-8pp) - 2 🔴
Time_to_first_token 2.67tok (-0.46tok) 21 🟢 8 🔴
Llm_calls 3.16 (+0.3) 15 🟢 8 🔴
Tool_calls 3.03 (+0.21) 13 🟢 8 🔴
Errors 5.29 (+0.01) 3 🟢 4 🔴
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 23416.44tok (-354.2tok) 16 🟢 10 🔴
Prompt_cached_tokens 8303.82tok (+1559.54tok) 15 🟢 9 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 611.06tok (+18.92tok) 15 🟢 14 🔴
Completion_reasoning_tokens 103.89tok (+22.82tok) 11 🟢 16 🔴
Total_tokens 24027.49tok (-335.28tok) 19 🟢 10 🔴
Estimated_cost 0$ (0$) 16 🟢 10 🔴
Duration 14.63s (-3.08s) 22 🟢 7 🔴
Llm_duration 11.1s (-1.18s) 19 🟢 10 🔴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants