From 43308c3f7fdcd990726f7dbcb5c8df5f89b778da Mon Sep 17 00:00:00 2001 From: wtclaude Date: Wed, 23 Sep 2026 00:32:52 -0500 Subject: [PATCH] fix(template): EmptyState takes children, not message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Core's EmptyState renders its children and nothing else. The template's clan list passed the sentence as message=, which React drops without a word, so the panel rendered as an empty box - and module-rust, built from this template, shipped six of those across four phases before a browser walk noticed (docs modules/rust/PLAN.md ยง23.4). Same class of bug as the PageHeader subtitle the Teams work found here. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY --- template/client/src/routes/public/Clans.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/template/client/src/routes/public/Clans.jsx b/template/client/src/routes/public/Clans.jsx index 0c098c5..5c514a0 100644 --- a/template/client/src/routes/public/Clans.jsx +++ b/template/client/src/routes/public/Clans.jsx @@ -23,8 +23,12 @@ export default function Clans() { {loading && } {error && } + {/* `EmptyState` renders its CHILDREN and takes no other prop. Pass the + sentence as `message=` and React drops it without a word: the panel + renders as an empty box. module-rust shipped six of those for four + phases, learned from this line when it said `message=`. */} {data && data.clans.length === 0 && ( - + No clans have been reported yet. )} {data && data.clans.length > 0 && (