Skip to content

fix(www): leave out small sponsors whose avatars don't load - #7826

Merged
KATT merged 2 commits into
mainfrom
cursor/omit-imageless-sponsors
Nov 2, 2026
Merged

KATT merged 2 commits into
mainfrom
cursor/omit-imageless-sponsors

Conversation

@KATT

@KATT KATT commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Why

  • When a small sponsor's avatar fails to load, the site draws their initials on the /sponsor social card, and a broken image in the sponsor cloud and the README.
  • A row of letters among faces looks broken. A sponsor we can't show is better left out of the drawing and counted in the "+N".
  • Avatar fetching was one try/catch that swallowed every failure the same way: no retries, and no reason given.

This PR builds on #7821, which adds the /sponsor card and its backer row, so it is based on that branch. Once #7821 merges, it retargets to main.

What

  • Who counts as small: a sponsor below the partner tiers, meaning bronze or no tier (isSmallSponsor in src/sponsors.ts).
  • The sponsor sync (build/sponsors-sync.ts) tries each small sponsor's avatar. It marks the ones that don't load imageless: true in sponsors.json and logs who they are. A change in that mark counts as a change, so the sync rewrites the file. If no small sponsor's avatar loads, the network is more likely at fault, so the sync fails and writes nothing.
  • Where they are left out:
    • the sponsor cloud on /sponsor (drawnSponsors);
    • the README's backer table (sponsorsMarkdown);
    • the home page's top sponsors, which it shows when there are no partners (topSponsors);
    • the /sponsor social card. It now holds twice as many backers as fit and draws the first twelve whose avatars load when the card is drawn (drawnBackers), so a dead avatar drops out at once, before the next sync.
  • Counts still include every sponsor: "kept going by 20 sponsors" and the "+N" on the card both count the ones left out.
  • Larger tiers: partners use the same fetch code (Avatars.fetch) as small sponsors, so they get the same timeouts and retries. Only the drawing differs: a partner whose avatar fails still gets initials, and the sync never marks a partner. Post authors on blog cards keep their initials too.
  • src/og/avatar.ts (new) does the fetching in Effect:
    • Each failure has its own type: AvatarRequestError, AvatarTimeoutError, AvatarStatusError, AvatarTypeError and AvatarSizeError.
    • Each try times out: after 4 seconds by default, and 3 seconds when a card is drawn while a crawler waits.
    • A failure that may pass (no response, a timeout, a 429 or a 5xx) is retried with backoff. A 404, a type satori can't draw, or an SVG it can't size is not retried.
    • It fetches each URL once: eight at a time in the sponsor sync, and all at once when a card is drawn, so a slow host costs one avatar's wait.
    • Avatars is a service, so the tests and the sync can provide their own.
  • og/live.ts uses it. fetchLive(card) keeps its signature, so routes/og.$.ts doesn't change.

Renders

The /sponsor card is the only one that changes. Blog post cards with author avatars, the home card and the docs cards draw the same.

With every avatar loading, before and after are the same, byte for byte:

Sponsor card, all avatars load, before
Sponsor card, all avatars load, after

With three small sponsors' avatars failing (Ryan Magoon, BestKru, fanvue). Before, the row draws "RM", "B" and "F":

Sponsor card, three avatars fail, before

After, they are left out, and the next three sponsors fill the row:

Sponsor card, three avatars fail, after

Links

  • Sponsor page: the sponsor cloud draws drawnSponsors. Today no sponsor is imageless, so it looks the same.
  • Sponsor social card: draws the first twelve backers whose avatars load.

Alternatives considered

  • Hide a broken <img> in the browser with onError: this fixes the cloud but not the README or the social card, and the circle would still take up space in the packed layout. The sync's mark covers all three. A browser that can't load an avatar the sync could load still shows a broken image; this PR doesn't change that.
  • Leave out partners too: partners pay to be seen, and their card shows their name next to the avatar, so initials still read well there.
  • Check avatars only when drawing the card: that covers the card but not the README or the static site, which only see sponsors.json.

