feat(admin): add on-demand game server healthcheck#540
Open
garrappachc wants to merge 14 commits intomasterfrom
Open
feat(admin): add on-demand game server healthcheck#540garrappachc wants to merge 14 commits intomasterfrom
garrappachc wants to merge 14 commits intomasterfrom
Conversation
Contributor
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds POST /:id/healthcheck and GET /healthcheck/:checkId routes to the admin game server panel, backed by the in-memory healthcheck store and runHealthcheck orchestrator. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… healthcheck modal
220bb57 to
49c383b
Compare
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
New files
src/static-game-servers/healthcheck-store.ts— in-memory store (Map<checkId, result>+Map<serverId, checkId>) with 5-min TTL cleanupsrc/static-game-servers/with-rcon-for-server.ts— RCON helper that acceptsStaticGameServerModeldirectly (usesinternalIpAddress+Number(port))src/static-game-servers/run-healthcheck.ts— orchestrates the three phases, writes phase updates to the storesrc/static-game-servers/views/html/healthcheck-modal.tsx— modal fragment rendered by both POST (initial) and GET (poll) responsesModified files
src/routes/admin/game-servers/index.ts→index.tsx— addsPOST /:id/healthcheckandGET /healthcheck/:checkIdroutessrc/admin/game-servers/views/html/static-game-server-list.tsx— adds "Health" column with per-server "Check" button and modal swap targetTest Plan
pnpm test)pnpm buildcompiles cleanly🤖 Generated with Claude Code