SIGN IN SIGN UP

Fix website marketplace queries after logo -> logoUrl schema rename (#24695)

## Context

https://twenty.com/apps was broken: the apps grid rendered empty and
every `/apps/[slug]` detail page returned a 404, even though
`packages/twenty-website/src/app/[locale]/(site)/apps/[slug]/page.tsx`
hadn't changed.

The root cause is a server-side schema change: the public marketplace
API renamed `logo` to `logoUrl` on both `MarketplaceApp` and
`MarketplaceAppDetail`, and replaced `screenshots` with `galleryImages`
on the detail type. The website's GraphQL queries still requested the
old field names, so the live API rejects them with `Cannot query field
"logo" on type "MarketplaceApp"`. `fetchMarketplaceApps` swallows the
error and returns `[]`, which empties the grid and makes
`fetchMarketplaceAppDetailBySlug` return `null` for every slug, so the
page calls `notFound()`.

## What this PR does

- `fetch-marketplace-apps.ts`: query `logoUrl` instead of `logo` and map
it accordingly.
- `fetch-marketplace-app-detail.ts`: query `logoUrl` instead of `logo`
and `galleryImages` instead of the deprecated `screenshots`.

Both corrected queries were verified against the live
`https://api.twenty.com/metadata` endpoint and return full data.
Typecheck and lint pass for `twenty-website`.

---
_Generated by [Claude
Code](https://claude.ai/code/session_013XS6BeS4qUfpU3DuKi12v5)_

<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/twentyhq/twenty/pull/24695?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
M
martmull committed
fbce1f61da20cd0c5072740e1e7164c03501a72c
Parent: d49f9a1
Committed by GitHub <noreply@github.com> on 8/24/2026, 1:43:24 PM