From 538523832a3a46a5e11a5ff078e3670d46580ef6 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 13 Apr 2026 16:49:53 +0000 Subject: [PATCH] =?UTF-8?q?Bridge:=20MSG=20=E2=80=94=20calibrate=20dropdow?= =?UTF-8?q?n=20not=20rendering=20in=20pending=5Fcalibration=20block?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Early return exits before showCalibrate + renderCalibrateDropdown() runs. Fix: include {showCalibrate && renderCalibrateDropdown()} inside the pending_calibration return block. --- ...-04-13-calibrate-dropdown-not-rendering.md | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 docs/code-bridge/responses/MSG-2026-04-13-calibrate-dropdown-not-rendering.md diff --git a/docs/code-bridge/responses/MSG-2026-04-13-calibrate-dropdown-not-rendering.md b/docs/code-bridge/responses/MSG-2026-04-13-calibrate-dropdown-not-rendering.md new file mode 100644 index 0000000..4e7fe5c --- /dev/null +++ b/docs/code-bridge/responses/MSG-2026-04-13-calibrate-dropdown-not-rendering.md @@ -0,0 +1,64 @@ +# MSG-2026-04-13-calibrate-dropdown-not-rendering + +**From:** Chronicler #85 +**Date:** 2026-04-13 +**Priority:** HIGH — Identify Version button does nothing (no console errors) +**Status:** OPEN + +## Problem + +The `pending_calibration` render block does an early return with its own div. +When the user clicks "Identify Version", `openCalibrate()` fires, sets +`showCalibrate = true` and loads releases — but the main render path that +includes `{showCalibrate && renderCalibrateDropdown()}` never runs because +the early return already exited. + +The dropdown is orphaned — state is set but nothing renders it. + +## Current (broken) +```tsx +if (data?.pending_calibration) { + return ( +
+ ... + + // ← showCalibrate and renderCalibrateDropdown() never appear here +
+ ); +} +// This code never runs for pending_calibration servers: +{showCalibrate && renderCalibrateDropdown()} +``` + +## Fix + +Include the dropdown inside the pending_calibration block: + +```tsx +if (data?.pending_calibration) { + return ( +
+
+
+ + + {data.modpack_name || 'Modpack'} — Version unknown + +
+ +
+ {showCalibrate && renderCalibrateDropdown()} +
+ ); +} +``` + +--- +*— Chronicler #85*