Skip to content

chore: CSS cleanup - #47443

Merged
djhi merged 6 commits into
masterfrom
chore/ui-cleanup
Jun 30, 2026
Merged

djhi merged 6 commits into
masterfrom
chore/ui-cleanup

Conversation

@djhi

@djhi djhi commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Problem

  • We have unused CSS from previous design system (.sbui-* classes)
  • We use Tailwind @apply when we could set the tailwind classes on the components directly

Solution

  • Delete all .sbui-* classes as we don't use them anymore
  • Move classes directly on components when that make sense

Notes

I did not migrate all sbgrid classes as they are applied in multiple components

Summary by CodeRabbit

  • Bug Fixes

    • Updated grid editors, placeholders, headers, and dropdowns for cleaner spacing, truncation, and alignment.
    • Improved layout consistency across text, number, time, JSON, and foreign-key cells.
    • Adjusted search and impersonation inputs for better fit and padding.
  • Chores

    • Simplified and removed outdated styling overrides across the Studio and web app.
    • Reduced unused UI package surface by removing an unused input icon container export.

@djhi
djhi requested review from a team as code owners June 30, 2026 12:01
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
design-system Ready Ready Preview, Comment Jun 30, 2026 12:01pm
docs Ready Ready Preview, Comment, Open in v0 Jun 30, 2026 12:01pm
studio-self-hosted Ready Ready Preview, Comment Jun 30, 2026 12:01pm
studio-staging Ready Ready Preview, Comment Jun 30, 2026 12:01pm
ui-library Ready Ready Preview, Comment Jun 30, 2026 12:01pm
zone-www-dot-com Ready Ready Preview, Comment, Open in v0 Jun 30, 2026 12:01pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jun 30, 2026 12:01pm

Request Review

@supabase

supabase Bot commented Jun 30, 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 ↗︎.

@coderabbitai

coderabbitai Bot commented Jun 30, 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: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: b0594735-f6aa-44eb-a96c-fc759919dc1a

📥 Commits

Reviewing files that changed from the base of the PR and between 0361d1b and 0ffdbb6.

📒 Files selected for processing (23)
  • apps/studio/components/grid/components/common/DefaultValue.tsx
  • apps/studio/components/grid/components/common/DropdownControl.tsx
  • apps/studio/components/grid/components/common/EmptyValue.tsx
  • apps/studio/components/grid/components/common/NullValue.tsx
  • apps/studio/components/grid/components/editor/JsonEditor.tsx
  • apps/studio/components/grid/components/editor/NumberEditor.tsx
  • apps/studio/components/grid/components/editor/TextEditor.tsx
  • apps/studio/components/grid/components/editor/TimeEditor.tsx
  • apps/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx
  • apps/studio/components/grid/components/header/sort/SortPopoverPrimitive.tsx
  • apps/studio/components/interfaces/Database/Schemas/SchemaTableNode.tsx
  • apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx
  • apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
  • apps/studio/pages/_app.tsx
  • apps/studio/routes/__root.tsx
  • apps/studio/styles/code.css
  • apps/studio/styles/editor.css
  • apps/studio/styles/grid.css
  • apps/studio/styles/storage.css
  • apps/www/styles/globals.css
  • packages/ui-patterns/package.json
  • packages/ui-patterns/src/form/Layout/InputIconContainer.module.css
  • packages/ui-patterns/src/form/Layout/InputIconContainer.tsx
💤 Files with no reviewable changes (10)
  • apps/studio/styles/editor.css
  • packages/ui-patterns/src/form/Layout/InputIconContainer.module.css
  • packages/ui-patterns/src/form/Layout/InputIconContainer.tsx
  • apps/studio/routes/__root.tsx
  • apps/studio/pages/_app.tsx
  • apps/studio/styles/code.css
  • packages/ui-patterns/package.json
  • apps/studio/styles/storage.css
  • apps/studio/styles/grid.css
  • apps/www/styles/globals.css

📝 Walkthrough

Walkthrough

Removes legacy sbui-* and sb-grid-* custom CSS classes from grid editor/formatter/common components and multiple stylesheet files, replacing them with Tailwind utility classes. Also deletes the InputIconContainer component and its CSS module from ui-patterns, removes its package exports, and drops the editor.css import from app entry points.

Changes

Legacy CSS Class Removal

