From 9b5381c386a6308edf6a77639769ed5023d07fa0 Mon Sep 17 00:00:00 2001 From: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com> Date: Wed, 16 Sep 2026 13:26:00 -0700 Subject: [PATCH 1/7] Add runtime group headings and marker shapes Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com> --- src/main.ts | 21 +++++++++++++-------- src/style.css | 4 +++- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/main.ts b/src/main.ts index 6f98ed2..a3e0974 100644 --- a/src/main.ts +++ b/src/main.ts @@ -59,11 +59,15 @@ function renderDashboard(data: Dataset) { let selectedRunId = data.runs.find(run => run.id === params.get('run'))?.id ?? data.runs.at(-1)?.id ?? '' let chart: Chart<'line'> | undefined const runtimeGroups = [ - { label: 'Hyperlight JS', runtimes: data.runtimes.filter(runtime => runtime.id === 'hyperlight-js') }, - { label: 'Hyperlight Wasm', runtimes: data.runtimes.filter(runtime => runtime.id.startsWith('hyperlight-wasm-') && !runtime.id.endsWith('-dummy')) }, - { label: 'Wasmtime', runtimes: data.runtimes.filter(runtime => runtime.id.startsWith('wasmtime-') && !runtime.id.endsWith('-dummy')) }, - { label: 'Dummy', runtimes: data.runtimes.filter(runtime => runtime.id === 'dummy' || runtime.id.endsWith('-dummy')) }, + { label: 'Hyperlight JS', shape: 'circle', runtimes: data.runtimes.filter(runtime => runtime.id === 'hyperlight-js') }, + { label: 'Hyperlight Wasm', shape: 'square', runtimes: data.runtimes.filter(runtime => runtime.id.startsWith('hyperlight-wasm-') && !runtime.id.endsWith('-dummy')) }, + { label: 'Wasmtime', shape: 'diamond', runtimes: data.runtimes.filter(runtime => runtime.id.startsWith('wasmtime-') && !runtime.id.endsWith('-dummy')) }, + { label: 'Dummy', shape: 'triangle', runtimes: data.runtimes.filter(runtime => runtime.id === 'dummy' || runtime.id.endsWith('-dummy')) }, ] + const runtimeMarker = (runtimeId: string, markerColor: string) => { + const shape = runtimeGroups.find(group => group.runtimes.some(runtime => runtime.id === runtimeId))?.shape ?? 'square' + return `` + } app.innerHTML = `