Skip to content

feat: enhanced auto render and pr publish.#38

Merged
knightedcodemonkey merged 4 commits intomainfrom
bananas
Mar 28, 2026
Merged

feat: enhanced auto render and pr publish.#38
knightedcodemonkey merged 4 commits intomainfrom
bananas

Conversation

@knightedcodemonkey
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings March 28, 2026 17:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the playground’s auto-render behavior (by implicitly creating an App entrypoint when possible) and updates the “Open Pull Request” flow to optionally strip or include the App wrapper when committing component source.

Changes:

  • Add implicit App wrapper generation in the render runtime when auto-render is enabled, and tighten runtime expectations around an App entrypoint.
  • Add an “Include App wrapper…” checkbox to the Open PR drawer; default behavior strips the top-level App wrapper from committed component source.
  • Introduce shared JSX transform/declaration helpers and update Playwright coverage for the new behaviors.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/styles/ai-controls.css Adds layout/styling for the Open PR drawer checkbox row.
src/modules/render-runtime.js Implements implicit App wrapping for auto-render and updates runtime entrypoint expectations/errors.
src/modules/lint-diagnostics.js Updates unused-binding allowlist to only ignore App.
src/modules/jsx-transform-runtime.js Adds a cached loader for transformJsxSource from the CDN.
src/modules/jsx-top-level-declarations.js Adds utilities to collect and query top-level function-like declarations.
src/modules/github-pr-drawer.js Adds checkbox wiring and default behavior to strip top-level App wrapper before committing.
src/index.html Adds the “Include App wrapper…” checkbox to the Open PR drawer UI.
src/app.js Wires new checkbox + declaration collection into the PR drawer and auto-render behavior into the render runtime.
playwright/rendering-modes.spec.ts Adds tests for preview clearing and implicit App wrapper behavior.
playwright/github-pr-drawer.spec.ts Adds tests ensuring committed source strips/includes App wrapper per checkbox state.
playwright/diagnostics.spec.ts Updates expectations for unused binding handling (now only ignores App).
docs/next-steps.md Adds a new “Phase 2 UX/UI continuation” section outlining next work.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings March 28, 2026 18:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@knightedcodemonkey knightedcodemonkey merged commit 979c9cf into main Mar 28, 2026
1 check passed
@knightedcodemonkey knightedcodemonkey deleted the bananas branch March 28, 2026 19:15
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