RPGTheory/aeternalis-portal had diverged from this repo (the git/CI/CD copy) with an in-progress control portal feature that was never synced back here, so none of it had gone through CI or been deployed: - New site/game/control routing split: index.html becomes a world directory landing page (site.ts), game.html is the renamed former index.html (main.ts), control.html is a new admin panel (control.ts, portal-shared.ts, portal.css). - Server: new internal/store/portal.go (character/world registry, command queue, admin grants) and internal/transport/control.go (portal API routes), plus a new internal/gitops package that lets the portal provision new worlds via a GitOps repo commit. - game.World gains BornAt/DiedAt/DeathReason and an operator Control() path (close/open admissions, awaken boss, end world, per-character rename/heal/unstuck/retire); death no longer reuses the same character id on rejoin, matching the "new life" permadeath model in Plan.md rather than the old bypass-prevention test's expectations. - deploy/: new control-egress network policy and portal/control values (admin role, GitOps repo/branch/values file/CIDRs). - New e2e coverage: tests/portal.spec.ts, tools/capture-world.mjs. Verified this repo's own independent commits (800ms movement-staleness window, 20s boss-attack poll, SRS/TLS deploy values, ubuntu-22.04 runner pin, DOCKER_HOST fix) were already present in the portal copy before merging, so nothing here regresses them. `tsc --noEmit`, the vite client build, and the protocol contract check all pass; no go.mod changes. Could not run `go build`/`go test` locally (no Go toolchain on PATH, Docker daemon not running) — every new/changed Go symbol was manually cross-referenced and resolves, but this should still be built and tested in CI before merging to master. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
19 lines
4.1 KiB
HTML
19 lines
4.1 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="theme-color" content="#122b24"/><title>Aeternalis | Control</title><link rel="icon" href="data:,"/></head>
|
|
<body class="control-site">
|
|
<aside class="control-sidebar"><a class="wordmark" href="/">AETERNALIS<span>Control</span></a><nav aria-label="Control navigation"><button class="nav-item active" data-tab="worlds"><i data-lucide="globe-2"></i>Worlds</button><button class="nav-item" data-tab="characters"><i data-lucide="users"></i>Characters</button><button class="nav-item" data-tab="audit"><i data-lucide="scroll-text"></i>Audit log</button></nav><div class="sidebar-bottom"><a href="/"><i data-lucide="arrow-up-right"></i>Public site</a><a href="/game"><i data-lucide="play"></i>Game</a></div></aside>
|
|
<main class="control-main"><header class="control-header"><div><p class="eyebrow">OPERATIONS</p><h1 id="view-title">Worlds</h1></div><div class="heading-tools"><span id="updated" class="muted"></span><button id="refresh" class="icon-button" title="Refresh" aria-label="Refresh"><i data-lucide="refresh-cw"></i></button><button id="create-world" class="button" disabled><i data-lucide="plus"></i>New world</button><button id="admin-signout" class="icon-button" title="Sign out" aria-label="Sign out" hidden><i data-lucide="log-out"></i></button></div></header>
|
|
<div id="access" class="access-state"><i data-lucide="shield-check"></i><h2 id="access-title">Checking access</h2><p id="access-message"></p><a id="admin-login" class="button" href="/auth/login?return=%2Fcontrol" hidden>Sign in<i data-lucide="log-in"></i></a></div>
|
|
<div id="workspace" hidden><section class="metrics" aria-label="World summary"><div><span>Worlds online</span><strong id="metric-worlds">0</strong></div><div><span>Living characters</span><strong id="metric-living">0</strong></div><div><span>Fallen characters</span><strong id="metric-dead">0</strong></div><div><span>Pending actions</span><strong id="metric-pending">0</strong></div></section>
|
|
<div id="control-message" class="message" role="status" hidden></div>
|
|
<div class="table-tools"><label class="search-field"><i data-lucide="search"></i><input id="search" type="search" aria-label="Search records" placeholder="Search worlds"/></label><label>World<select id="world-filter"><option value="">All worlds</option></select></label><label>State<select id="state-filter"><option value="">All states</option></select></label><span id="record-count" class="muted"></span></div>
|
|
<section id="records" class="table-wrap" aria-label="Records"></section>
|
|
<p id="table-note" class="table-note"></p>
|
|
</div>
|
|
</main>
|
|
<dialog id="command-dialog" class="command-dialog"><form id="command-form"><header><h2 id="command-title">New world</h2><button type="button" id="close-command" class="icon-button" aria-label="Close dialog" title="Close"><i data-lucide="x"></i></button></header><p id="command-context" class="muted"></p><label id="world-input-label">World ID<input id="world-input" pattern="[a-z][a-z0-9-]{0,30}" maxlength="31" autocomplete="off"/></label><label id="value-input-label"><span id="value-caption">Seed</span><input id="value-input" autocomplete="off"/></label><label>Reason<textarea id="reason-input" required minlength="5" maxlength="240" rows="3"></textarea></label><label id="confirm-input-label" hidden><span id="confirm-caption">Confirm target</span><input id="confirm-input" autocomplete="off"/></label><p id="command-error" class="error" role="alert"></p><footer><button type="button" id="cancel-command" class="button secondary">Cancel</button><button type="submit" id="submit-command" class="button"><i data-lucide="check"></i><span>Queue action</span></button></footer></form></dialog>
|
|
<dialog id="character-dialog" class="character-dialog"><header><div><p class="eyebrow">CHARACTER RECORD</p><h2 id="detail-name"></h2></div><button id="close-character" class="icon-button" aria-label="Close character" title="Close"><i data-lucide="x"></i></button></header><div id="character-detail"></div></dialog>
|
|
<script type="module" src="/src/control.ts"></script>
|
|
</body></html>
|