Skip to content

fix: update VersionInfo type for gateway sovd_info->items rename#40

Merged
bburda merged 1 commit intomainfrom
fix/version-info-items-key
Mar 13, 2026
Merged

fix: update VersionInfo type for gateway sovd_info->items rename#40
bburda merged 1 commit intomainfrom
fix/version-info-items-key

Conversation

@bburda
Copy link
Contributor

@bburda bburda commented Mar 13, 2026

Pull Request

Summary

The gateway (PR selfpatch/ros2_medkit#258) renamed GET /version-info response key from sovd_info to items for SOVD alignment. This updates the web UI TypeScript types and all consumers to match.

Changes:

  • VersionInfo.sovd_info -> VersionInfo.items in types.ts
  • Update store.ts access pattern: versionInfo?.sovd_info?.[0] -> versionInfo?.items?.[0]
  • Update ServerInfoPanel.tsx access pattern

Issue


Type

  • Bug fix
  • New feature
  • Breaking change
  • Documentation only

Testing

  • npm run typecheck passes

Checklist

  • Breaking changes are clearly described (and announced in docs / changelog if needed)
  • Linting passes (npm run lint)
  • Build succeeds (npm run build)
  • Docs were updated if behavior or public API changed

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.
Copilot AI review requested due to automatic review settings March 13, 2026 07:19
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the web UI to match the gateway’s GET /version-info response shape after the sovd_info key was renamed to items, ensuring server/version information displays correctly in the UI.

Changes:

  • Renamed VersionInfo.sovd_info to VersionInfo.items in the shared TypeScript API types.
  • Updated Zustand store extraction logic to read versionInfo?.items?.[0].
  • Updated ServerInfoPanel to read versionInfo?.items?.[0].

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/lib/types.ts Renames the VersionInfo response field to items to match the updated gateway contract.
src/lib/store.ts Updates server/version extraction to use items when building the server node info.
src/components/ServerInfoPanel.tsx Updates the server info UI to display version/vendor info from items.

@mfaferek93 mfaferek93 self-requested a review March 13, 2026 20:55
@bburda bburda merged commit eb85ccd into main Mar 13, 2026
7 checks passed
@bburda bburda deleted the fix/version-info-items-key branch March 13, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] VersionInfo type uses removed sovd_info key - gateway renamed to items

3 participants