From 18a99ddc8f83f2e79cb2f41373c4a3b6ddd64a1b Mon Sep 17 00:00:00 2001 From: rob thijssen Date: Wed, 9 Sep 2026 15:15:12 +0300 Subject: [PATCH] fix(ui): head the miner panel with the best identifier, not the preimage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The panel body listed the address and preimage, but its heading still read `0x134e73f0…df59` — the one identifier a miner does not recognise, given top billing. It now falls back through name, address, preimage, which is the order a reader can actually use them in. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Jp6a8EDar9ueEhAxzep4V5 --- web/src/components/MinerPanel.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/web/src/components/MinerPanel.tsx b/web/src/components/MinerPanel.tsx index f936716..33e7705 100644 --- a/web/src/components/MinerPanel.tsx +++ b/web/src/components/MinerPanel.tsx @@ -56,7 +56,15 @@ export function MinerPanel({
Miner

- {named ? row.display : shortMiner(miner)} + {/* The best identifier available, in the order a reader can use + them: an attributed node name, else the reward address the miner + configured, else the preimage the header carries. The full set + is below regardless. */} + {named + ? row.display + : detail?.address + ? `${detail.address.slice(0, 8)}…${detail.address.slice(-4)}` + : shortMiner(miner)}

{/* All three identifiers, because they answer different questions. The node name is an inference and may be absent; the address is