Skip to content

Chore/cleanup studio deps - #47399

Merged
djhi merged 4 commits into
masterfrom
chore/cleanup-studio-deps
Jun 30, 2026
Merged

djhi merged 4 commits into
masterfrom
chore/cleanup-studio-deps

Conversation

@djhi

@djhi djhi commented Jun 29, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Knip reported some unused dependencies. Some are actually used in builds, etc but others are not.

Solution

Remove the really unused dependencies

Summary by CodeRabbit

  • Chores
    • Cleaned up unused dependencies and removed some obsolete test/support files.
    • Updated project ignore rules to better match current app structure and generated files.
  • Bug Fixes
    • No user-facing behavior changed; this release is focused on maintenance and cleanup.

@djhi
djhi requested a review from a team as a code owner June 29, 2026 13:29
@vercel

vercel Bot commented Jun 29, 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 7:32am
docs Ready Ready Preview, Comment, Open in v0 Jun 30, 2026 7:32am
studio-self-hosted Ready Ready Preview, Comment Jun 30, 2026 7:32am
studio-staging Ready Ready Preview, Comment Jun 30, 2026 7:32am
ui-library Ready Ready Preview, Comment Jun 30, 2026 7:32am
zone-www-dot-com Ready Ready Preview, Comment, Open in v0 Jun 30, 2026 7:32am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jun 30, 2026 7:32am

Request Review

@supabase

supabase Bot commented Jun 29, 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 29, 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: 92a99dce-3722-4082-ac6a-3e300370dd25

📥 Commits

Reviewing files that changed from the base of the PR and between 27ca9ee and 2042ea3.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !pnpm-lock.yaml
📒 Files selected for processing (4)
  • apps/studio/lib/ai/tools/fallback-tools.ts
  • apps/studio/package.json
  • apps/studio/tests/fixtures.ts
  • knip.jsonc
💤 Files with no reviewable changes (3)
  • apps/studio/tests/fixtures.ts
  • apps/studio/lib/ai/tools/fallback-tools.ts
  • apps/studio/package.json

📝 Walkthrough

Walkthrough

Removes unused runtime and dev dependencies from apps/studio/package.json, deletes the tests/fixtures.ts module containing the logDataFixture factory, removes a commented-out import from fallback-tools.ts, and extends the knip.jsonc ignore list with additional Studio-specific path patterns.

Changes

Studio dependency and dead code cleanup

Layer / File(s) Summary
Remove unused dependencies
apps/studio/package.json
Removes runtime packages (@radix-ui/react-slider, @radix-ui/react-slot, @radix-ui/react-visually-hidden, @supabase/sql-to-rest, immutability-helper, memoize-one, pg-minify, sqlstring) and devDependencies (tailwindcss, @tailwindcss/container-queries, @types/markdown-table, @types/react-beautiful-dnd, @types/react-datepicker, @types/recharts, @types/sqlstring).
Delete dead code
apps/studio/tests/fixtures.ts, apps/studio/lib/ai/tools/fallback-tools.ts
Removes the entire fixtures.ts module (exported logDataFixture factory and LogData import) and a commented-out import line in fallback-tools.ts.
Expand knip ignore patterns
knip.jsonc
Adds Studio-specific exclusions for scripts, ConnectSheet interface files, data templates, compat/migration code, router/route-tree artifacts, fonts.css, and evals.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested reviewers

  • seanoliver

Poem

🐇 Hop, hop, hooray — the clutter's gone away!
Old packages swept, dead fixtures laid to rest,
A commented import? Deleted with zest.
Knip's ignore list grows, keeping linters at bay,
The warren is tidy — a most splendid day! 🌿

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is too incomplete for the template and omits most required sections. Add the missing template sections: confirmation of CONTRIBUTING.md, change type, current behavior with issue links, new behavior, and additional context.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and matches the Studio dependency cleanup in this PR.
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 chore/cleanup-studio-deps

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

github-actions Bot commented Jun 29, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results

passed  224 passed
flaky  1 flaky
skipped  5 skipped

Details

stats  230 tests across 25 suites
duration  3 minutes, 41 seconds
commit  fc0c858

Flaky tests

Features › table-editor.spec.ts › table editor › Grid editor exporting works as expected

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

@djhi
djhi merged commit 0e3364b into master Jun 30, 2026
32 checks passed
@djhi
djhi deleted the chore/cleanup-studio-deps branch June 30, 2026 12:03
@github-actions

github-actions Bot commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1782821137)

Score Average Improvements Regressions
Completeness 98.8% (+1pp) 2 🟢 1 🔴
Conciseness 40.6% (-2pp) 5 🟢 5 🔴
Docs Faithfulness 62.5% (-4pp) 3 🟢 8 🔴
Goal Completion 81% (0pp) 4 🟢 3 🔴
Knowledge Usage 94.9% (-3pp) - 1 🔴
Tool Usage 74.5% (+0pp) - -
Correctness 73.2% (+1pp) 3 🟢 2 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Safety 94.7% (-5pp) - 1 🔴
Time_to_first_token 2.91tok (+0.23tok) 11 🟢 18 🔴
Llm_calls 7.06 (-0.37) 6 🟢 16 🔴
Tool_calls 2.99 (-0.15) 11 🟢 12 🔴
Errors 0.05 (+0.05) - 2 🔴
Llm_errors 0.02 (+0.02) - 2 🔴
Tool_errors 0 (+0) - -
Prompt_tokens 25962.02tok (+2696.26tok) 13 🟢 13 🔴
Prompt_cached_tokens 7244.51tok (-423.72tok) 14 🟢 13 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 579.61tok (-46.2tok) 19 🟢 10 🔴
Completion_reasoning_tokens 92.17tok (-20.9tok) 17 🟢 10 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 26541.63tok (+2650.07tok) 15 🟢 14 🔴
Estimated_cost 0$ (+0$) 13 🟢 11 🔴
Duration 15.34s (-0.92s) 18 🟢 11 🔴
Llm_duration 10.35s (+0.16s) 13 🟢 16 🔴

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