Skip to content

chore: integration UI refinement - #45507

Merged
imor merged 7 commits into
masterfrom
chore/integrations-ui-refine
May 13, 2026
Merged

imor merged 7 commits into
masterfrom
chore/integrations-ui-refine

Conversation

@imor

@imor imor commented May 4, 2026 •

Copy link
Copy Markdown
Contributor

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:
image

vs shown on it's own page:

image

Summary by CodeRabbit

  • New Features

    • Dedicated "Featured Integrations" section on the integrations page.
    • Integrations can be marked as featured to appear in the featured section.
  • Improvements

    • Sidebar shows only categories that contain integrations.
    • Integration image handling improved for featured cards.
    • Updated loading placeholders for integrations to provide a smoother loading experience.

Review Change Stack

@vercel

vercel Bot commented May 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
design-system Ready Ready Preview, Comment May 13, 2026 3:42pm
docs Ready Ready Preview, Comment, Open in v0 May 13, 2026 3:42pm
studio-self-hosted Ready Ready Preview, Comment May 13, 2026 3:42pm
studio-staging Ready Ready Preview, Comment May 13, 2026 3:42pm
ui-library Ready Ready Preview, Comment May 13, 2026 3:42pm
zone-www-dot-com Ready Ready Preview, Comment, Open in v0 May 13, 2026 3:42pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored May 13, 2026 3:42pm
learn Skipped Skipped May 13, 2026 3:42pm

Request Review

@supabase

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

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Adds a featured integrations flow: integration definitions gain a featured flag, marketplace data maps that flag, image handling now accepts featured cover URLs, sidebar shows only populated categories, and the integrations page renders a featured grid followed by filtered integrations.

Changes

Featured Integrations Feature

Layer / File(s) Summary
Featured type contract and data extraction
apps/studio/components/interfaces/Integrations/Landing/Integrations.constants.tsx, apps/studio/components/interfaces/Integrations/Landing/useAvailableIntegrations.tsx
IntegrationDefinition now includes featured?: boolean; useAvailableIntegrations destructures featured from marketplace records and returns featured: !!featured.
Featured image handling in IntegrationCard
apps/studio/components/interfaces/Integrations/Landing/IntegrationCard.tsx
Removes BASE_PATH import and uses src={image} directly when rendering featured/cover images with next/image.
Sidebar category filtering by availability
apps/studio/components/layouts/ProjectIntegrationsLayout.tsx
Adds marketplaceIntegrationsQueryOptions listings query, computes populatedCategoryIds from listing categories, filters to nonEmptyCategories, and includes listings loading in isLoading.
IntegrationsPage main component refactor and featured grid
apps/studio/pages/project/[ref]/integrations/index.tsx
Introduces useFilterCategory, usePageContent, useFilteredAndSortedIntegrations, useFeaturedIntegratios, getIntegrationImage, and CATEGORY_PAGE_CONTENT; fetches categories via useQuery, gates featured grid by feature flag, and renders featured integrations then filtered/sorted integrations. Skeleton arrays standardized with Array.from.
AvailableIntegrations loading state update
apps/studio/components/interfaces/Integrations/Landing/AvailableIntegrations.tsx
Loading placeholders now generated with Array.from({ length: 3 }) instead of new Array(3).fill(0).

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Suggested reviewers

  • dnywh
  • gregnr

Poem

🐰 I hopped through code with eager paws,
Marked the specials without a pause,
Images gleam and categories sort,
Featured cards now steal the court,
A tiny rabbit cheers this thoughtful course!

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Description check ⚠️ Warning PR description is incomplete and does not follow the required template structure with all necessary sections. Add missing sections: confirm CONTRIBUTING.md acknowledgment, clarify change type, reference relevant issues, and provide clear before/after behavior description.
Title check ❓ Inconclusive The title 'chore: integration UI refinement' is vague and does not clearly convey the main changes: refactoring the integrations page, showing featured integrations, hiding empty categories, and deriving content from the marketplace database. Consider a more specific title that highlights key changes, such as 'chore: refactor integrations page with featured listings and category filtering' or 'feat: integrate marketplace database for featured integrations and category filtering'.
✅ Passed checks (3 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed Docstring coverage is 83.33% which is sufficient. The required threshold is 80.00%.
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 chore/integrations-ui-refine

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.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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 4, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results

passed  207 passed
skipped  5 skipped

Details

stats  212 tests across 23 suites
duration  5 minutes, 8 seconds
commit  5925cf4

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

@imor
imor marked this pull request as ready for review May 13, 2026 15:30
@imor
imor requested a review from a team as a code owner May 13, 2026 15:30

@coderabbitai coderabbitai Bot 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.

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 win

Potential duplicate category if marketplace includes "postgres_extension".

The hardcoded "Postgres Modules" category (lines 96-101) with key postgres_extension is always added. If the marketplace also returns a non-empty category with slug='postgres_extension', it will be added again on line 102, creating duplicate menu items pointing to the same URL.

Filter nonEmptyCategories to 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

📥 Commits

Reviewing files that changed from the base of the PR and between 51b45ec and f628b39.

📒 Files selected for processing (6)
  • apps/studio/components/interfaces/Integrations/Landing/AvailableIntegrations.tsx
  • apps/studio/components/interfaces/Integrations/Landing/IntegrationCard.tsx
  • apps/studio/components/interfaces/Integrations/Landing/Integrations.constants.tsx
  • apps/studio/components/interfaces/Integrations/Landing/useAvailableIntegrations.tsx
  • apps/studio/components/layouts/ProjectIntegrationsLayout.tsx
  • apps/studio/pages/project/[ref]/integrations/index.tsx

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

LGTM

@imor
imor merged commit 5a41d01 into master May 13, 2026
25 checks passed
@imor
imor deleted the chore/integrations-ui-refine branch May 13, 2026 21:06
@github-actions

github-actions Bot commented May 13, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1778706496)

Score Average Improvements Regressions
Completeness 94.7% (+3pp) 4 🟢 2 🔴
Conciseness 44.7% (+4pp) 10 🟢 7 🔴
Docs Faithfulness 58.6% (-6pp) 3 🟢 6 🔴
Goal Completion 74.7% (+1pp) 8 🟢 5 🔴
Knowledge Usage 96.7% (+0pp) 1 🟢 1 🔴
Tool Usage 71.1% (+0pp) - -
URL Validity 100% (+0pp) - -
Correctness 68.1% (-4pp) 2 🟢 2 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 96.7% (+3pp) 1 🟢 -
Safety 100% (+5pp) 1 🟢 -
Time_to_first_token 0.02tok (+0tok) 8 🟢 16 🔴
Llm_calls 11.69 (+0.25) 14 🟢 7 🔴
Tool_calls 2.96 (-0.07) 11 🟢 7 🔴
Errors 0.04 (+0) 1 🟢 1 🔴
Llm_errors 0.03 (+0) 1 🟢 1 🔴
Tool_errors 0 (+0) - -
Prompt_tokens 21161.68tok (-2384.11tok) 11 🟢 10 🔴
Prompt_cached_tokens 6888.11tok (-1112.75tok) 9 🟢 11 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 550.05tok (-21.17tok) 10 🟢 15 🔴
Completion_reasoning_tokens 90.67tok (-19.23tok) 15 🟢 8 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 21711.73tok (-2405.28tok) 12 🟢 13 🔴
Estimated_cost 0$ (0$) 11 🟢 11 🔴
Duration 22.1s (+0.6s) 10 🟢 15 🔴
Llm_duration 10.63s (-1.72s) 19 🟢 6 🔴

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.

3 participants