From ab5fe5cb9677446f4de501a4044c18914d5441fb Mon Sep 17 00:00:00 2001 From: ssmithx Date: Wed, 5 Aug 2026 17:42:38 +0000 Subject: [PATCH] Show claim block height in the portal status panel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 'held since block XXXXXX in orange/green' instead of just 'held by orange' — the backend already returned claimed_at_block (routes/places.ts), it just wasn't wired into the frontend Place type or the status display. --- frontend/src/stores/game.ts | 1 + frontend/src/views/MapView.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/stores/game.ts b/frontend/src/stores/game.ts index e08469b..aadb501 100644 --- a/frontend/src/stores/game.ts +++ b/frontend/src/stores/game.ts @@ -14,6 +14,7 @@ export interface Place { claim_team: Team | null; claimed_by_pubkey: string | null; claimed_at: number | null; + claimed_at_block: number | null; } export interface LinkRow { diff --git a/frontend/src/views/MapView.vue b/frontend/src/views/MapView.vue index 385d9ca..7f6c946 100644 --- a/frontend/src/views/MapView.vue +++ b/frontend/src/views/MapView.vue @@ -272,7 +272,7 @@ watch(linkSourceId, redraw); class="font-bold uppercase" :class="selectedPlace.claim_team === 'orange' ? 'text-orange-neon text-glow-orange' : 'text-green-neon text-glow-green'" > - held by {{ selectedPlace.claim_team }} + held since block {{ selectedPlace.claimed_at_block ?? '?' }} in {{ selectedPlace.claim_team }}