Collector Dashboard: Vehicle telemetry and visualization

Sonatus Collector let automakers choose which data to capture from vehicles on the road. I helped take its dashboard from proof of concept to production. I built the client data services and the dashboard widgets for event timelines, ignition status and vehicle location.

Problem
Automakers needed enough evidence to investigate faults in vehicles on the road without sending every signal to the cloud. An intermittent warning could disappear before a workshop visit, so engineers needed both the captured history and a live view.
Decision
I built a shared data layer that gave signal charts, ignition states and event timelines the same time window. It fetched historical pages in parallel, aligned samples by timestamp and buffered live timeline events between screen updates.
Result
Engineers could reconstruct an incident remotely by comparing ignition changes, logged events and signal readings over the same interval. When they followed a vehicle live, a connection warning showed when updates had stopped.
Context
Sonatus - Collector
Period
2023–2024
My focus & role
Dashboard architecture and implementation, cross-team coordination, testing, and PoC-to-production delivery.
Technology
React · TypeScript · GraphQL · uPlot
Vehicle telemetryConcept interface - synthetic data
Connected
Vehicle speed19km/h
Speed and temperature over a simulated minuteAn amber speed signal and blue temperature signal share a numeric range from zero to one hundred, in km/h and degrees Celsius respectively. Gaps in live data remain gaps. The cursor marks the inspected or last rendered sample.100755025000:0000:1500:3000:4501:00
Speed · km/hTemperature · °C00:42
Motor temperature65°CAt inspected sample
Ignition stateOnState changes, in context

Inspect a prerecorded synthetic minute. Switch to Live feed to advance arrivals and scheduled rendering independently.

FIG. 01 Conceptual reconstruction with synthetic data. Live mode models buffering and rendering on a manual clock; reconnect resumes new samples without backfilling gaps. Changing the interval resets the run.

Product context and my responsibilities

A collection policy could capture the signals just before and after a check-engine warning, even if the driver could not reproduce it for a technician. Sonatus describes how an automaker used this approach to investigate faults remotely in its Sonatus vehicle-quality case study.

Engineers could use Collector to compare signal charts with event timelines and check ignition state, location, messages, and active policies. The same time range had to make sense in each view, even when the views used different records and refreshed at different rates.

The main constraint was that a widget could not treat the API response as ready-to-render chart data. Historical requests were paginated, signals needed timestamp alignment, and live events arrived independently of the screen’s refresh interval. Connection failures introduced another state that the interface had to represent.

I implemented the data service and transformation layer, historical batch fetching, subscription authentication and error handling, and widgets including statistics, location, event timelines, and ignition status. I also worked on chart interactions and automated tests. Backend engineers implemented the downsampling service; I defined requirements with them and integrated the resulting data behavior. The query strategy was a team decision. The original ignition-widget editor shows one of these visualization workflows.

Event and ignition widgets in a shared time window

Redacted dashboard capture
Dashboard with a shared time range, event timeline, ignition channels, and an HTTP 400 error inside the location widget.View larger image (new tab)
FIG. 02 The event timeline and ignition chart cover the same selected interval. The location request failed, but the two populated widgets remain readable. July 2024 capture, cropped with the vehicle identifier removed.

Separate data retrieval, transformation, and rendering

Historical queries and live subscriptions feed a shared client data layer. It prepares the representations needed by charts, event views, and location widgets.

HistoricalQuery & page

Fetch the selected time range

LiveSubscribe & buffer

Collect incoming updates

Client data layerNormalize. Align. Transform.

Prepare timestamps, signal series, and widget-specific data

Time seriesEvents & statesLocation & context
FIG. 03 Conceptual overview of the client boundary: historical and live inputs are prepared for different widget types. The detailed flow below separates the responsibilities within that boundary.

Responsibilities inside the client data layer

I moved API access and transformation out of widget components into a data service and a transformation service. The data service wrapped Apollo queries for the required record types and returned data or an error. Hooks coordinated a widget’s range, loading state, subscriptions, and refresh behavior.

Client data flow

Historical queries

Selected range → pages → combined records

GraphQL subscriptions

Incoming events → buffer → scheduled update

Data service and hooks

Query variables, loading state, subscription lifecycle, typed errors

Transformation service

Signal grouping, timestamp conversion, aligned series, widget-specific representations