Testing

  • src/og/avatar.test.ts (new) runs a local HTTP server for each test (await using server = await serveAvatars(...)). It covers:
    • a data URI for a PNG and for an SVG;
    • no retry on a 404, on text/html or on an SVG without a size;
    • at most two retries on a 503;
    • a timeout, then a retry;
    • AvatarRequestError when nothing listens;
    • fetchAvatars fetching each URL once, leaving out failures and keeping at most eight requests in flight.
  • card.test.ts: drawnBackers keeps a partner without an avatar, leaves out a small sponsor without one, and lets the next ones fill the slots.
  • render.test.ts: on a sponsor card where every SVG is unsized, the partners draw initials and the small sponsors are left out. Authors still draw initials.
  • sponsors.test.ts: isSmallSponsor, drawnSponsors, and a sponsorCardOf fixture with an imageless sponsor.
  • build/sponsors-sync.test.ts: a small sponsor whose avatar fails is marked imageless and left out of the README, but a partner whose avatar fails is not. When the avatar loads again, the sync rewrites the file. When no small sponsor's avatar loads, the sync writes nothing.
  • live.test.ts: a card fetches all of its avatars at once.
  • build/sponsors-readme.test.ts: an imageless sponsor is left out.
  • Tests use using and await using with makeResource and makeAsyncResource, with no beforeEach or afterEach.
  • pnpm lint, pnpm typecheck and pnpm vitest run (270 passed) in www at the final head. pnpm build passed before the CodeRabbit fixes, and CI builds the final head.
  • I loaded the built .vercel/output OG chunk in Node and called fetchLive: a real GitHub avatar loaded and a missing user's was left out.
Open in Web Open in Cursor 

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • Bug Fixes
    • Small sponsors whose avatars cannot be loaded are no longer shown in sponsor listings or social cards. They return when their avatars become available.
    • Partner sponsors remain visible in social cards even when their avatars cannot be loaded.
    • Sponsor counts continue to include sponsors that are not displayed, keeping totals accurate.

@KATT
KATT requested a review from a team as a code owner November 2, 2026 16:14
@vercel

vercel Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
www Ready Ready Preview Nov 2, 2026 5:45pm UTC
6 Skipped Deployments
Project Deployment Actions Updated
examples-next-minimal-starter Skipped Skipped Nov 2, 2026 5:45pm UTC
examples-todomvc Skipped Skipped Nov 2, 2026 5:45pm UTC
next-prisma-starter Skipped Skipped Nov 2, 2026 5:45pm UTC
next-prisma-websockets-starter Skipped Skipped Nov 2, 2026 5:45pm UTC
tanstack-start-sse-chat Skipped Skipped Nov 2, 2026 5:45pm UTC
trpc-next-app-dir Skipped Skipped Nov 2, 2026 5:45pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between e9f4e4b and 815bd82.

Files selected for processing: 5
  • www/build/sponsors-sync.test.ts
  • www/build/sponsors-sync.ts
  • www/src/og/avatar.ts
  • www/src/og/live.test.ts
  • www/src/og/live.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Walkthrough

The change adds avatar fetching and validation, records when small-sponsor avatars fail to load, and filters sponsor listings and social cards using avatar availability. The live social-card flow fetches stats and avatars concurrently.

Changes: Sponsor Avatar Flow

