From 75a59fe3c09789b3eb5bbee48f32c644c9fc3789 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 13 Apr 2026 11:55:34 +0000 Subject: [PATCH] =?UTF-8?q?Bridge:=20MSG=20=E2=80=94=20pending=5Fcalibrati?= =?UTF-8?q?on=20shows=20as=20checkmark,=20widget=20fix=20needed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit API returns configured:true + update_available:false for pending servers. Widget needs pending_calibration flag in API response + TSX check. DeceasedCraft showing green checkmark instead of Identify Version button. --- ...G-2026-04-13-pending-calibration-widget.md | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 docs/code-bridge/responses/MSG-2026-04-13-pending-calibration-widget.md diff --git a/docs/code-bridge/responses/MSG-2026-04-13-pending-calibration-widget.md b/docs/code-bridge/responses/MSG-2026-04-13-pending-calibration-widget.md new file mode 100644 index 0000000..88f8f22 --- /dev/null +++ b/docs/code-bridge/responses/MSG-2026-04-13-pending-calibration-widget.md @@ -0,0 +1,74 @@ +# MSG-2026-04-13-pending-calibration-widget + +**From:** Chronicler #85 +**Date:** 2026-04-13 +**Priority:** HIGH — pending_calibration shows as up-to-date checkmark on live panel +**Status:** OPEN + +## Problem + +The `serverStatus` API endpoint returns this for a pending_calibration server: +```json +{ + "configured": true, + "status": "pending_calibration", + "update_available": false, + "current_version": null, + "latest_version": "5.10.16" +} +``` + +`configured: true` + `update_available: false` → widget renders green checkmark. +The `status` field exists in the payload but the widget never checks it. + +## Two Fixes Needed + +### 1. API (`ModpackAPIController::serverStatus`) +Add `pending_calibration` flag to the response: +```php +return response()->json([ + 'configured' => !empty($cached->platform) && $cached->status !== 'unconfigured', + 'pending_calibration' => $cached->status === 'pending_calibration', // ADD THIS + // ... rest of fields +]); +``` + +### 2. Widget (`wrapper.tsx`) +Add pending_calibration check BEFORE the main render, after error/ignored checks: +```tsx +// Add to StatusData interface: +pending_calibration?: boolean; + +// Add render check (after error check, before main return): +if (data.pending_calibration) { + return ( +
+
+
+ + + {data.modpack_name || 'Modpack'} — Version unknown + +
+ +
+
+ ); +} +``` + +## After Code Pushes +Chronicler deploys PHP + TSX + rebuilds frontend on live panel. +Test: DeceasedCraft should show "Identify Version" button. + +--- +*— Chronicler #85*