Skip to content

About

SOVD Web UI for ros2_medkit . Explore discovery and entity hierarchies via a simple SPA.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

9 stars

Watchers

0 watching

Forks

Latest commit

 

History

182 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ros2_medkit_web_ui

CI GHCR Docs License Discord

Simple, open-source web UI for browsing SOVD (Service-Oriented Vehicle Diagnostics) entity trees via discovery endpoints.

What is ros2_medkit_web_ui?

ros2_medkit_web_ui is a lightweight single-page application that connects to a SOVD server and visualizes the entity hierarchy. It provides:

  • Server Connection Dialog - Enter the URL of your SOVD server (supports both http://ip:port and ip:port formats)
  • Entity Tree Sidebar - Browse the hierarchical structure of SOVD entities with lazy-loading, with a readiness lamp on app and component nodes (a green disc for ready, an amber ring for not ready, a grey square for a readiness the UI has not established). The lamp is re-read while the branch is open, so it tracks an entity that stops or comes back. On windows 768 px and wider the sidebar sits beside the view and folds away for more room with its button or Cmd/Ctrl+\ (the browser remembers the choice, and keyboard focus moves to the button that brings it back); on a phone it is a menu over the view and the shortcut does nothing. The gateway in use and Software Updates sit at its foot
  • Entity Detail Panel - Every entity view has one line on top: the entities above it (each a way back to it), its name and kind, and the view's actions. Areas, components, apps and functions open their own panels, with a tab for each kind of resource the entity has (data, operations, configurations, faults, logs, and scripts where the gateway offers them); topics, operations and parameters open their own views. A view without a panel of its own offers Refresh and Copy JSON of the entity, which also works on a gateway served over plain http and says whether the copy succeeded. When the gateway cannot give an app's or a function's resources (an error answer or no answer), its panel says so in the gateway's words with a Retry instead of showing an empty list, and an entity's Faults tab says it could not read the faults instead of "No faults detected"
  • Faults Dashboard - The gateway's faults in two tabs: Now (active and pending) and History (healed and cleared, newest first, with a search). Severity (critical, error, warning, info) and status filters, a count per severity of the open faults next to the tabs, and grouping by entity, on by default. Each line shows the fault's severity, entity, code, message, when it was reported and its status; an open fault can be cleared from its line or from its page. Picking a fault opens its page: the fault's story (when it came, which app reported it, how it ended), its readings from when it came next to what the same topics read now (re-read every 5 s through the fault's app while the fault is open and the browser tab is visible), and its recordings to download
  • Entity Lifecycle Status Control - View readiness and request lifecycle transitions (start, restart, force-restart, shutdown, force-shutdown) for apps and components, degrading gracefully on an entity with no lifecycle provider, without taking the entities that have one with it. Actions are gated by the current status (a transition the current status does not allow is marked unavailable and rejected, and stays focusable so the tooltip explaining why reaches a screen reader), and every destructive transition (all but Start) asks for confirmation before dispatch. A transition is only reported as requested when the gateway accepts it; because acceptance is not completion, the readiness is dropped and re-established by the refresh rather than read back straight away
  • Scripts Tab - List the scripts available on an entity, run one with optional parameters, watch its live status while it executes, see the output once it completes, stop or force-kill a running execution, upload a new script (from a file or written directly in the browser), and delete scripts you no longer need
  • Look - The selfpatch platform's design, light theme only. The fonts (Inter, Oxanium, IBM Plex Mono) are bundled with the app, so it loads no fonts from the internet and works offline on a robot's network

Note: The Scripts tab only appears for entities whose gateway reports capabilities.scripts in GET /, and even then only for apps and components - areas and functions never show it regardless of the capability. The gateway sets this when either a script provider plugin is loaded or scripts.scripts_dir is configured; a plugin takes precedence over scripts_dir, and when one is loaded scripts_dir is ignored.

This tool is designed for developers and integrators working with SOVD-compatible systems who need a quick way to explore and debug the entity structure.

Status

Early prototype / work in progress

This is an open source project for exploring SOVD entity discovery. APIs and features may change as the project evolves.

Target Use Cases

  • Exploring SOVD entity hierarchy on a connected server
  • Debugging SOVD discovery endpoints
  • Quick inspection of entity metadata and structure
  • Learning about SOVD entity models

Quick Start

Using Docker

# Pull from GitHub Container Registry
docker pull ghcr.io/selfpatch/ros2_medkit_web_ui:latest
docker run -p 8080:80 ghcr.io/selfpatch/ros2_medkit_web_ui:latest

# Or build locally
docker build -t ros2_medkit_web_ui .
docker run -p 8080:80 ros2_medkit_web_ui

Then open http://localhost:8080 in your browser.

Docker Image Tags

Docker images are automatically published to GitHub Container Registry via GitHub Actions:

Trigger Image Tags
Push/merge to main latest, sha-<commit>
Git tag v1.2.3 1.2.3, 1.2, 1, sha-<commit>

Note: Images are currently built for linux/amd64 only. ARM64 support is planned.

Development

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

# Preview production build
npm run preview

# Run tests
npm test

# Run tests with UI
npm run test:ui

# Run tests with coverage
npm run test:coverage

# Run the end-to-end suite against containerised gateways
# (the second stack carries the rosbag specs, the third the data specs; see CONTRIBUTING.md)
docker compose -f e2e/docker-compose.yml up -d
docker compose -f e2e/docker-compose.rosbag.yml up -d
docker compose -f e2e/docker-compose.data.yml up -d
./e2e/wait-for-rosbag-fixture.sh
npm run test:e2e

# Run the end-to-end suite with the Playwright UI
npm run test:e2e:ui

# Format code
npm run format

# Check formatting
npm run format:check

# Type check
npm run typecheck

# Lint code
npm run lint

Usage

  1. Open the application in your browser
  2. Enter the SOVD server URL in the connection dialog (e.g., 192.168.1.100:8080 or http://localhost:3000)
  3. Click "Connect" to establish connection
  4. Browse the entity tree in the left sidebar
  5. Click on any entity to view its details in the main panel

Tech Stack

  • React 19 - UI framework
  • TypeScript - Type safety
  • Vite - Build tool
  • TailwindCSS 4 - Styling
  • shadcn/ui - UI components
  • Zustand - State management
  • lucide-react - Icons
  • Vitest - Unit and component testing framework
  • Playwright - End-to-end testing against a containerised gateway
  • Prettier - Code formatting
  • Husky - Git hooks

Contributing

Contributions and feedback are welcome! Please read CONTRIBUTING.md for guidelines.

By contributing, you agree to follow the CODE_OF_CONDUCT.md.

Security

If you discover a security vulnerability, please follow the process in SECURITY.md.

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

About

SOVD Web UI for ros2_medkit . Explore discovery and entity hierarchies via a simple SPA.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages