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 ( +