From 53df97e3a5f76c92dfec5dfe8816664ce63c878b Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Fri, 4 Sep 2026 19:38:20 -0700 Subject: [PATCH] Require Gat descriptions and keep them consistent across ownership changes --- TODO.md | 2 +- frontend/src/components/GatModal.svelte | 5 +- frontend/src/components/PlayerBadges.svelte | 2 +- .../components/scene/CharacterSheet.svelte | 4 +- frontend/src/lib/changelog.js | 3 +- src/pirats/crud_challenge.py | 4 + src/pirats/crud_character.py | 2 + src/pirats/routes_scene.py | 11 ++- tests/test_game.py | 98 +++++++++++++++++++ 9 files changed, 123 insertions(+), 8 deletions(-) diff --git a/TODO.md b/TODO.md index 4c86d41..e907d9c 100644 --- a/TODO.md +++ b/TODO.md @@ -33,7 +33,7 @@ ## Fixes -- [ ] Make sure that gat descriptions are a) required and b) displayed on the UI +- [x] Make sure that gat descriptions are a) required and b) displayed on the UI ## Words Words Words diff --git a/frontend/src/components/GatModal.svelte b/frontend/src/components/GatModal.svelte index 05b7c1a..65de35f 100644 --- a/frontend/src/components/GatModal.svelte +++ b/frontend/src/components/GatModal.svelte @@ -28,7 +28,7 @@ } -{#if state.player.needs_gat_description} +{#if state.player.completed_personal_1 && (state.player.needs_gat_description || !state.player.gat_description?.trim())}