Repository navigation
chore: migrate storage policies Modal to Dialog - #46222
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: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughRefactors policy editor UI from Modal to Dialog primitives across selection, templates, editor, and review views; extracts StoragePolicyEditorModalTitle for header rendering; replaces Modal.* wrappers with DialogSection, DialogSectionSeparator, DialogContent, DialogHeader, and DialogFooter. Internal policy logic unchanged. ChangesModal to Dialog UI Migration
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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/Storage/StoragePolicies/StoragePolicyEditorModalTitle.tsx`:
- Around line 31-39: The icon-only back button in StoragePolicyEditorModalTitle
(the button using onSelectBackFromTemplates and rendering the ChevronLeft icon)
needs an accessible name; add an aria-label (e.g., aria-label="Back" or a more
specific label like "Back to templates") or include an sr-only text node inside
the button so E2E tests and assistive tech can identify it.
🪄 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: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: 757ea540-f69a-43dc-aceb-51df5007e62a
📒 Files selected for processing (6)
apps/studio/components/interfaces/Auth/Policies/PolicySelection.tsxapps/studio/components/interfaces/Auth/Policies/PolicyTemplates/index.tsxapps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesEditPolicyModal.tsxapps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesEditor.tsxapps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesReview.tsxapps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicyEditorModalTitle.tsx
🎭 Playwright Test ResultsDetails
Flaky testsFeatures › realtime-inspector.spec.ts › Realtime Inspector › Basic Inspector UI › can join and leave a channel Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
Braintrust eval reportEvals in progress... ⌛ |
Problem
Storage policies edition still uses the deprecated
ModalSolution
DialoginsteadScreenshots
The only difference is the title font which is larger with
DialogBefore:

After:

Summary by CodeRabbit