26aa154547
CI / changes (pull_request) Successful in 2s
CI / unit (pull_request) Successful in 9s
CI / integration (pull_request) Successful in 11s
CI / ui (pull_request) Successful in 37s
CI / gate (pull_request) Successful in 0s
CI / deploy (pull_request) Successful in 1m8s
Squash the 12 goose migrations into one 00001_baseline.sql (there is no prod data; verified schema-identical to the chain via a pg_dump diff + the green integration suite) and rename the game-variant labels english/russian_scrabble/erudit -> scrabble_en/scrabble_ru/erudit_ru across the backend, the FlatBuffers wire values and the UI. dawg filenames and the Go enum identifiers are unchanged; the i18n display keys are kept. Adds PRERELEASE.md (the R1-R7 pre-release tracker), linked from CLAUDE.md. Contour DB wipe and the scrabble-dictionary tidy are follow-ups.
44 lines
1.6 KiB
Go Template
44 lines
1.6 KiB
Go Template
{{define "content" -}}
|
|
<h1>Dictionary</h1>
|
|
{{with .Data}}
|
|
<section class="panel"><h2>Resident versions</h2>
|
|
<table class="list">
|
|
<thead><tr><th>Variant</th><th>Latest</th><th>Resident</th></tr></thead>
|
|
<tbody>
|
|
{{range .Variants}}
|
|
<tr><td>{{.Variant}}</td><td>{{.Latest}}</td><td>{{range .Versions}}<span class="pill">{{.}}</span> {{end}}</td></tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<section class="panel"><h2>Hot-reload a version</h2>
|
|
<p class="note">Drop the rebuilt DAWG set into BACKEND_DICT_DIR/<version>/ first, then load it here.</p>
|
|
<form class="form" method="post" action="/_gm/dictionary/reload">
|
|
<label>Version <input type="text" name="version" placeholder="v2" required></label>
|
|
<div><button type="submit">Reload</button></div>
|
|
</form>
|
|
</section>
|
|
<section class="panel"><h2>Pending dictionary changes</h2>
|
|
<table class="list">
|
|
<thead><tr><th>Variant</th><th>Action</th><th>Word</th><th>Resolved</th></tr></thead>
|
|
<tbody>
|
|
{{range .Changes}}
|
|
<tr><td>{{.Variant}}</td><td>{{.Action}}</td><td><code>{{.Word}}</code></td><td>{{.ResolvedAt}}</td></tr>
|
|
{{else}}<tr><td colspan="4"><span class="note">no pending changes</span></td></tr>{{end}}
|
|
</tbody>
|
|
</table>
|
|
<form class="form" method="post" action="/_gm/dictionary/changes/apply">
|
|
<label>Mark applied for variant
|
|
<select name="variant">
|
|
<option value="scrabble_en">scrabble_en</option>
|
|
<option value="scrabble_ru">scrabble_ru</option>
|
|
<option value="erudit_ru">erudit_ru</option>
|
|
</select>
|
|
</label>
|
|
<label>In version <input type="text" name="version" placeholder="v2" required></label>
|
|
<div><button type="submit">Mark applied</button></div>
|
|
</form>
|
|
</section>
|
|
{{end}}
|
|
{{- end}}
|