Skip to content

Add template generalization features: rename script, common components, multi-screen guide - #4

Merged
veillette merged 1 commit into
mainfrom
claude/template-generalization-multiscreen-jloyia
Jun 14, 2026
Merged

veillette merged 1 commit into
mainfrom
claude/template-generalization-multiscreen-jloyia

Conversation

@veillette

Copy link
Copy Markdown
Collaborator
  • scripts/rename-sim.ts: automated fork/rename replaces all template
    identifiers in file content and renames files/folders in one pass;
    registered as npm run rename
  • src/common/SimPanel.ts: pre-themed Panel wrapper that uses SimColors
    automatically; every control panel in a forked sim should use this
  • src/common/TimeModel.ts: composable play/pause + elapsed-time model
    for animated sims; compose into screen model, wire view to
    TimeControlNode
  • doc/multi-screen.md: complete guide covering independent vs.
    shared-model architectures, file structure, StringManager changes,
    home-screen icons, per-screen a11y strings, and usage beyond direct
    copy (GitHub template, monorepo, npm create, git subtree)
  • CLAUDE.md: updated with new common-component API examples, multi-screen
    summary, rename-script instructions, and usage-beyond-copy table
  • doc/implementation-notes.md: updated architecture diagram and fork
    checklist to reflect new common components and rename script

https://claude.ai/code/session_01HGpwLPoEwEd4yAqLJPUmAn

…s, multi-screen guide

- scripts/rename-sim.ts: automated fork/rename replaces all template
  identifiers in file content and renames files/folders in one pass;
  registered as `npm run rename`
- src/common/SimPanel.ts: pre-themed Panel wrapper that uses SimColors
  automatically; every control panel in a forked sim should use this
- src/common/TimeModel.ts: composable play/pause + elapsed-time model
  for animated sims; compose into screen model, wire view to
  TimeControlNode
- doc/multi-screen.md: complete guide covering independent vs.
  shared-model architectures, file structure, StringManager changes,
  home-screen icons, per-screen a11y strings, and usage beyond direct
  copy (GitHub template, monorepo, npm create, git subtree)
- CLAUDE.md: updated with new common-component API examples, multi-screen
  summary, rename-script instructions, and usage-beyond-copy table
- doc/implementation-notes.md: updated architecture diagram and fork
  checklist to reflect new common components and rename script

https://claude.ai/code/session_01HGpwLPoEwEd4yAqLJPUmAn
@veillette
veillette merged commit 4e7348a into main Jun 14, 2026
3 of 4 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Comment thread scripts/rename-sim.ts
if (stat.isDirectory()) {
processContents(full);
} else if (TEXT_EXTS.has(fileExtension(entry))) {
const original = readFileSync(full, "utf8");
Comment thread scripts/rename-sim.ts
const original = readFileSync(full, "utf8");
const transformed = applyReplacements(original);
if (transformed !== original) {
writeFileSync(full, transformed, "utf8");
@veillette
veillette deleted the claude/template-generalization-multiscreen-jloyia branch June 14, 2026 18:59
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.

3 participants