Skip to content

chore(examples): refresh minimal-react UI with shared tRPC UI - #7785

Closed
KATT wants to merge 1 commit into
cursor/examples-subtree-standalone-9614from
cursor/minimal-react-ui-refresh-9614
Closed

KATT wants to merge 1 commit into
cursor/examples-subtree-standalone-9614from
cursor/minimal-react-ui-refresh-9614

Conversation

@KATT

@KATT KATT commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Why

What

  • minimal-react client:
    • Depends on "@shared/ui": "workspace:*" and imports @shared/ui/components/{card,alert,skeleton} directly. Nothing is vendored.
    • Adds a tRPC header, and shows the greeting result in a Card, with a Skeleton while loading and an Alert on error.
    • The query switches on greetingQuery.status. It doesn't read isPending or isError.
    • Tailwind 4 through @tailwindcss/vite. styles.css imports @shared/ui/theme.css and @sources only the three components it uses. CSS is 18.7 kB (4.5 kB gzipped).
    • React 19.3, its types and Tailwind come from catalog:www. tRPC usage and the smoke test are unchanged.
  • When the subtree workflow publishes it, chore(examples): make examples standalone at subtree publish time (tooling/subtree) #7786 copies those three components and theme.css into client/src/shared-ui/. It rewrites the imports and the @source, and adds their npm dependencies.

Links

Alternatives considered

  • Vendor the components into the example, with a sync script. This was the first version of this PR. It duplicates code in git, and the copies drift. Replaced by chore(examples): make examples standalone at subtree publish time (tooling/subtree) #7786.
  • useSuspenseQuery with Suspense and an error boundary. It would need an error-boundary component or a new dependency. One query reads more simply as a switch on status.
  • @shared/ui/globals.css. It scans every shared component, which makes the CSS about 230 kB instead of 19 kB.

Testing

  • In the monorepo, pnpm test-dev (Playwright smoke) passes, and so do the client build (includes tsc) and lint.
  • Standalone:
    • Wrote the copy with pnpm --filter @tooling/subtree standalone examples/minimal-react /tmp/sa/minimal-react.
    • Outside the repo, npm install, npm run build and npm run test-start pass.
    • The CSS hash is identical to the monorepo build.
  • After (1280×800):
    • Light: minimal-react, light
    • Dark: minimal-react, dark
  • Before: Before
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.

@KATT
KATT requested a review from a team as a code owner November 1, 2026 22:44
@vercel

vercel Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
og-image Error Error Nov 1, 2026 11:26pm UTC
www Ready Ready Preview Nov 1, 2026 11:26pm UTC
5 Skipped Deployments
Project Deployment Actions Updated
examples-todomvc Skipped Skipped Nov 1, 2026 11:26pm UTC
next-prisma-starter Skipped Skipped Nov 1, 2026 11:26pm UTC
next-prisma-websockets-starter Skipped Skipped Nov 1, 2026 11:26pm UTC
tanstack-start-sse-chat Skipped Skipped Nov 1, 2026 11:26pm UTC
trpc-next-app-dir Skipped Skipped Nov 1, 2026 11:26pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 1, 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

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

@pkg-pr-new

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

Copy link
Copy Markdown

Open in StackBlitz

@trpc/client

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

@trpc/next

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

@trpc/openapi

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

@trpc/react-query

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

@trpc/server

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

@trpc/tanstack-react-query

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

@trpc/upgrade

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

commit: 9fcac56

Base automatically changed from cursor/port-v12-website-28db to main November 1, 2026 23:10
@KATT
KATT requested a review from a team as a code owner November 1, 2026 23:10
@cursor
cursor Bot force-pushed the cursor/minimal-react-ui-refresh-9614 branch from ec24584 to 4ce0234 Compare November 1, 2026 23:12
@vercel
vercel Bot temporarily deployed to Preview – examples-todomvc November 1, 2026 23:12 Inactive
@vercel
vercel Bot temporarily deployed to Preview – next-prisma-starter November 1, 2026 23:12 Inactive
@vercel
vercel Bot temporarily deployed to Preview – trpc-next-app-dir November 1, 2026 23:12 Inactive
@cursor
cursor Bot changed the base branch from main to cursor/examples-subtree-standalone-9614 November 1, 2026 23:13
@cursor
cursor Bot force-pushed the cursor/minimal-react-ui-refresh-9614 branch from 4ce0234 to 80ce027 Compare November 1, 2026 23:14
@vercel
vercel Bot temporarily deployed to Preview – trpc-next-app-dir November 1, 2026 23:14 Inactive
@vercel
vercel Bot temporarily deployed to Preview – next-prisma-starter November 1, 2026 23:14 Inactive
@vercel
vercel Bot temporarily deployed to Preview – examples-todomvc November 1, 2026 23:14 Inactive
@cursor
cursor Bot force-pushed the cursor/minimal-react-ui-refresh-9614 branch from 80ce027 to b75f2df Compare November 1, 2026 23:21
@vercel
vercel Bot temporarily deployed to Preview – examples-todomvc November 1, 2026 23:21 Inactive
@vercel
vercel Bot temporarily deployed to Preview – trpc-next-app-dir November 1, 2026 23:21 Inactive
@vercel
vercel Bot temporarily deployed to Preview – next-prisma-starter November 1, 2026 23:21 Inactive
The greeting query switches on its status instead of reading isPending/isError.

Co-authored-by: alexander <[email protected]>
@cursor
cursor Bot force-pushed the cursor/examples-subtree-standalone-9614 branch from fdadc36 to 5a8990e Compare November 1, 2026 23:24
@cursor
cursor Bot force-pushed the cursor/minimal-react-ui-refresh-9614 branch from b75f2df to 9fcac56 Compare November 1, 2026 23:25
@vercel
vercel Bot temporarily deployed to Preview – trpc-next-app-dir November 1, 2026 23:25 Inactive
@vercel
vercel Bot temporarily deployed to Preview – next-prisma-starter November 1, 2026 23:25 Inactive
@vercel
vercel Bot temporarily deployed to Preview – examples-todomvc November 1, 2026 23:25 Inactive
@cursor

cursor Bot commented Nov 1, 2026

Copy link
Copy Markdown

Closing: the examples UI refresh is limited to examples with a Vercel deployment, and minimal-react has none.

@KATT KATT closed this Nov 1, 2026
@cursor
cursor Bot deleted the cursor/minimal-react-ui-refresh-9614 branch November 1, 2026 23:45
@github-actions

github-actions Bot commented Nov 3, 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 3, 2026

This branch had an error being deployed

1 failed, 1 active, and 3 inactive deployments
Preview – www — 9fcac567 Deployed Nov 1, 2026 by vercel[bot]
Preview – og-image — 9fcac567 Deployed Nov 1, 2026 by vercel[bot]
Preview – examples-todomvc — 9fcac567 Deployed Nov 1, 2026 by vercel[bot]
Preview – next-prisma-starter — 9fcac567 Deployed Nov 1, 2026 by vercel[bot]
Preview – trpc-next-app-dir — 9fcac567 Deployed Nov 1, 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.

2 participants