Prune telemetry entries, remove uplot comments, format code

This commit is contained in:
Gnome Adrift
2026-04-01 13:02:02 -07:00
committed by Jack Kingsman
parent c808f0930b
commit 967dd05fad
7 changed files with 35 additions and 11 deletions
@@ -123,9 +123,7 @@ export function TelemetryHistoryPane({
tick={{ fontSize: 10, fill: 'hsl(var(--muted-foreground))' }}
tickLine={false}
axisLine={false}
tickFormatter={(v) =>
metric === 'uptime_seconds' ? formatUptime(v) : `${v}`
}
tickFormatter={(v) => (metric === 'uptime_seconds' ? formatUptime(v) : `${v}`)}
/>
<RechartsTooltip
{...TOOLTIP_STYLE}
@@ -139,7 +137,8 @@ export function TelemetryHistoryPane({
formatter={(value: any, name: any) => {
const numVal = typeof value === 'number' ? value : Number(value);
const display = metric === 'uptime_seconds' ? formatUptime(numVal) : `${value}`;
const suffix = metric === 'uptime_seconds' ? '' : config.unit ? ` ${config.unit}` : '';
const suffix =
metric === 'uptime_seconds' ? '' : config.unit ? ` ${config.unit}` : '';
const label =
metric === 'packets'
? name === 'packets_received'
+1 -1
View File
@@ -8,7 +8,7 @@ class ResizeObserver {
globalThis.ResizeObserver = ResizeObserver;
// uPlot calls matchMedia at import time for DPI detection
// Several components call matchMedia at import time for responsive detection
if (typeof globalThis.matchMedia === 'undefined') {
Object.defineProperty(globalThis, 'matchMedia', {
value: (query: string) => ({
+1 -1
View File
@@ -473,7 +473,7 @@ export interface PaneState {
export interface TelemetryHistoryEntry {
timestamp: number;
data: RepeaterStatusResponse;
data: Record<string, number>;
}
export interface TraceResponse {