Order radio station metadata fields in inspect view
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
// Maintainer-controlled web client version.
|
// Maintainer-controlled web client version.
|
||||||
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
|
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
|
||||||
window.CHGRID_WEB_VERSION = "2026.02.25 R258";
|
window.CHGRID_WEB_VERSION = "2026.02.25 R259";
|
||||||
// Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid.
|
// Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid.
|
||||||
window.CHGRID_TIME_ZONE = "America/Detroit";
|
window.CHGRID_TIME_ZONE = "America/Detroit";
|
||||||
|
|||||||
@@ -196,6 +196,16 @@ export function getInspectItemPropertyKeys(item: WorldItem): string[] {
|
|||||||
allKeys.push(key);
|
allKeys.push(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Keep derived radio metadata in a stable, user-friendly order.
|
||||||
|
if (item.type === 'radio_station') {
|
||||||
|
for (const key of ['stationName', 'nowPlaying']) {
|
||||||
|
if (!isItemPropertyVisible(item, key)) continue;
|
||||||
|
if (seen.has(key)) continue;
|
||||||
|
seen.add(key);
|
||||||
|
allKeys.push(key);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const paramKeys = Object.keys(item.params).sort((a, b) => a.localeCompare(b));
|
const paramKeys = Object.keys(item.params).sort((a, b) => a.localeCompare(b));
|
||||||
for (const key of paramKeys) {
|
for (const key of paramKeys) {
|
||||||
if (!isItemPropertyVisible(item, key)) continue;
|
if (!isItemPropertyVisible(item, key)) continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user