mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 03:32:06 +00:00
Add public codes for player URLs and admin endgame search
Player-facing endgame links now use a 10-character Crockford base32 public code instead of the database UUID; admin routes keep the UUID. Existing rows are backfilled by migration, and the admin Show page displays and copies the code. The admin endgame index gains its own search box: exact database id, exact public code, or a FEN / FEN fragment. A single match opens the endgame; multiple matches list below; nothing found says so. Closes #44 Closes #45
This commit is contained in:
@@ -31,6 +31,11 @@ pieces each side has, written strongest side first and colour-agnostic
|
||||
(e.g. "KQ v KR"). Used to group and search endgames by material.
|
||||
_Avoid_: Material signature, hash
|
||||
|
||||
**Public code**:
|
||||
The short, stable identifier an endgame is played under in player-facing
|
||||
links, distinct from its database id and safe to share.
|
||||
_Avoid_: Slug, UUID, endgame id, token
|
||||
|
||||
## Identity & access
|
||||
|
||||
**User**:
|
||||
|
||||
Reference in New Issue
Block a user