Skip to content

chore(studio): move short Admonitions to descriptions - #46049

Merged
dnywh merged 2 commits into
masterfrom
dnywh/studio-admonition-descriptions
May 19, 2026
Merged

dnywh merged 2 commits into
masterfrom
dnywh/studio-admonition-descriptions

Conversation

@dnywh

@dnywh dnywh commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Chore. Follow-up to DEPR-551, #45302, #45535, and #45618.

What is the current behaviour?

Some short Studio Admonitions still put their entire message in title or legacy label, so body-copy callouts render as headings.

What is the new behaviour?

Moves selected single-message Studio Admonitions to description, keeping the follow-up deliberately limited to Studio callsites.

This PR does not touch Docs content, shared Alert styling, ui-patterns, design-system registry/docs, or Tailwind config.

Before After
Image Image
CleanShot 2026-04-28 at 15 17 25@2x CleanShot 2026-04-28 at 15 16 00@2x

Summary by CodeRabbit

  • Style

    • Refined message displays and admonition styling across settings, database, dashboard, and admin interfaces for improved visual consistency and clarity.
  • UI Updates

    • Updated search input layouts and form element styling in publications tables and other admin pages.

Review Change Stack

@vercel

vercel Bot commented May 18, 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 May 18, 2026 4:50am
studio-staging Ready Ready Preview, Comment May 18, 2026 4:50am
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored May 18, 2026 4:50am
design-system Skipped Skipped May 18, 2026 4:50am
docs Skipped Skipped May 18, 2026 4:50am
ui-library Skipped Skipped May 18, 2026 4:50am
zone-www-dot-com Skipped Skipped May 18, 2026 4:50am

Request Review

@supabase

supabase Bot commented May 18, 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 May 18, 2026 •

Copy link
Copy Markdown
Contributor

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: 27b77583-8915-45e7-9c85-dfc388d96bd2

📥 Commits

Reviewing files that changed from the base of the PR and between 179f00c and e26d082.

📒 Files selected for processing (12)
  • apps/studio/components/interfaces/Auth/Users/UserOverview.tsx
  • apps/studio/components/interfaces/Database/Publications/PublicationsTables.tsx
  • apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DestinationPanelFields.tsx
  • apps/studio/components/interfaces/Database/RestoreToNewProject/RestoreToNewProject.tsx
  • apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueSettings.tsx
  • apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncSettingsPage.tsx
  • apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx
  • apps/studio/components/interfaces/Settings/Addons/IPv4SidePanel.tsx
  • apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRuleSheet.tsx
  • apps/studio/components/interfaces/Settings/General/DashboardPreferences.tsx
  • apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx
  • apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ApiAccessToggle.tsx

📝 Walkthrough

Walkthrough

This PR migrates Admonition component prop usage from title to description across 13 studio UI files, including layout restructuring in the publications search bar and enriched warning descriptions in database replication and data API panels.

Changes

Admonition Component Prop Migration

Layer / File(s) Summary
Simple title-to-description migrations
apps/studio/components/interfaces/Auth/Users/UserOverview.tsx, apps/studio/components/interfaces/Database/RestoreToNewProject/RestoreToNewProject.tsx, apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueSettings.tsx, apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncSettingsPage.tsx, apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx, apps/studio/components/interfaces/Settings/Addons/IPv4SidePanel.tsx, apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRuleSheet.tsx, apps/studio/components/interfaces/Settings/General/DashboardPreferences.tsx, apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx
Admonition components across Auth, Database, Settings, Integrations, and Support pages now pass user-facing messages via the description prop instead of title.
Layout restructuring and type variant updates
apps/studio/components/interfaces/Database/Publications/PublicationsTables.tsx, apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DestinationPanelFields.tsx, apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ApiAccessToggle.tsx
PublicationsTables search bar layout is restructured and permissions warning switches from type="note" to type="warning" with description styling; DestinationPanelFields replaces title+paragraph warning with Admonition using title and a description fragment containing a link; ApiAccessToggle error UI now uses type="warning" with explicit description text.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • ivasilov
  • djhi
  • awaseem

