Repository navigation
Add React play screen with a live system map - #3
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
A React + TypeScript frontend in
frontend/using the "System map" design.systemctl status …,df -h) on the prompt without running it.RunChannelover Action Cable. Terminal output always comes from the HTTP response, so a dropped socket never loses output.Backend changes
map(nodes, edges, status per node),logs(recent journal lines per service),hintandcurrent_host. Scenarios also declare afocus_metric.Repo
frontendjob that runs lint, type check and build. It usesactions/checkout@v7, matching 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.