Skip to content

Commit eb85ccd

Browse files
committed
fix: update VersionInfo type for gateway sovd_info->items rename
The gateway (PR #258) renamed the GET /version-info response key from sovd_info to items for SOVD alignment. Update the web UI types and consumers to match.
1 parent b3b9073 commit eb85ccd

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/ServerInfoPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export function ServerInfoPanel() {
109109
}
110110

111111
// Extract first SOVD info entry for cleaner access
112-
const sovdInfo = versionInfo?.sovd_info?.[0];
112+
const sovdInfo = versionInfo?.items?.[0];
113113

114114
return (
115115
<div className="space-y-6">

src/lib/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ export const useAppStore = create<AppState>()(
621621
});
622622

623623
// Extract server info from version-info response (fallback to generic values if unavailable)
624-
const sovdInfo = versionInfo?.sovd_info?.[0];
624+
const sovdInfo = versionInfo?.items?.[0];
625625
const serverName = sovdInfo?.vendor_info?.name || 'SOVD Server';
626626
const serverVersion = sovdInfo?.vendor_info?.version || '';
627627
const sovdVersion = sovdInfo?.version || '';

src/lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ export interface SovdInfoEntry {
832832
*/
833833
export interface VersionInfo {
834834
/** Array of SOVD version info entries */
835-
sovd_info: SovdInfoEntry[];
835+
items: SovdInfoEntry[];
836836
}
837837

838838
// =============================================================================

0 commit comments

Comments
 (0)