Poem

🐰 A rabbit hopped through the UI today,
Swapped titles for descriptions in every way,
From Auth to Support, the changes did spread,
Admonitions reworded with care and good thread,
A refactor so neat, systematically made!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately and concisely summarizes the main change: moving short Admonition messages from title/label props to description props across Studio components.
Description check ✅ Passed The PR description includes comprehensive context about the change type, current/new behavior, scope, related issues, and before/after visual comparisons, but lacks explicit confirmation of CONTRIBUTING.md review.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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 dnywh/studio-admonition-descriptions

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 and usage tips.

@github-actions

github-actions Bot commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results

passed  207 passed
skipped  5 skipped

Details

stats  212 tests across 23 suites
duration  4 minutes, 56 seconds
commit  e26d082

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

<Admonition
type="warning"
label={`User banned until ${dayjs(user.banned_until).format(DATE_FORMAT)}`}
description={`User banned until ${dayjs(user.banned_until).format(DATE_FORMAT)}`}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You can just invite yourself/a dummy email to a local/staging project and ban to see this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Made a few tweaks here since it rendered awkwardly to the right.
See image on PR description.

@dnywh
dnywh marked this pull request as ready for review May 18, 2026 04:48
@dnywh
dnywh requested a review from a team as a code owner May 18, 2026 04:48

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

Appearing as described in the instance I checked (sign up from invite).

@dnywh
dnywh merged commit 4c148ea into master May 19, 2026
25 of 26 checks passed
@dnywh
dnywh deleted the dnywh/studio-admonition-descriptions branch May 19, 2026 00:20
@github-actions

github-actions Bot commented May 19, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1779150158)

Score Average Improvements Regressions
Completeness 91% (+1pp) 3 🟢 3 🔴
Conciseness 45.5% (+5pp) 11 🟢 6 🔴
Docs Faithfulness 67.5% (+5pp) 7 🟢 4 🔴
Goal Completion 75.6% (+1pp) 7 🟢 7 🔴
Knowledge Usage 96.7% (+7.000000000000001pp) 1 🟢 1 🔴
Tool Usage 70.8% (-6pp) - 3 🔴
Correctness 68.1% (-6pp) 3 🟢 5 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+5pp) - -
Safety 95.2% (+0pp) - -
Time_to_first_token 0.01tok (-0.01tok) 19 🟢 7 🔴
Llm_calls 11.24 (-0.01) 10 🟢 11 🔴
Tool_calls 3.19 (+0.1) 11 🟢 9 🔴
Errors 0 (-0.04) 1 🟢 -
Llm_errors 0 (-0.03) 1 🟢 -
Tool_errors 0 (+0) - -
Prompt_tokens 23639.22tok (-642.26tok) 9 🟢 14 🔴
Prompt_cached_tokens 7607.79tok (-177.23tok) 14 🟢 9 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 570.99tok (-17.56tok) 14 🟢 12 🔴
Completion_reasoning_tokens 96.96tok (-2.44tok) 11 🟢 13 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 24210.21tok (-659.82tok) 11 🟢 15 🔴
Estimated_cost 0$ (0$) 11 🟢 11 🔴
Duration 19.24s (+1.02s) 12 🟢 14 🔴
Llm_duration 11.02s (+1.16s) 6 🟢 20 🔴

dnywh added a commit that referenced this pull request May 19, 2026
## What kind of change does this PR introduce?

Bug fix. Follow-up to DEPR-551, #45302, #45535, #45618, and stacked on
#46049.

## What is the current behaviour?

Warning and destructive Alert variants do not explicitly own their
foreground text colour. In muted parent contexts, nested Admonition
content can inherit lighter text styling.

## What is the new behaviour?

Warning and destructive Alert variants now include `text-foreground`,
just like the default counterpart.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Style**
* Updated styling for alert components with destructive and warning
variants.

<!-- review_stack_entry_start -->

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/supabase/supabase/pull/46050?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

<!-- review_stack_entry_end -->

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@coderabbitai coderabbitai Bot mentioned this pull request May 28, 2026
2 tasks done
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