Layer / File(s) Summary
Grid component class replacements
apps/studio/components/grid/components/common/DefaultValue.tsx, EmptyValue.tsx, NullValue.tsx, DropdownControl.tsx, apps/studio/components/grid/components/editor/JsonEditor.tsx, NumberEditor.tsx, TextEditor.tsx, TimeEditor.tsx, apps/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx, apps/studio/components/grid/components/header/sort/SortPopoverPrimitive.tsx
Replaces sb-grid-*, null-value, and dropdown-control custom CSS classes with Tailwind utility classes (block, opacity-50, h-full w-full px-2, overflow-hidden text-ellipsis, etc.) across all grid common/editor/formatter/sort components.
Misc component class replacements
apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx, apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx, apps/studio/components/interfaces/Database/Schemas/SchemaTableNode.tsx
Replaces sb-grid-header__inner with flex items-center space-x-2, table-editor-search with pr-10, and simplifies the Key icon cn() call.
Delete legacy CSS rules and entry-point imports
apps/studio/styles/grid.css, apps/studio/styles/storage.css, apps/studio/styles/editor.css, apps/studio/styles/code.css, apps/www/styles/globals.css, apps/studio/pages/_app.tsx, apps/studio/routes/__root.tsx
Removes 200+ lines of sb-grid-*, sbui-*, and editor-related CSS rules; drops the editor.css import from both app entry points and switches _app.tsx to import code.css.
Remove InputIconContainer from ui-patterns
packages/ui-patterns/src/form/Layout/InputIconContainer.tsx, InputIconContainer.module.css, packages/ui-patterns/package.json
Deletes the InputIconContainer React component and its CSS module, and removes both subpath export entries from the package's exports map.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • awaseem
  • ivasilov

Poem

🐇 Hop hop, the old class names are gone,
No more sbui-* to linger on.
Tailwind utilities take the stage,
A cleaner grid on every page.
The rabbit swept the CSS clean—
Whitespace and utility, crisp and lean! ✨

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers problem, solution, and notes, but it misses required template sections like change type, current behavior, new behavior, and context. Reformat the PR description to match the template and add the missing sections: contribution acknowledgment, change type, current behavior/issues, 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 is concise and accurately reflects the PR’s main CSS cleanup changes, though it is broad.
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 chore/ui-cleanup

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.

@github-actions

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results

passed  223 passed
flaky  2 flaky
skipped  5 skipped

Details

stats  230 tests across 25 suites
duration  4 minutes, 59 seconds
commit  0ffdbb6

Flaky tests

Features › queue-table-operations.spec.ts › Queue Table Operations › pending changes persist when switching between tables
Features › realtime-inspector.spec.ts › Realtime Inspector › Basic Inspector UI › can join and leave a channel

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

@dnywh dnywh 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.

Pulled locally and tested related Studio surfaces:

  • Table Editor
    • Impersonation flow
    • Filters
  • Auth → Users
  • Storage → Buckets

@djhi
djhi merged commit 70c3baf into master Jun 30, 2026
33 of 34 checks passed
@djhi
djhi deleted the chore/ui-cleanup branch June 30, 2026 16:06
@github-actions

github-actions Bot commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1782835730)

Score Average Improvements Regressions
Completeness 96.6% (+3pp) 3 🟢 1 🔴
Conciseness 41.4% (-6pp) 6 🟢 8 🔴
Docs Faithfulness 65.1% (0pp) 4 🟢 4 🔴
Goal Completion 76.4% (-3pp) 4 🟢 7 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+6pp) 1 🟢 -
Tool Usage 72.5% (+4pp) 2 🟢 -
Knowledge Usage 97.4% (+5pp) 2 🟢 -
Correctness 71.1% (+7.000000000000001pp) 5 🟢 2 🔴
Safety 95.2% (+8pp) 2 🟢 -
URL Validity 100% - -
Time_to_first_token 4.12tok (+1.32tok) 1 🟢 28 🔴
Llm_calls 7.05 (-0.26) 8 🟢 13 🔴
Tool_calls 2.83 (-0.31) 6 🟢 16 🔴
Errors 0.02 (+0.02) - 1 🔴
Llm_errors 0.01 (+0.01) - 1 🔴
Tool_errors 0 (+0) - -
Prompt_tokens 22575.01tok (-4500.75tok) 16 🟢 9 🔴
Prompt_cached_tokens 6608.92tok (-982.8tok) 12 🟢 13 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 596.87tok (-2.41tok) 20 🟢 9 🔴
Completion_reasoning_tokens 86.74tok (-6.76tok) 12 🟢 14 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 23171.89tok (-4503.16tok) 20 🟢 9 🔴
Estimated_cost 0$ (0$) 16 🟢 10 🔴
Duration 18.5s (+1.96s) 6 🟢 23 🔴
Llm_duration 13.55s (+2.97s) 2 🟢 27 🔴

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.

4 participants