How hoss-java/dashboard-project works
This repository is a React boat dashboard for displaying configured components and live or simulated telemetry. The main workflow loads dashboard items, dispatches each item by type to a renderer, and lets telemetry-aware renderers read or subscribe to shared data and history. Its component catalog includes numeric displays, switches, charts, maps, and other presentation widgets. The README also describes live updates for numeric displays, switches, and charts. Relationships are limited to those shown in excerpts or the source index; unsampled implementation details are not assumed.
Main entry points: ComponentRegistry.ts Component registry · DataRegistry.ts Telemetry registry · HistoryDiagramComponent.tsx History chart · resolveValue.ts Value resolver
Components 19
Dashboard app
- React entry
clients/dashboard/src/index.tsx - App shell
clients/dashboard/src/App.tsx - Home page
clients/dashboard/src/pages/HomePage.tsx - Dashboard panel
clients/dashboard/src/components/DashboardPanel.tsx - Dashboard config
clients/dashboard/src/config/dashboardItems.json
Component rendering
- Item dispatcher
clients/dashboard/src/components/renderers/ItemRenderer.tsx - Component registry
clients/dashboard/src/components/renderers/ComponentRegistry.ts - Text, box, card
clients/dashboard/src/components/renderers - Binary switch
clients/dashboard/src/components/renderers/BinarySwitch/BinarySwitchComponent.tsx - Numeric display
clients/dashboard/src/components/renderers/NumericDisplay/NumericDisplayComponent.tsx - History chart
clients/dashboard/src/components/renderers/HistoryDiagram/HistoryDiagramComponent.tsx - GPS map widget
clients/dashboard/src/components/renderers/GpsMap/GpsMapComponent.tsx - GPS map view
clients/dashboard/src/components/renderers/GpsMap/GpsMap.tsx - Simulator errors
clients/dashboard/src/components/renderers/SimErrorBox/SimErrorBoxComponent.tsx - Value resolver
clients/dashboard/src/components/utils/resolveValue.ts
Telemetry data
- Telemetry registry
clients/dashboard/src/services/DataRegistry.ts
Mock simulation
- Mock initializer
clients/dashboard/src/services/MockInitializer.ts - Mock simulator
clients/dashboard/src/services/MockService.ts
Other components
- Dashboard user
Connections 26
- Dashboard user → React entry: opens dashboard
- React entry → App shell: renders
clients/dashboard/src/index.tsx - App shell → Home page: renders
clients/dashboard/src/App.tsx - App shell → Mock initializer: initializes mocks
clients/dashboard/src/App.tsx - Home page → Dashboard panel: renders
clients/dashboard/src/pages/HomePage.tsx - Dashboard panel → Dashboard config: loads items
clients/dashboard/src/components/DashboardPanel.tsx - Dashboard panel → Item dispatcher: renders items
clients/dashboard/src/components/DashboardPanel.tsx - Item dispatcher → Component registry: looks up type
clients/dashboard/src/components/renderers/ItemRenderer.tsx - Component registry → Text, box, card: registers components
clients/dashboard/src/components/renderers/ComponentRegistry.ts - Component registry → Binary switch: registers component
clients/dashboard/src/components/renderers/ComponentRegistry.ts - Component registry → Numeric display: registers component
clients/dashboard/src/components/renderers/ComponentRegistry.ts - Component registry → History chart: registers component
clients/dashboard/src/components/renderers/ComponentRegistry.ts - Component registry → GPS map widget: registers component
clients/dashboard/src/components/renderers/ComponentRegistry.ts - Component registry → Simulator errors: registers component
clients/dashboard/src/components/renderers/ComponentRegistry.ts - Binary switch → Value resolver: resolves settings
clients/dashboard/src/components/renderers/BinarySwitch/BinarySwitchComponent.tsx - Numeric display → Value resolver: resolves settings
clients/dashboard/src/components/renderers/NumericDisplay/NumericDisplayComponent.tsx - History chart → Value resolver: resolves settings
clients/dashboard/src/components/renderers/HistoryDiagram/HistoryDiagramComponent.tsx - GPS map widget → Value resolver: resolves settings
clients/dashboard/src/components/renderers/GpsMap/GpsMapComponent.tsx - GPS map widget → GPS map view: renders map
clients/dashboard/src/components/renderers/GpsMap/GpsMapComponent.tsx - History chart → Telemetry registry: reads history
clients/dashboard/src/components/renderers/HistoryDiagram/HistoryDiagramComponent.tsx - History chart → Telemetry registry: subscribes changes
clients/dashboard/src/components/renderers/HistoryDiagram/HistoryDiagramComponent.tsx - Numeric display → Telemetry registry: uses telemetry
clients/dashboard/src/components/renderers/NumericDisplay/NumericDisplayComponent.tsx - GPS map view → Telemetry registry: uses telemetry
clients/dashboard/src/components/renderers/GpsMap/GpsMap.tsx - Mock initializer → Mock simulator: configures mocks
clients/dashboard/src/services/MockInitializer.ts - Mock initializer → Telemetry registry: registers data
clients/dashboard/src/services/MockInitializer.ts - Mock simulator → Telemetry registry: reads and updates
clients/dashboard/src/services/MockService.ts