From e2145a401f93cb65a779be75a3d388fe9815a230 Mon Sep 17 00:00:00 2001 From: Jage9 Date: Sat, 21 Feb 2026 20:59:18 -0500 Subject: [PATCH] Restore option readout and simplify channel tooltip --- client/public/version.js | 2 +- client/src/main.ts | 5 +++++ server/app/item_catalog.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/client/public/version.js b/client/public/version.js index f25d91d..d90942f 100644 --- a/client/public/version.js +++ b/client/public/version.js @@ -1,5 +1,5 @@ // Maintainer-controlled web client version. // Format: YYYY.MM.DD Rn (example: 2026.02.20 R2) -window.CHGRID_WEB_VERSION = "2026.02.21 R123"; +window.CHGRID_WEB_VERSION = "2026.02.21 R124"; // Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid. window.CHGRID_TIME_ZONE = "America/Detroit"; diff --git a/client/src/main.ts b/client/src/main.ts index 216715f..dc392c3 100644 --- a/client/src/main.ts +++ b/client/src/main.ts @@ -771,6 +771,11 @@ function describeItemPropertyHelp(item: WorldItem, key: string): string { if (metadata?.range) { const stepText = metadata.range.step !== undefined ? ` step ${metadata.range.step}` : ''; parts.push(`Range: ${metadata.range.min} to ${metadata.range.max}${stepText}.`); + } else { + const options = getItemPropertyOptionValues(key); + if (options && options.length > 0) { + parts.push(`Options: ${options.join(', ')}.`); + } } parts.push(EDITABLE_ITEM_PROPERTY_KEYS.has(key) ? 'Editable.' : 'Read only.'); diff --git a/server/app/item_catalog.py b/server/app/item_catalog.py index e32b5de..9477f6b 100644 --- a/server/app/item_catalog.py +++ b/server/app/item_catalog.py @@ -151,7 +151,7 @@ ITEM_TYPE_PROPERTY_METADATA: dict[ItemType, dict[str, dict[str, object]]] = { "title": {"valueType": "text", "tooltip": "Display name spoken and shown for this item."}, "streamUrl": {"valueType": "text", "tooltip": "Audio stream URL used by this radio."}, "enabled": {"valueType": "boolean", "tooltip": "Turns playback on or off for this radio."}, - "channel": {"valueType": "list", "tooltip": "Select stereo, mono, left-only, or right-only channel mix."}, + "channel": {"valueType": "list", "tooltip": "Select how the station audio channels are rendered."}, "volume": { "valueType": "number", "tooltip": "Playback volume percent for this radio.",