Layer / File(s) Summary
Avatar fetching and validation
www/src/og/avatar.ts, www/src/og/avatar.test.ts, www/src/og/fake-avatars.ts
Adds an avatar service that sizes GitHub avatar URLs, validates image responses and SVG dimensions, retries selected failures, and fetches distinct images with up to eight concurrent requests. Tests cover response errors, retries, timeouts, and deduplication.
Sponsor and backer selection
www/src/sponsors.ts, www/src/sponsors.test.ts, www/src/og/card.ts, www/src/og/card.test.ts, www/src/components/sponsors/sponsor-cloud.tsx
Excludes imageless sponsors from drawn sponsor lists and selects backers based on partner status and loaded avatars. Sponsor cards use backerSlots and sponsorCount to render selected backers and calculate the remaining count.
Sponsor sync and README output
www/build/sponsors-sync.ts, www/build/sponsors-sync.test.ts, www/build/sponsors-readme.ts, www/build/sponsors-readme.test.ts
Sponsor sync marks small sponsors whose avatars fail to load and includes imageless status in lineup comparisons. README generation omits imageless sponsors.
Social-card live data and rendering
www/src/og/live.ts, www/src/og/live.test.ts, www/src/og/render.test.ts
The live-data flow fetches stats and card avatars concurrently through Effect. Tests cover loaded and unavailable avatars in post and sponsor cards.

Estimated code review effort: 4 (Complex) | ~45 minutes

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant fetchLive
  participant live
  participant fetchAvatars
  participant Avatars
  participant FetchHttpClient
  par Fetch home-card stats
    live->>live: fetch stats when card is a home card
  and Fetch card avatars
    live->>fetchAvatars: pass card image URLs
    fetchAvatars->>Avatars: fetch distinct image URLs
    Avatars->>FetchHttpClient: request avatar images
    FetchHttpClient-->>Avatars: return image responses
    Avatars-->>fetchAvatars: return successful data URIs
  end
  fetchLive->>live: run card live-data effect
  live-->>fetchLive: return live data
Loading

Possibly related PRs

  • trpc/trpc#7821: Adds the sponsor social card and data flow that this change updates.
  • trpc/trpc#7799: Changes the shared social-card renderer and avatar-fetching path that this change extends.
  • trpc/trpc#7820: Adds the light social-card renderer and SVG avatar handling used by this change.

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · up to 815bd

The sync no longer writes an all-imageless sponsor list when every small-sponsor avatar fails to load. No identified issue remains that should block merging.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: excluding small sponsors whose avatars fail to load.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 15 files.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@cursor

cursor Bot commented Nov 2, 2026

Copy link
Copy Markdown

@coderabbitai review

@vercel
vercel Bot temporarily deployed to Preview – trpc-next-app-dir November 2, 2026 16:27 Inactive
@vercel
vercel Bot temporarily deployed to Preview – next-prisma-starter November 2, 2026 16:27 Inactive
@vercel
vercel Bot temporarily deployed to Preview – examples-todomvc November 2, 2026 16:27 Inactive
@vercel
vercel Bot temporarily deployed to Preview – examples-next-minimal-starter November 2, 2026 16:27 Inactive
@cursor
cursor Bot force-pushed the cursor/omit-imageless-sponsors branch from f534cc1 to e9f4e4b Compare November 2, 2026 16:30
@vercel
vercel Bot temporarily deployed to Preview – next-prisma-starter November 2, 2026 16:30 Inactive
@vercel
vercel Bot temporarily deployed to Preview – examples-next-minimal-starter November 2, 2026 16:30 Inactive
@vercel
vercel Bot temporarily deployed to Preview – examples-todomvc November 2, 2026 16:30 Inactive
@vercel
vercel Bot temporarily deployed to Preview – trpc-next-app-dir November 2, 2026 16:30 Inactive
@KATT

KATT commented Nov 2, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

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

  • Fix comments: Fix CodeRabbit comments on this PR

Comment thread www/build/sponsors-sync.ts Resolved
Comment thread www/src/og/live.ts Resolved
@vercel
vercel Bot temporarily deployed to Preview – examples-next-minimal-starter November 2, 2026 16:41 Inactive
@vercel
vercel Bot temporarily deployed to Preview – examples-todomvc November 2, 2026 16:41 Inactive
@vercel
vercel Bot temporarily deployed to Preview – trpc-next-app-dir November 2, 2026 16:41 Inactive
@vercel
vercel Bot temporarily deployed to Preview – next-prisma-starter November 2, 2026 16:41 Inactive
@pkg-pr-new

