Repository navigation
fix(studio): fix GraphiQL editor layout, gutter bleed and spacing - #47334
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe PR updates GraphiQL editor layout handling and adds flex-aware wrappers to integration page containers. It also changes Monaco editor options, scoped GraphiQL CSS overrides, and minimum-height layout behavior in legacy and marketplace views. ChangesGraphiQL and integration page layout adjustments
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@apps/studio/components/interfaces/Integrations/GraphQL/GraphiQLTab.tsx`:
- Around line 79-85: The Monaco option updates in GraphiQLTab are mutating the
global editor registry instead of only the GraphiQL instance. Replace the use of
monaco.editor.getEditors() and monaco.editor.onDidCreateEditor() with logic
scoped to the specific Monaco editor managed by the GraphiQL editor component,
ideally via its onMount callback or direct component options. Make sure the
padding and glyphMargin settings are applied only to that editor and do not
affect other editors in the app or persist after the tab unmounts.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: b2184288-9736-466c-be71-9de04518a4fd
📒 Files selected for processing (4)
apps/studio/components/interfaces/Integrations/GraphQL/GraphiQLTab.tsxapps/studio/components/interfaces/Integrations/GraphQL/graphiql.module.cssapps/studio/components/interfaces/Integrations/Integration/LegacyIntegrationPage.tsxapps/studio/components/interfaces/Integrations/Marketplace/MarketplaceDetail.tsx
🎭 Playwright Test ResultsDetails
Flaky testsFeatures › queue-table-operations.spec.ts › Queue Table Operations › reverted cell edit clears the pending change Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
GraphiQL shares the global Monaco registry with the rest of Studio, so applying padding/glyphMargin via getEditors()/onDidCreateEditor leaked to the SQL editor (its layout shifted after visiting GraphiQL). Filter to editors inside the GraphiQL container so only its editors are touched. Addresses CodeRabbit review feedback.
Braintrust eval report
|
Fixes three GraphiQL/integrations layout issues introduced by the Marketplace layout change (#45856), which dropped the height passthrough on the integration page content wrapper.
Changed:
h-fulleditor collapsed instead of filling the page. Addedflex-1 min-h-0to the wrapper in both the legacy (LegacyIntegrationPage) and marketplace (MarketplaceDetail) render paths..overflow-guardwas ending upoverflow: visible(an inline style Monaco sets at runtime), so the oversized opaque line-number gutter escaped the editor and painted over the page above it. Re-asserted the clip, scoped to GraphiQL so the SQL editor is untouched.padding(top/bottom) andglyphMargin(line-number left inset) options, which leave the scroll shadow pinned to the top edge.Before:

To test
graphiqltab). The editor should fill the full page height.overflow: hidden).Summary by CodeRabbit