Repository navigation
docs: Update Blog. Remove invalid Tweet URL and update Profile URL - #7321
MohamedSayed0573 wants to merge 3 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughA blog post was updated to change Dan Abramov's author attribution from an X/Twitter profile URL to a Bluesky profile URL and to remove an embedded Tweet component, replacing it with a plain-text attribution. No other article content or code samples were modified. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Pull request overview
Updates the tRPC blog post to remove a now-invalid embedded tweet and switch the referenced Dan Abramov profile link away from Twitter/X.
Changes:
- Replaced the Dan Abramov profile URL from
x.comtobsky.app. - Removed the embedded
<Tweet />block from the post.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
@trpc/client
@trpc/next
@trpc/openapi
@trpc/react-query
@trpc/server
@trpc/tanstack-react-query
@trpc/upgrade
commit: |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <div className="mb-4 flex w-full justify-center"> | ||
| <Tweet id="1756120297529368801" /> | ||
| </div> | ||
| You may think that this sounds similar to tRPC which is true. According to [Dan Abramov](https://bsky.app/profile/danabra.mov), server actions are tRPC as a bundler feature: |
There was a problem hiding this comment.
After removing the embedded tweet, the sentence ends with a colon but no longer introduces a quote/embed. Consider changing the trailing ':' to a '.' (or add a short quote block) so the paragraph reads naturally.
| You may think that this sounds similar to tRPC which is true. According to [Dan Abramov](https://bsky.app/profile/danabra.mov), server actions are tRPC as a bundler feature: | |
| You may think that this sounds similar to tRPC which is true. According to [Dan Abramov](https://bsky.app/profile/danabra.mov), server actions are tRPC as a bundler feature. |
|
🤖 Closing: this edits an old blog post, and we'd rather keep published posts as they were written instead of rewriting history. Thanks for taking the time though! |
The website embedded tweets live from X in two places: - The [Using Server Actions with tRPC](https://trpc.io/blog/trpc-actions) post, through `react-tweet`. - The [Testimonials](https://trpc.io/docs/community/love) page (`www/unversioned/_love.mdx`, shared by the current, v10 and v9 docs), through `twitter-tweet` blockquotes and X's `widgets.js`. Those embeds break when a tweet is deleted or its account goes private, and two of them already have. This PR replaces every live tweet embed with a static copy, rendered by a new `StaticTweet` component. That restores the deleted tweet in the blog post and removes the third-party X embed dependency from the site. No surrounding wording changes on either page. ### Embed dependency removed - The `react-tweet` package, from `www/package.json` and `pnpm-lock.yaml`. The lockfile change is removals only, for `react-tweet` and its orphaned `swr` and `use-sync-external-store`. - `https://platform.twitter.com/widgets.js`, from `scripts` in `www/docusaurus.config.ts` and from the home page's `<Head>` in `www/src/pages/index.tsx`. - `www/docusaurus.twitterReload.js`, the client module that re-ran `twttr.widgets.load()` on route changes. ### Added `www/src/components/StaticTweet.tsx` is a small card styled like the existing `TwitterWall` cards, in light and dark mode. It shows the name, handle, text and date, and turns URLs and @mentions in the text into links. The date links to the tweet on X, and tweets that are gone from X also get an "Archived copy" link. Avatars are the authors' GitHub avatars rather than hotlinked twimg images. ### Tweets and where their content came from No content was written by hand. Every timestamp also matches the one encoded in the tweet's ID. All 9 embedded tweets were recovered; none had to be dropped. | Tweet | Status | Source | | --- | --- | --- | | [@dan_abramov2/1756120297529368801](https://x.com/dan_abramov2/status/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](https://x.com/ralex1993/status/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 | X's syndication endpoint (`cdn.syndication.twimg.com/tweet-result`), matching the embed fallback text already on the page | Notes: - Leading reply mentions are left out, as X's own embeds do. - `t.co` links are expanded. - The tweets that quote another tweet (Matt's and Colin's) end with a link to the quoted tweet instead of a quote card. - Display names are kept as the page already showed them. This replaces the tweet part of trpc#7321, without rewriting the post. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Improvements** * Tweets in the blog article and testimonials now display directly on the site, with author details, post text, timestamps, and linked URLs, mentions, and hashtags. * Testimonials with an archived copy include a link to it. * Tweet displays no longer rely on Twitter’s external widgets. <!-- end of auto-generated comment: release notes by coderabbit.ai --> <!-- CURSOR_AGENT_PR_BODY_BEGIN --> The website embedded tweets live from Twitter in two places: - The [Using Server Actions with tRPC](https://trpc.io/blog/trpc-actions) post, through `react-tweet`. - The [Testimonials](https://trpc.io/docs/community/love) page (`www/unversioned/_love.mdx`, shared by the current, v10 and v9 docs), through `twitter-tweet` blockquotes and Twitter's `widgets.js`. Those embeds break when a tweet is deleted or its account goes private, and two of them already have. This PR replaces every live tweet embed with a static copy, rendered by a new `StaticTweet` component styled like a classic Twitter embedded tweet. That restores the deleted tweet in the blog post and removes the third-party Twitter embed dependency from the site. No surrounding wording changes on either page. ### Embed dependency removed - The `react-tweet` package, from `www/package.json` and `pnpm-lock.yaml`. The lockfile change is removals only, for `react-tweet` and its orphaned `swr` and `use-sync-external-store`. - `https://platform.twitter.com/widgets.js`, from `scripts` in `www/docusaurus.config.ts` and from the home page's `<Head>` in `www/src/pages/index.tsx`. - `www/docusaurus.twitterReload.js`, the client module that re-ran `twttr.widgets.load()` on route changes. ### Added `www/src/components/StaticTweet.tsx` renders a tweet from static data, styled like a classic Twitter embedded tweet (styles in `www/src/css/custom.css`, light and dark mode). - **Header:** the author's round avatar, display name and @handle, linking to their Twitter profile, with the Twitter bird at the top right. - **Text:** line breaks are kept, and URLs, @mentions and #hashtags are links in Twitter blue. - **Footer:** the timestamp as embeds show it (`12:58 AM · Feb 10, 2024`, in UTC so the build output is stable) and a "Read more on Twitter" button. Both link to the original tweet on twitter.com, including Dan Abramov's deleted one. Tweets that are gone from Twitter also get a small "Archived copy" link next to the timestamp. - **Avatars:** the authors' GitHub avatars rather than hotlinked twimg images. - **Links:** each tweet takes its `id`, and every link is built as `https://twitter.com/<handle>/status/<id>`. ### Tweets and where their content came from No content was written by hand. Every timestamp also matches the one encoded in the tweet's ID. All 9 embedded tweets were recovered; none had to be dropped. | Tweet | Status | Source | | --- | --- | --- | | [@dan_abramov2/1756120297529368801](https://twitter.com/dan_abramov2/status/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](https://twitter.com/ralex1993/status/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 | Notes: - Leading reply mentions are left out, as Twitter's own embeds do. - `t.co` links are expanded. - The tweets that quote another tweet (Matt's and Colin's) end with a link to the quoted tweet instead of a quote card. - Display names are kept as the page already showed them.   This replaces the tweet part of trpc#7321, without rewriting the post. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Improvements** * Tweets in the blog article and testimonials now display directly on the site, with author details, post text, timestamps, and linked URLs, mentions, and hashtags. * Testimonials with an archived copy include a link to it. * Tweet displays no longer rely on Twitter’s external widgets. <!-- end of auto-generated comment: release notes by coderabbit.ai --> <!-- CURSOR_AGENT_PR_BODY_END --> <div><a href="https://cursor.com/agents/bc-8b51bd4c-a255-49aa-a10b-f9b8b19a86c0?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> <a href="https://cursor.com/background-agent?bcId=bc-8b51bd4c-a255-49aa-a10b-f9b8b19a86c0&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> </div> --------- Co-authored-by: Cursor <[email protected]>
|
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. |
https://trpc.io/blog/trpc-actions

Updated the link to Dan Abramov's profile from Twitter (which is banned https://x.com/dan_abramov2) to Bluesky (https://bsky.app/profile/danabra.mov) and removed the embedded tweet.