pkg-pr-new Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@trpc/client

npm i https://pkg.pr.new/@trpc/client@7826

@trpc/next

npm i https://pkg.pr.new/@trpc/next@7826

@trpc/openapi

npm i https://pkg.pr.new/@trpc/openapi@7826

@trpc/react-query

npm i https://pkg.pr.new/@trpc/react-query@7826

@trpc/server

npm i https://pkg.pr.new/@trpc/server@7826

@trpc/tanstack-react-query

npm i https://pkg.pr.new/@trpc/tanstack-react-query@7826

@trpc/upgrade

npm i https://pkg.pr.new/@trpc/upgrade@7826

commit: 815bd82

trpc-bot
trpc-bot previously approved these changes Nov 2, 2026

@trpc-bot trpc-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All 48 checks pass at 74039f7. CodeRabbit's two findings, the sync writing every small sponsor imageless when the network is down and the card fetching avatars in batches of eight, are fixed, tested and resolved. CodeRabbit posted nothing on the new head. Approving.

Base automatically changed from cursor/www-og-sponsor-card-55df to main November 2, 2026 17:42
@KATT
KATT dismissed trpc-bot’s stale review November 2, 2026 17:42

The base branch was changed.

The sponsor sync now tries each small sponsor's avatar and marks the ones
that don't load imageless in sponsors.json. The sponsor cloud, the README
tables and the home page's fallback skip them. The /sponsor card draws the
first twelve backers whose avatars load, and counts the rest in its +N.

Avatar fetching moves to src/og/avatar.ts and is written in Effect: typed
errors, a timeout per try, retries for failures that may pass, eight at a
time.

Co-authored-by: alexander <[email protected]>
… and fetch a card's avatars at once

If every small sponsor's avatar fails, the network is more likely at fault
than the sponsors, so the sync writes nothing rather than hide them all.

A card is drawn while a crawler waits, so it fetches all its avatars at
once: a slow host costs one avatar's wait rather than one per batch of
eight.

Co-authored-by: alexander <[email protected]>
@cursor
cursor Bot force-pushed the cursor/omit-imageless-sponsors branch from 74039f7 to 815bd82 Compare November 2, 2026 17:43
@vercel
vercel Bot temporarily deployed to Preview – trpc-next-app-dir November 2, 2026 17:43 Inactive
@vercel
vercel Bot temporarily deployed to Preview – examples-todomvc November 2, 2026 17:43 Inactive
@vercel
vercel Bot temporarily deployed to Preview – examples-next-minimal-starter November 2, 2026 17:43 Inactive
@vercel
vercel Bot temporarily deployed to Preview – next-prisma-starter November 2, 2026 17:43 Inactive

@trpc-bot trpc-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased onto main after #7821 merged. #7821's commit is dropped and the two fix commits are unchanged. All 50 checks pass at 815bd82. CodeRabbit reviewed this head with no actionable comments, and no thread is open. Approving.

@KATT
KATT added this pull request to the merge queue Nov 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 2, 2026
@KATT
KATT added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 05f2d51 Nov 2, 2026
53 checks passed
@KATT
KATT deleted the cursor/omit-imageless-sponsors branch November 2, 2026 21:27
meefs pushed a commit to meefs/trpc that referenced this pull request Nov 2, 2026
…c#7827)

