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*