Skip to content

Update version-info response parsing: sovd_info -> items #38

@bburda

Description

@bburda

Summary

The ros2_medkit gateway (v0.3.0, PR selfpatch/ros2_medkit#258) renamed the GET /api/v1/version-info response key from sovd_info to items for SOVD alignment. The web UI still references sovd_info and will silently get undefined, breaking version info display.


Proposed solution (optional)

Three files need updating:

  1. src/lib/types.ts - rename sovd_info to items in VersionInfo interface
  2. src/lib/store.ts - update versionInfo?.sovd_info?.[0] to versionInfo?.items?.[0]
  3. src/components/ServerInfoPanel.tsx - update versionInfo?.sovd_info?.[0] to versionInfo?.items?.[0]

Additional context (optional)

This is a breaking API change in the gateway. The Postman collection and all gateway tests have been updated. The foxglove extension also needs the same fix (separate issue in that repo).

Upstream PR: selfpatch/ros2_medkit#258

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions