From f23b47b388bd6790ab6af680de78c8819ca83b74 Mon Sep 17 00:00:00 2001 From: PGMacDesign Date: Fri, 25 Sep 2026 12:13:48 -0700 Subject: [PATCH] Type a sat empire's bodies as `planets` in the status block Empire::get_status (lib/Lacuna/DB/Result/Empire.pm in the server) builds each entry of `empire.bodies.babies` as { id, sitter_expiry, alliance_id? } and pushes the empire's bodies onto `planets`. There is no `bodies` key on a baby, and `has_new_messages` is commented out there, so it is never sent. A live status block for a sat empire confirms the shape: "babies": { "": { "sitter_expiry": "24 11 2026 06:56:10 +0000", "alliance_id": 1, "planets": [ { ... } ] } } The app follows this type, so it reads `baby.bodies`, gets undefined and renders every sat empire's section in the planet list with no planets. --- lib/types/status.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/types/status.ts b/lib/types/status.ts index 01d758f..3268208 100644 --- a/lib/types/status.ts +++ b/lib/types/status.ts @@ -23,8 +23,8 @@ export interface EmpireBlock { [index: string]: { alliance_id?: number; id: number; - has_new_messages: number; - bodies: BodiesList[]; + sitter_expiry: ServerDate; + planets: BodiesList[]; }; }; }; -- 2.51.2