React widgets and uPlot

Render prepared data, handle selection and zoom, expose errors and connection state

FIG. 04 Conceptual client architecture. Arrows in the input rows describe data flow; the layers below separate responsibilities rather than deployment services.

React components handled settings and interaction. TypeScript described query results, widget inputs, and error types. GraphQL supplied historical records and subscription events. uPlot consumed aligned arrays behind the chart components. Each technology had a concrete place in the data path; the renderer did not need to know how many API requests produced its input.

This introduced an explicit conversion boundary, with its own types and tests. The cost was another representation to maintain. The benefit was that a change to pagination or timestamp handling could be implemented once instead of inside each visualization.

Retrieve the first page, then fetch the remainder in parallel

The historical signals query accepted a time range, page size, and offset. I first retrieved one page together with the total count. That count determined how many additional requests were necessary for the selected range.

I scheduled the remaining offsets together with Promise.all and concatenated the responses in request order. A later page could finish before an earlier one without changing the assembled series order. A small range needed only the initial request; a larger range added independent page requests after the count was known.

Historical request planner

Synthetic range · 3 samples per page
  1. Page 1offset 0 · count 3Pending response
  2. Page 2offset 3 · count 3Waiting for total count
  3. Page 3offset 6 · count 3Waiting for total count
  4. Page 4offset 9 · count 3Waiting for total count

The first request establishes the total count. Receive it to schedule the remaining pages.

Response order
None
Series published
Waiting for all pages
FIG. 05 Controlled reconstruction of the first-page / parallel-remainder strategy. Request counts and page size are illustrative; response order is user-controlled, not a timing benchmark.

The trade-off: fewer sequential waits, more concurrent work

A sequential loop would wait for every page before requesting the next. Parallel fetching removed those repeated dependencies, but increased simultaneous requests and retained the combined result in client memory. The first page remained a dependency because it established the total count. This was a retrieval strategy, not a solution to unbounded data volume.

Widgets did not all need the same retrieval behavior. For the messages table, I worked on incremental paging, end-of-results guards, and resetting rows when the time range changed. Loading the next table page and assembling a complete chart window are different operations; sharing API access did not require forcing both into one paging policy.

Prepare a consistent time axis for different signals

Signal records carried a signal identity, timestamp, and value. The transformation layer grouped values by signal and prepared the shared x-axis and value arrays required by uPlot’s aligned-data format. Index positions had to refer to the same time across every series.

Timestamp conversion was particularly important. Whole-second conversion loses distinct subsecond observations. I updated the transformation to retain milliseconds as a fractional part of the seconds-based x-axis and updated the corresponding tests. The illustration below makes that loss visible using a deliberately small input.

Records to aligned arrays

Relative timestamps · synthetic samples

Source records

Time · msSignalValue
0speed48
0temperature61
100speed48.5
200temperature61.2
200speed49

Chart representation

x · s
[0, 0.1, 0.2]
speed · km/h
[48, 48.5, 49]
temperature · °C
[61, null, 61.2]

Each index refers to the same timestamp across all arrays. Temperature has no sample at 0.1 s; null preserves that gap instead of inventing a value.

FIG. 06 Conceptual transformation for an aligned time-series renderer. The whole-second option demonstrates a lossy conversion; it is not a supported dashboard setting.

Inspecting one timestamp across signals

Cropped widget capture
Scatter chart crosshair at 14:25:15.842 showing an odometer sample in kilometres and two other channels marked N/A.View larger image (new tab)
FIG. 07 At the selected millisecond, the odometer has a reading and two other channels show N/A. The tooltip preserves the gap even though nearby timestamps contain speed samples.

Use representations appropriate to each widget

Ignition state needed a different visual treatment from a continuous signal. I transformed power-state records into one series per power type, represented on/off values as 0 and 1, and used stepped rendering with a fixed state axis. The configured dashboard range still defined the x-axis, so state changes could be compared with other observations.

Location, events, statistics, and signal charts had different output shapes. Keeping those transformations outside the display component allowed the widget to focus on its own interaction while preserving consistent timestamp and range handling.

A data arrival is not a widget update

Live data used GraphQL subscriptions over WebSocket. In the event-timeline path, I buffered incoming events in a ref and moved them into React state on the selected refresh interval. Receiving an event therefore did not require an immediate state update and render.

