Skip to content

chore: dead code removal and helper deduplication - #26

Merged
authorTom merged 1 commit into
mainfrom
chore/cleanup
Jul 7, 2026
Merged

chore: dead code removal and helper deduplication#26
authorTom merged 1 commit into
mainfrom
chore/cleanup

Conversation

@authorTom

Copy link
Copy Markdown
Owner

Summary

Codebase cleanup with no behaviour change:

  • Removed now-dead CSS for the deleted demo-credentials login panel
  • Deduplicated the wizard tab list (4 copies → one EDITOR_TABS constant), the CSV quote helper (2 copies), and the programme-directory scan in server.js (4 copies → eachProgramme, which also standardises skip-and-log handling of unreadable files)
  • Removed unused state fields (runState.startTime, debriefState.timerRunning)
  • .gitignore now covers .claude/; package.json declares the engines range the README badge advertises

Testing

  • QA suite passes (37/37); syntax checks clean; no dangling references to removed identifiers
  • Puppeteer UI test not run (Chrome not installed on this machine); the wizard changes are mechanically identical logic (same array, same indices)

🤖 Generated with Claude Code

- Drop CSS for the demo-credentials login panel removed in the
  production-hardening work
- Hoist the scenario wizard tab order into a single EDITOR_TABS
  constant (was declared four times, twice within one function)
- Extract csvQuote helper shared by the two CSV exports
- Extract eachProgramme helper for the four programme-directory scans
  in server.js (also gives the auth helpers consistent skip-and-log
  handling of unreadable files via readJsonSafe)
- Remove unused runState.startTime and debriefState.timerRunning
- Ignore .claude/ local assistant settings; declare the Node engine
  range package.json already advertises in the README badge

No behaviour change. QA suite passes (37/37).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@authorTom
authorTom merged commit 27e9b3a into main Jul 7, 2026
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