Repository navigation
chore: integration UI refinement - #45507
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
📝 WalkthroughWalkthroughAdds a featured integrations flow: integration definitions gain a ChangesFeatured Integrations Feature
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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 |
🎭 Playwright Test ResultsDetails
Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
apps/studio/components/layouts/ProjectIntegrationsLayout.tsx (1)
97-107:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winPotential duplicate category if marketplace includes "postgres_extension".
The hardcoded "Postgres Modules" category (lines 96-101) with key
postgres_extensionis always added. If the marketplace also returns a non-empty category withslug='postgres_extension', it will be added again on line 102, creating duplicate menu items pointing to the same URL.Filter
nonEmptyCategoriesto exclude the hardcoded slug, or add a comment documenting why the marketplace is guaranteed not to include this slug.🤖 Prompt for 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. In `@apps/studio/components/layouts/ProjectIntegrationsLayout.tsx` around lines 97 - 107, The hardcoded "Postgres Modules" menu entry with key 'postgres_extension' in ProjectIntegrationsLayout.tsx can duplicate a marketplace category when nonEmptyCategories contains an item with slug 'postgres_extension'; update the code that builds the spread of nonEmptyCategories to filter out that slug (e.g., filter nonEmptyCategories where category.slug !== 'postgres_extension') before mapping, or alternatively add an explicit guard when mapping to skip that slug; reference the array nonEmptyCategories and the hardcoded entry with key 'postgres_extension' and ensure only one menu item for that slug is produced.
🤖 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.
Outside diff comments:
In `@apps/studio/components/layouts/ProjectIntegrationsLayout.tsx`:
- Around line 97-107: The hardcoded "Postgres Modules" menu entry with key
'postgres_extension' in ProjectIntegrationsLayout.tsx can duplicate a
marketplace category when nonEmptyCategories contains an item with slug
'postgres_extension'; update the code that builds the spread of
nonEmptyCategories to filter out that slug (e.g., filter nonEmptyCategories
where category.slug !== 'postgres_extension') before mapping, or alternatively
add an explicit guard when mapping to skip that slug; reference the array
nonEmptyCategories and the hardcoded entry with key 'postgres_extension' and
ensure only one menu item for that slug is produced.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: bd13fed5-86ec-42e6-8538-fe635d3fbbf0
📒 Files selected for processing (6)
apps/studio/components/interfaces/Integrations/Landing/AvailableIntegrations.tsxapps/studio/components/interfaces/Integrations/Landing/IntegrationCard.tsxapps/studio/components/interfaces/Integrations/Landing/Integrations.constants.tsxapps/studio/components/interfaces/Integrations/Landing/useAvailableIntegrations.tsxapps/studio/components/layouts/ProjectIntegrationsLayout.tsxapps/studio/pages/project/[ref]/integrations/index.tsx
Braintrust eval report
|
This PR:
Below design related fixes will be done in a separate PR: #45856. So this PR is ready to merge with current fixes.
Details
Design fixes needed after consulting with the design team:Do not use inverted colors on images for featured integrations. This leads to inconsistent images for the featured marketplace listings. E.g. Grafana listing shown in the featured listings:vs shown on it's own page:The images on featured marketplace integrations should not be truncated as seen in the first image above.The Install integration button feels floating far out on the right.The description under the title is too long and truncated. Requested by Doppler here: https://supabase.slack.com/archives/C0AL11JG5MG/p1778009104728819?thread_ts=1777654129.027269&cid=C0AL11JG5MGThe content section doesn't render bulleted lists correctly.Summary by CodeRabbit
New Features
Improvements