The telemetry instrument above uses the same distinction as an educational model: advance its clock to receive samples, then observe the buffer flush at the chosen cadence. The last rendered timestamp can lag behind the latest received timestamp even while the source is connected. On interruption, the final received samples may still flush before the display becomes stale.

Arrival and refresh are separate schedules

Illustrative cadence
Clock · s123456
Receive123456
Buffer count120120
RenderNo renderNo render1–3No renderNo render4–6
FIG. 08 Six arrivals, two scheduled updates. Batching reduces update frequency at the cost of intentional display delay. These intervals illustrate the mechanism, not a production setting or benchmark.

I also skipped event-timeline subscriptions while historical fetching was in flight or live mode was off. The team chose dedicated historical fetching per widget with a shared dashboard subscription for the release. That kept historical requests specific to each consumer while coordinating the live-data path.

Represent transport failures separately from signal values

An unchanged value can mean that a signal is stable. It can also mean that new data stopped arriving. Replacing a failure with a blank chart loses useful history; leaving a frozen chart without feedback hides the connection problem.

I added bearer-token authentication to the subscription connection and handled token-expiry errors reported through GraphQL, in addition to the HTTP unauthorized path. An expired credential could therefore enter the refresh flow instead of being treated as an unrelated widget error.

Collector failure handling
ConditionImplementation responsibility
Expired subscription tokenRecognize the GraphQL authentication error and initiate token refresh.
Shared socket closesUpdate connection status and coordinate dashboard feedback across subscription hooks.
Multiple hooks report one failureDebounce the shared handler so the same socket closure does not create repeated notifications.
Widget-specific failureRender a typed error message in the affected widget.

The shared socket-close handler set connection state and produced persistent feedback, including a dashboard alert with a reload action. It distinguished a transport failure from a valid quiet signal. The manual reconnect control in this portfolio illustrates that distinction; it does not claim automatic subscription recovery in my original implementation.

Connection loss and an empty widget

Redacted recording frame
Dashboard warning asks the user to refresh to resume live updates, while the ignition widget reports no data for three channels.View larger image (new tab)
FIG. 09 The dashboard banner explains why live updates have stopped and offers a refresh. The ignition widget separately reports which channels have no data. Cropped from a June 2024 socket-close recording with the vehicle identifier removed.

Pagination and downsampling solve different problems

A chart can retrieve more samples than the screen can usefully distinguish when the selected time range is long. Fetching additional pages addresses the API’s response limit. It does not reduce the amount transferred, transformed, retained, or rendered.

I worked with the backend team on time-range and downsampling requirements rather than treating additional client requests as the answer to every large query. The backend owned the downsampling implementation. My work covered the dashboard requirements and integration, including how users understood that a view contained sampled data.

The trade-off is resolution: a reduced series is useful for inspecting a broad window, while a narrow window can require finer detail. The interface needs to preserve that distinction so an overview is not mistaken for a complete raw-event record.

Project artifacts

The editor below shows how an ignition widget was configured. The dashboard overview, sample inspection, and connection-loss capture show how widgets behaved once they were on the dashboard.

Ignition-status widget editor

Adapted implementation screenshot
Collector widget settings with three ignition signals selected and a time-series preview showing their true and false states.View larger image (new tab)
FIG. 10 The original widget editor shows the configuration and preview workflow for an ignition-status visualization I implemented. The product itself labels this preview as demo data. Cropped to omit the surrounding vehicle configuration; the widget contents are unchanged.

Delivery and verification

The dashboard work shipped through Collector releases and continued to evolve with new widgets and interaction refinements. Engineers could configure views, compare historical and live observations, inspect events and state changes, and receive explicit feedback when the data path failed.

I extended tests for the data service, transformations, and subscription hooks. I also added coverage for widget settings and several widget types. I could verify time conversion, paging, and other data behavior separately from chart rendering. For example, the millisecond change included fractional-second expectations, and the messages-table work included hook tests for its paging behavior.

The main architectural result was a reusable client data path with clear responsibilities. Historical retrieval, live buffering, transformation, and rendering could change without every widget carrying the entire implementation.

Based on my work at Sonatus. Native demonstrations use synthetic signals. The product captures and recording frame come from the original dashboard.