<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
It uses [trpc#7826](trpc#7826 avatar
fetching, now on `main`.

## Why

- tRPC's partners get logos on the home page and the README, but nothing
on the social cards, which are what most people see of a shared link.
- A small "Supported by" strip thanks them on every card without
crowding the title.

## What

- **A strip along the foot of every card** (`www/src/og/card.ts`): home,
docs, API reference, blog posts and the other pages. A thin rule,
"SUPPORTED BY", then each partner's avatar and name.
- **Not on `/sponsor`'s card**, which already shows the partners larger,
with their tier.
- **The partners** come from `sponsors.json`: the Gold and Silver
sponsors by rank, at most four (`cardFooterPartners` in
`www/src/sponsors.ts`). Today that is CodeRabbit, Greptile and SerpApi.
It's the same list `/sponsor`'s card draws.
- **Avatars** use trpc#7826's `Avatars` service (`www/src/og/avatar.ts`),
with its timeouts and retries. They're fetched along with the card's
other avatars, all at once.
- **A partner whose avatar doesn't load is left out** of the strip. No
initials. With none loaded, there's no strip, and the card is the same
as before, byte for byte.
- **Caching:** a card missing a partner's avatar is cached for 10
minutes, like one missing an author's, so the next request tries again.
- `live`, `cacheControl`, `cardElement` and `renderOgImage` take the
partners as an optional last argument. It defaults to `sponsors.json`'s,
so `routes/og.$.ts` doesn't change, and tests can use a local server
instead of GitHub.

### Renders

Before is `main` with trpc#7826. After is this PR, with live avatars.

Home:

![Home card
before](https://cursor.com/artifacts/c/art-a7b25d45-8ade-4e9c-b986-092317044d41)
![Home card
after](https://cursor.com/artifacts/c/art-5a0381aa-ec5f-45d1-81f8-44cc51e6cf6c)

A docs page:

![Quickstart card
before](https://cursor.com/artifacts/c/art-c37ee59e-65b6-42e9-940c-ab889048a75a)
![Quickstart card
after](https://cursor.com/artifacts/c/art-a64618d1-41e3-4a84-adc8-7151585c493c)

A long docs title:

![Long docs title
before](https://cursor.com/artifacts/c/art-095a579e-4cd4-473b-8562-7df8ea840c2a)
![Long docs title
after](https://cursor.com/artifacts/c/art-6f3f7244-c59b-4035-b49d-ac4b35ed7a7d)

The API reference, with its long URL:

![API reference card
before](https://cursor.com/artifacts/c/art-2199ae8c-e1e2-417c-8399-057b3c997de0)
![API reference card
after](https://cursor.com/artifacts/c/art-0eb92954-549d-401c-891d-15386c1e013f)

A blog post with author avatars:

![Blog post card
before](https://cursor.com/artifacts/c/art-26d29da0-12d7-4c19-b6d5-859c6db6ecf2)
![Blog post card
after](https://cursor.com/artifacts/c/art-9ce9001f-c5af-4758-8dde-9bc36eedf7da)

A blog post with a long title:

![Long blog title
before](https://cursor.com/artifacts/c/art-30889d3c-78ae-46fe-9fa1-822abb8dc65e)
![Long blog title
after](https://cursor.com/artifacts/c/art-33136fd8-2df0-4782-8101-7afa1019f803)

The blog index:

![Blog index
before](https://cursor.com/artifacts/c/art-89b77825-f843-419b-b562-680a0681ed79)
![Blog index
after](https://cursor.com/artifacts/c/art-4052e8c9-3b61-4128-8ef1-eb5865767df9)

`/sponsor` doesn't change:

![Sponsor card
after](https://cursor.com/artifacts/c/art-681bebfe-56de-4ef7-91d2-744d29f11192)

When Greptile's avatar fails, the strip leaves Greptile out:

![Docs card with one partner avatar
missing](https://cursor.com/artifacts/c/art-5678e5cd-0ce2-49f5-9ea9-9cffb9305f5c)

When no partner's avatar loads, there's no strip:

![Docs card with no partner
avatars](https://cursor.com/artifacts/c/art-7e6731e0-d890-4870-ae58-409d3982fbae)

## Links

- Home:
[card](https://www-git-cursor-og-partner-strip-trpc.vercel.app/og/index.png)
- Docs: [Quickstart
card](https://www-git-cursor-og-partner-strip-trpc.vercel.app/og/docs/quickstart.png)
- API reference: [TRPCProcedureBuilder
card](https://www-git-cursor-og-partner-strip-trpc.vercel.app/og/docs/typedoc/server/index/interfaces/TRPCProcedureBuilder.png)
- Blog: [Introducing the new TanStack React Query integration
card](https://www-git-cursor-og-partner-strip-trpc.vercel.app/og/blog/introducing-tanstack-react-query-client.png)
- Sponsor:
[card](https://www-git-cursor-og-partner-strip-trpc.vercel.app/og/sponsor.png),
unchanged.

## Alternatives considered

- **Partner logos instead of avatars:** the site draws partners'
wordmarks as React components. Each would need porting to Satori, and a
new partner would have none until someone drew it. Avatars come with
every sponsor.
- **Initials for a partner whose avatar fails:** a letter in a brand's
place looks broken. Leaving them out reads better, and the next request
tries again.
- **The strip in the header, beside the section pill:** it crowds the
logo and pulls the eye away from the title.
- **Storing the partners on each card:** every docs and API reference
card would carry the same list in the server bundle. The renderer reads
it once from `sponsors.json` instead.

## Testing

- `www` tests pass (278). New tests cover:
- `cardFooterPartners`: `sponsors.json`'s partners by rank, the same as
`/sponsor`'s card draws.
- Fetching the partners' avatars for a docs card from a local server,
and the 10-minute cache when one fails.
- A partner whose SVG can't be sized is left out of the strip, with no
initials. With none loaded there is no strip. `/sponsor`'s card has
none.
- The home and doc cards name the partners along their foot when their
avatars load.
  - Passing the partners changes the rendered PNG.
- Every card type renders at 1200×630 with and without the partners'
avatars.
- `pnpm lint`, typecheck and `oxfmt --check` pass in `www`.
- `pnpm build` passes ("All 698 of trpc.io's URLs work").
- `/sponsor`'s card renders the same as before, byte for byte. A card
with no partner avatars renders the same as before, byte for byte.

## AI model

Claude Opus 5.5
<!-- CURSOR_AGENT_PR_BODY_END -->

<div><a
href="https://cursor.com/agents/bc-f3e3c393-74f1-51c3-9e62-ee29635fa923?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a
href="https://cursor.com/background-agent?bcId=bc-f3e3c393-74f1-51c3-9e62-ee29635fa923&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;</div>

<!-- codesmith:footer -->
---
<a
href="https://backend.blacksmith.sh/track/enable-autofix?expires=1796228972&installation_model_id=443568&pr_number=7827&ref=codesmith_pr_footer&repository=trpc%2Ftrpc&return_to=https%3A%2F%2Fgithub.com%2Ftrpc%2Ftrpc%2Fpull%2F7827&signature=0f09ba86627da26485214848ebcc7485610cd13c24a1ea607be50348a7dce124"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img
alt="Autofix with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png"
width="190" height="28"></picture></a>
<sup><a
href="https://app.blacksmith.sh/trpc/codesmith/trpc/pr/7827?autoLogin=true&ref=codesmith_pr_footer">Open
in [code]smith</a> · Need help on this PR? Tag
<code>@codesmith-bot</code> with what you need.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
* Social preview cards for the home page, posts, and documentation can
display a footer with up to four partner avatars and names.
* The footer appears below the card content when partner avatars load,
and is omitted when none are available. Sponsor cards continue to
display without this footer.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Cursor Agent <[email protected]>
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

This pull request has been locked because we are very unlikely to see comments on closed issues. If you think, this PR is still necessary, create a new one with the same branch. Thank you.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 4, 2026

This branch was successfully deployed

1 active and 4 inactive deployments
Preview – www — 815bd820 Deployed Nov 2, 2026 by vercel[bot]
Preview – next-prisma-starter — 815bd820 Deployed Nov 2, 2026 by vercel[bot]
Preview – examples-next-minimal-starter — 815bd820 Deployed Nov 2, 2026 by vercel[bot]
Preview – examples-todomvc — 815bd820 Deployed Nov 2, 2026 by vercel[bot]
Preview – trpc-next-app-dir — 815bd820 Deployed Nov 2, 2026 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants