Skip to content

WEB-135 Enable server-side rendering, refactor up styling system#121

Merged
wlenig merged 6 commits into
mainfrom
WEB-135
Mar 31, 2026
Merged

WEB-135 Enable server-side rendering, refactor up styling system#121
wlenig merged 6 commits into
mainfrom
WEB-135

Conversation

@wlenig
Copy link
Copy Markdown
Collaborator

@wlenig wlenig commented Mar 31, 2026

  • Removes the old root-page workaround by switching the published site route to an optional catch-all, so "/" and nested published paths resolve through the same server-rendered entrypoint.
  • Moves published document lookup/path normalization into a shared helper and reuses a single PuckRender wrapper for both the published route and editor preview rendering.
  • Removes the Puck payload/client-boundary coupling from the responsive field system so responsive field descriptors stay serializable and server-safe.
  • Refactors responsive Puck fields into shared kind definitions plus client-only renderers, with a small registry that maps descriptor.kind to the correct control at the client boundary.
  • Adds first-class responsive number fields alongside responsive token-backed select fields, including dedicated number/ select control handling for inherit/override behavior.
  • Splits shared breakpoint layout from kind-specific controls, reducing duplicated responsive field UI logic and removing the old responsive-token-field implementation.
  • Simplifies the prop-builder API around responsive.select(...) and responsive.number(...), and updates existing components to use the new responsive select builder consistently.
  • Adds focused tests for responsive field descriptors, prop builder/default normalization, and responsive select/number control behavior.
  • Updates docs/STYLING.md to document the new responsive field architecture, the server/client boundary split, and how to add future responsive field kinds.

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 31, 2026

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

Project Deployment Actions Updated (UTC)
website-development Ready Ready Preview, Comment Mar 31, 2026 5:37am

@wlenig wlenig merged commit b0c0fc2 into main Mar 31, 2026
3 checks passed
@wlenig wlenig deleted the WEB-135 branch March 31, 2026 06:16
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.

2 participants