Skip to content

Add React play screen with a live system map - #4

Merged
royalpriest merged 3 commits into
mainfrom
feat/play-screen
Nov 20, 2026
Merged

royalpriest merged 3 commits into
mainfrom
feat/play-screen

Conversation

@royalpriest

@royalpriest royalpriest commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Moves the play screen onto main. #3 was merged into feat/scenario-engine after #1 had already landed, so the change never reached main.

The content is the same as #3: a React + TypeScript frontend in frontend/ with the "System map" design (chapter picker, live system map, step card with hints, gauge and alerts, xterm.js terminal with logs, and a phone dock). It also adds the backend map/logs/hint payload and a frontend CI job.

This branch is merged with main, and the frontend CI job now uses actions/checkout@v7 to match the Dependabot bump.

Checks

  • bin/rails test: 33 runs, 0 failures. bin/rubocop: clean. bin/brakeman: 0 warnings.
  • npm run lint: clean. npm run build: passes.

The frontend (Vite + React + TypeScript) has a chapter picker and a play
screen: a map of the shop's system where the part in trouble glows, a step
card with hints, a memory or disk gauge with alerts, and an xterm.js
terminal with a logs tab. Time ticks every 4 seconds so incidents evolve
while the player reads. Phones get one section at a time from a bottom dock.

The API now returns the map, recent logs and the current hint. The
Monitoring chapter starts with the leak already under way so the alert
fires within a minute. CI also lints and builds the frontend.
@royalpriest
royalpriest merged commit 1e2734d into main Nov 20, 2026
2 checks passed
@royalpriest
royalpriest deleted the feat/play-screen branch November 22, 2026 16:08
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