Skip to content

test: turn existing templates in js files#87

Merged
syd-shields merged 17 commits intotest-productionfrom
sydshields/dash-1732-turn-existing-templates-in-js-files
May 4, 2026
Merged

test: turn existing templates in js files#87
syd-shields merged 17 commits intotest-productionfrom
sydshields/dash-1732-turn-existing-templates-in-js-files

Conversation

@syd-shields
Copy link
Copy Markdown

@syd-shields syd-shields commented May 4, 2026

Note

Medium Risk
Adds new GitHub Actions workflows that fetch a public templates list, generate javascript/, and auto-commit pushes to protected branches; failures or API changes could block merges or produce unexpected generated output.

Overview
Introduces a playground-only TypeScript→JavaScript generation pipeline: new workflows for production and test-production run ci:playground to build javascript/ from only templates marked playground-runnable by the public templates API, validate the sources, and (on branch pushes) commit the regenerated javascript/ back to the branch.

Adds new build/validation tooling (scripts/build-javascript.mjs, scripts/playground-ci.mjs, scripts/validate-playground-templates.mjs, and helpers) plus new package scripts and a typescript devDependency; updates the README to clarify that typescript/ is the source of truth and full-tree JS generation is now local-only. Also adds CODEOWNERS entries requiring Dashboard review for the generated JS and the new playground CI scripts/workflow.

Reviewed by Cursor Bugbot for commit 5b91a7e. Bugbot is set up for automated code reviews on this repo. Configure here.

@syd-shields syd-shields merged commit 6c50ed7 into test-production May 4, 2026
4 of 5 checks passed
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 5b91a7e. Configure here.


const includeTemplates = new Set(parseListFlag(argv, "--include-template"));
const includePaths = parseListFlag(argv, "--include-path");
const excludePathOnly = parseListFlag(argv, "--exclude-path");
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CLI flags parsed redundantly in two places

Low Severity

parseListFlag for --include-template, --include-path, and --exclude-path is called both inside createFileFilter and again at the top of buildJavaScriptTemplates. The results serve the same logical purpose (determining which templates/paths are active), creating a maintenance risk: any change to flag semantics or names needs to stay in sync across both call sites.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5b91a7e. Configure here.

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