Skip to content

docs: replace live tweet embeds with static copies - #7703

Merged
KATT merged 4 commits into
v12from
cursor/v12-static-tweets-86c0
Oct 19, 2026
Merged

KATT merged 4 commits into
v12from
cursor/v12-static-tweets-86c0

Conversation

@KATT

@KATT KATT commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

The v12 version of #7698. v12's site (next/www) has no live Twitter embed, but its copies of trpc.io's Using Server Actions with tRPC post and Testimonials pages (v11, v10, v9), generated from v11/www by old-docs:copy, inherited the problems: Dan Abramov's deleted tweet showed as a "Post deleted" note, and the testimonials were raw twitter-tweet blockquotes with t.co links.

Changes

  • v11/www: docs: replace live tweet embeds with static copies #7698's changes, byte-for-byte.
    • A StaticTweet component styled like a Twitter embedded tweet replaces the react-tweet embed and the twitter-tweet blockquotes.
    • react-tweet is removed from v11/www/package.json and v11/pnpm-lock.yaml. The lockfile change is removals only: react-tweet, swr and use-sync-external-store.
    • Twitter's widgets.js and docusaurus.twitterReload.js are removed too.
  • next/www/build/old-docs-convert.ts: <StaticTweet>, alone or in the <div> that lays it out, becomes the same card in HTML. It replaces the react-tweet conversion and the deletedTweets list, and is tested in old-docs-convert.test.ts.
    • Header: the avatar, name and @handle link to the author's Twitter profile, with the Twitter bird at the top right.
    • Text: URLs, @mentions and #hashtags are links.
    • Footer: the timestamp as embeds show it (12:58 AM · Feb 10, 2024, UTC) and "Read more on Twitter". Both link to the tweet on twitter.com, deleted or not, and gone tweets also get an "Archived copy" link.
  • next/www/src/styles.css: figure.tweet, the same styles as trpc.io's, in light and dark mode (.dark).
  • Recopied: blog/trpc-actions.md, v11/docs/community/love.md, v10/docs/community/love.md and v9/docs/love.md. No other wording changes.

Tweets and where their content came from

Same content as #7698. No content was written by hand, and every timestamp matches the one encoded in the tweet's ID.

Tweet Status Source
@dan_abramov2/1756120297529368801 (blog post) Deleted by its author Wayback capture of the react-tweet API response the embed used: https://web.archive.org/web/20240526122424/https://react-tweet.vercel.app/api/tweet/1756120297529368801
@ralex1993/1556619478556876802 Account now protected Wayback capture of the tweet page; its og:description matches the embed fallback already on the page: https://web.archive.org/web/20220808123409/https://twitter.com/ralex1993/status/1556619478556876802
@mattpocockuk/1537761528962764802, @TkDodo/1573391189373751297, @theo/1571922456239284224, @mgechev/1549140656752234496, @tannerlinsley/1507753424187650048, @marcusradell/1402991694446952458, @colinhacks/1629950516242313216 Live Twitter's syndication endpoint (cdn.syndication.twimg.com/tweet-result), matching the embed fallback text already on the page

v12 blog post with Dan Abramov
v12 testimonials page, light mode

Verified with pnpm check, pnpm typecheck, pnpm vp test run www/, old-docs:check and pnpm docs:build.

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.

cursoragent and others added 4 commits October 19, 2026 22:42
Ports #7698 to v11/www: a StaticTweet component replaces the
react-tweet embed in the server actions post and the twitter-tweet
blockquotes on the testimonials page, and react-tweet, X's widgets.js
and docusaurus.twitterReload.js go.

Co-authored-by: Alex / KATT <[email protected]>
The old-docs copy converts v11/www's <StaticTweet> into a static card
styled by .tweet, instead of turning react-tweet embeds into links or a
note that the post was deleted. Recopies the server actions post and the
v11, v10 and v9 testimonials pages.

Co-authored-by: Alex / KATT <[email protected]>
…weets

Ports #7698's restyle to v11/www: StaticTweet looks like a
classic embedded tweet, links its author and the tweet on twitter.com,
deleted or not, and takes the tweet's id instead of a URL.

Co-authored-by: Alex / KATT <[email protected]>
The old-docs copy's <StaticTweet> cards get trpc.io's Twitter-style
markup and styles: the bird, the author linking to their profile, the
time as embeds show it, and the timestamp and "Read more on Twitter"
linking to the tweet on twitter.com. Recopies the server actions post
and the v11, v10 and v9 testimonials pages.

Co-authored-by: Alex / KATT <[email protected]>
@KATT
KATT requested review from a team as code owners October 19, 2026 23:22
@coderabbitai

coderabbitai Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: trpc/trpc/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f3c221ec-ca45-47f6-bbce-f40481b6ec01

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • 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

Comment @coderabbitai help to get the list of available commands.

@KATT
KATT merged commit 069735a into v12 Oct 19, 2026
44 of 46 checks passed
@github-actions

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 Oct 21, 2026
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