Skip to content

test(cms): regression test — site app entry detection on TanStack Start sites#4049

Open
JonasJesus42 wants to merge 1 commit into
mainfrom
fix/cms-studio-tanstack-site-tab
Open

test(cms): regression test — site app entry detection on TanStack Start sites#4049
JonasJesus42 wants to merge 1 commit into
mainfrom
fix/cms-studio-tanstack-site-tab

Conversation

@JonasJesus42

@JonasJesus42 JonasJesus42 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Root cause documented

TanStack Start's generate-schema.ts only emits manifest.blocks.sections. composeMeta adds pages/loaders/actions/matchers at runtime, but never apps. As a result isResolvableManifestApp(meta, "site/apps/site.ts") was returning false and the Studio's Site tab showed Site settings not found.

The fix in #4012 (isSiteAppBlock short-circuit on the canonical site key) is the correct behavior; the schema rendering is addressed on the site side via the companion PR in baggagio-tanstack.

Test plan

  • bun test apps/mesh/src/web/components/sections-editor/page-list.test.ts — 13 pass

Generated with Claude Code


Summary by cubic

Add a regression test for findSiteAppEntry so TanStack Start sites resolve the site app even when manifest.blocks.apps is missing. This locks in the behavior that trusts the canonical "site" key and prevents the Studio Site tab from showing "Site settings not found".

Written for commit fd6fd98. Summary will update on new commits.

Review in cubic

…rt sites

TanStack Start's composeMeta does not register site/apps/site.ts in
manifest.blocks.apps, causing findSiteAppEntry to return null for
these sites. The canonical 'site' key is now trusted directly via
isSiteAppBlock. This test documents and guards that behavior.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant