Skip to content

Revert "refactor(studio): static tab kind registry and tab id codec (PR 1/9)" - #48762

Merged
charislam merged 1 commit into
masterfrom
revert-48718-charis/tabs-decoupling
Aug 5, 2026
Merged

charislam merged 1 commit into
masterfrom
revert-48718-charis/tabs-decoupling

Conversation

@charislam

@charislam charislam commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Reverts #48718

Summary by CodeRabbit

  • Style

    • Updated SQL editor tree icons for consistent log SQL snippet, table, schema, and view presentation.
    • Preserved letter-based fallback icons for other entity types.
  • Refactor

    • Consolidated entity icon rendering into a shared interface, improving visual consistency without changing user workflows.

@charislam
charislam requested a review from a team as a code owner August 5, 2026 15:53
@vercel

vercel Bot commented Aug 5, 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 Aug 5, 2026 3:58pm
studio-staging Ready Ready Preview Aug 5, 2026 3:58pm
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Aug 5, 2026 3:58pm
design-system Skipped Skipped Aug 5, 2026 3:58pm
docs Skipped Skipped v0 Aug 5, 2026 3:58pm
ui-library Skipped Skipped Aug 5, 2026 3:58pm
zone-www-dot-com Skipped Skipped v0 Aug 5, 2026 3:58pm

Request Review

@coderabbitai

coderabbitai Bot commented Aug 5, 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 Plus

Run ID: 429a635a-cb8e-4198-8c6c-7e2dcda2ff9b

📥 Commits

Reviewing files that changed from the base of the PR and between d45e0cd and f8592fb.

📒 Files selected for processing (6)
  • apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SQLEditorTreeViewItem.tsx
  • apps/studio/components/ui/EntityTypeIcon.tsx
  • apps/studio/state/tabs/kinds.icons.tsx
  • apps/studio/state/tabs/kinds.ts
  • apps/studio/state/tabs/tab-id.test.ts
  • apps/studio/state/tabs/tab-id.ts
💤 Files with no reviewable changes (4)
  • apps/studio/state/tabs/tab-id.test.ts
  • apps/studio/state/tabs/kinds.ts
  • apps/studio/state/tabs/kinds.icons.tsx
  • apps/studio/state/tabs/tab-id.ts

📝 Walkthrough

Walkthrough

This PR moves LogsSnippetIcon into EntityTypeIcon, adds explicit shared icon rendering for log SQL, tables, schemas, and views, and updates the SQL editor tree item to use the new shared export.

Changes

Shared entity icon updates

Layer / File(s) Summary
Shared logs and entity icon rendering
apps/studio/components/ui/EntityTypeIcon.tsx
Adds exported LogsSnippetIcon. EntityTypeIcon now returns that icon for log SQL entries and uses explicit Lucide icons for tables, schemas, and views instead of the previous generic lookup path.
SQL editor tree icon import
apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SQLEditorTreeViewItem.tsx
Rewires SQLEditorTreeViewItem to import LogsSnippetIcon from EntityTypeIcon and removes the old tab-icon-module import.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • supabase/supabase#48718: This PR directly overlaps with the icon registry and tab helper changes that this diff removes or rewires.
  • supabase/supabase#48457: Both PRs change SQLEditorTreeViewItem.tsx and EntityTypeIcon.tsx to handle LogsSnippetIcon for log_sql.
  • supabase/supabase#48514: Both PRs touch log_sql snippet rendering behavior in the Studio UI.

Suggested reviewers: joshenlim

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description only states that the pull request reverts PR #48718 and omits the required template sections and implementation details. Complete the template with the contribution confirmation, change type, current behavior, new behavior, relevant issues, and additional context.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states that this pull request reverts the referenced tab kind registry and tab ID codec refactor.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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 revert-48718-charis/tabs-decoupling

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.

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

Approving to unblock

@charislam
charislam enabled auto-merge (squash) August 5, 2026 15:57
@charislam
charislam merged commit 8831e15 into master Aug 5, 2026
39 checks passed
@charislam
charislam deleted the revert-48718-charis/tabs-decoupling branch August 5, 2026 16:03
@github-actions

github-actions Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (tanstack)

passed  242 passed
flaky  1 flaky
skipped  5 skipped

Details

stats  248 tests across 29 suites
duration  6 minutes, 44 seconds
commit  f8592fb

Flaky tests

Features › queue-table-operations.spec.ts › Queue Table Operations - queue identity fixes › deleting a newly inserted row removes it from pending changes

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

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