Skip to content

chore: sync template dead-code tags and test fixes - #147

Merged
veillette merged 1 commit into
mainfrom
chore/template-knip-public-tags
Nov 2, 2026
Merged

veillette merged 1 commit into
mainfrom
chore/template-knip-public-tags

Conversation

@veillette

Copy link
Copy Markdown
Collaborator

Propagates SceneryStackTemplate fd8e10f to this sim's template-owned files.

  • tests/helpers/memoryLeak.ts, src/common/<Sim>ButtonOptions.ts, src/common/<Sim>ControlOptions.ts: tag the template's toolkit exports @public. Each sim uses only some of them, so dead-code checkers (knip) reported the rest as unused in every sim. Sim-added exports are left untagged.
  • FLAT_RECTANGULAR_BUTTON_OPTIONS and FLAT_RESET_ALL_BUTTON_OPTIONS become their own objects instead of aliases (knip reported duplicate exports). Same option values.
  • tests/fuzz/fuzz.spec.ts: the liveness probe now calls document.hasFocus() instead of returning the unbound method.
  • tests/setup.ts: document why getContext is stored detached.

Comments and tags only, apart from the two option objects and the fuzz probe. Verified lint and typecheck on QuantumPotential, FluidPressureAndFlow, MotionSensor and ACPhasor.

🤖 Generated with Claude Code

Propagate SceneryStackTemplate fd8e10f: tag template toolkit exports @public
for dead-code checkers, make the flat-button aliases distinct objects, call
document.hasFocus() in the fuzz liveness probe, and document the detached
getContext in tests/setup.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

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

Scanned Files

None

@veillette
veillette merged commit 3a4624b into main Nov 2, 2026
8 checks passed
@veillette
veillette deleted the chore/template-knip-public-tags branch November 2, 2026 17:12
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