Skip to content

feat(studio): render with preview variables + template handoff + docs#2051

Open
jrusso1020 wants to merge 1 commit into
07-07-feat_studio_variables_inspector_panel_with_live_preview_valuesfrom
07-07-feat_studio_render_with_preview_variables_template_handoff_docs
Open

feat(studio): render with preview variables + template handoff + docs#2051
jrusso1020 wants to merge 1 commit into
07-07-feat_studio_variables_inspector_panel_with_live_preview_valuesfrom
07-07-feat_studio_render_with_preview_variables_template_handoff_docs

Conversation

@jrusso1020

@jrusso1020 jrusso1020 commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

What

Sixth PR of the template-variables stack: closing the loop from preview to render to developer handoff.

  • Renders started from the Renders tab carry the active preview variable overrides (StartRenderOptions.variablesPOST /renderRenderConfig.variables) — you render exactly what you're previewing
  • Variables panel "Use this template" footer: copy the effective values (defaults merged with overrides) as JSON, or as a ready-to-run npx hyperframes render <comp> --variables '<json>' command (shell-quote-safe — see feat(studio): variables inspector panel with live preview values #2050's review fixes for the quoting helper)
  • .gitignore: negate the renders/ output rule for the tracked src/components/renders/ source dir — without it, the pre-commit format re-stage (git add {staged_files}) hard-fails on any change to those files
  • Docs: docs/concepts/variables.mdx described an aspirational Studio panel — replaced with the real Variables-in-Studio section; the new SDK variable APIs documented in docs/sdk/reference/composition.mdx

Why

Copy-a-working-command is the highest-leverage developer handoff pattern (the command reflects current panel state and runs as-is), and render-what-you-preview is the whole point of making preview injection render-truthful.

Test plan

🤖 Generated with Claude Code

Sixth PR of the template-variables Studio stack — closing the loop from
preview to render to developer handoff.

- renders started from the Renders tab now carry the active preview
  variable overrides (StartRenderOptions.variables → POST /render →
  RenderConfig.variables), so "render" produces exactly what the user is
  previewing.
- Variables panel "Use this template" footer: copy the effective values
  (defaults merged with overrides) as JSON, or as a ready-to-run
  `npx hyperframes render <comp> --variables '<json>'` command.
- gitignore: negate the renders/ output rule for the tracked
  src/components/renders/ source dir — without it, pre-commit's format
  re-stage (`git add {staged_files}`) hard-fails on any change to those
  files.
- docs: the Studio panel docs/concepts/variables.mdx described was
  aspirational — replace with the real Variables-in-Studio section
  (declare/edit, render-truthful preview, render-with-values, handoff,
  usage badges); document the new SDK variable APIs in
  docs/sdk/reference/composition.mdx (declaration ops, read APIs,
  setPreviewVariables).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jrusso1020 jrusso1020 force-pushed the 07-07-feat_studio_variables_inspector_panel_with_live_preview_values branch from dc052d3 to f2a1662 Compare July 8, 2026 08:00
@jrusso1020 jrusso1020 force-pushed the 07-07-feat_studio_render_with_preview_variables_template_handoff_docs branch from b6b3f61 to 8254c95 Compare July 8, 2026 08:00
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