Fix org images and logo uploads#1531
Conversation
📝 WalkthroughWalkthroughThis PR adds organization logo display with initials fallback in the dashboard dropdown, implements signed URL generation for member avatar images during RBAC member reload, and adds path-based Supabase storage policies for the images bucket to control org logos, app icons, and user avatars. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 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.
Pull request overview
Enables org logo/avatar images to work correctly after moving the images bucket to private by ensuring signed URLs are used in the UI and storage policies allow the necessary reads/writes.
Changes:
- Recreates
storage.objectsRLS policies for theimagesbucket to allow org logo reads/writes underorg/{org_id}/logo/...while preserving existing app icon + avatar behavior. - Signs RBAC org member avatar paths into signed URLs when building the members table data.
- Updates the organization dropdown to render org logos when available, otherwise falls back to initials.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| supabase/migrations/20260130040811_allow_org_logo_upload.sql | Updates images bucket policies to permit org logo read/write paths in private storage. |
| src/pages/settings/organization/Members.vue | Uses createSignedImageUrl for RBAC member image_url so avatars render from private storage. |
| src/components/dashboard/DropdownOrganization.vue | Displays org logos in the dropdown with an initials fallback UI. |
|



Summary (AI generated)
Test plan (AI generated)
Screenshots (AI generated)
Checklist (AI generated)
.
accordingly.
my tests
Generated with AI
Summary by CodeRabbit
New Features
Improvements
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.