Skip to content

fix(studio): use table + card component in log retention upgrade prompt - #48713

Merged
charislam merged 1 commit into
masterfrom
charis/fe-4034-sql-editor-use-table-card-component-in-upgrade-prompt
Aug 4, 2026
Merged

charislam merged 1 commit into
masterfrom
charis/fe-4034-sql-editor-use-table-card-component-in-upgrade-prompt

Conversation

@charislam

@charislam charislam commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Refactor the SQL Editor / Logs "Log retention" upgrade-prompt dialog to use the design system's Card + Table components instead of a custom flexbox-div table, matching the pattern in apps/design-system/registry/default/example/table-demo.tsx
  • No behavior or data change

Fixes FE-4034

Non-blocking review nit from #48452 (comment: #48452 (comment))

Test plan

  • pnpm --filter studio typecheck passes
  • pnpm --filter studio run lint:ratchet passes (no new warnings)
  • Prettier check passes

Summary by CodeRabbit

  • Style
    • Updated the upgrade prompt with a more consistent card and table layout.
    • Preserved existing plan names and log retention details.

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

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

Request Review

@coderabbitai

coderabbitai Bot commented Aug 4, 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: 252ae9d4-328e-483d-9296-571c57b4b8d4

📥 Commits

Reviewing files that changed from the base of the PR and between b905379 and 075afd8.

📒 Files selected for processing (1)
  • apps/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx

📝 Walkthrough

Walkthrough

Changes

Upgrade prompt UI

Layer / File(s) Summary
Shared Card and table layout
apps/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx
The upgrade prompt imports shared Card and table components. It displays Free, Pro, Team, and Enterprise retention values in a semantic table.

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

Suggested reviewers: alaister

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change to use the Table and Card components in the log retention upgrade prompt.
Description check ✅ Passed The description explains the UI refactor, behavior impact, related issue, context, and test results, but omits the template headings and contribution acknowledgment.
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 charis/fe-4034-sql-editor-use-table-card-component-in-upgrade-prompt

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 Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (next)

passed  241 passed
flaky  2 flaky
skipped  5 skipped

Details

stats  248 tests across 29 suites
duration  7 minutes, 3 seconds
commit  075afd8

Flaky tests

Features › queue-table-operations.spec.ts › Queue Table Operations › newly added row is preserved after deleting another row
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

@charislam
charislam merged commit 5986fec into master Aug 4, 2026
39 checks passed
@charislam
charislam deleted the charis/fe-4034-sql-editor-use-table-card-component-in-upgrade-prompt branch August 4, 2026 20:01
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