From 0947b29a2e633aec6442b7b963959577dee1031f Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 19 Oct 2026 19:01:15 +0000 Subject: [PATCH 1/7] perf(dashboard): load the history dialogs, and Chart.js with them, on first tap CarDiagram imported the tyre and level history dialogs directly, which put Chart.js (about 190 KB, 67 KB gzipped) on every dashboard visit. Each dialog is now fetched when it is first opened, mounted closed and opened on the next tick so its fade-in and its fetch still start from the change. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01L6DtW2eHhipteRopmy3cif --- frontend/src/components/CarDiagram.vue | 34 +++++-- .../components/__tests__/CarDiagram.spec.ts | 95 +++++++++++++++++++ 2 files changed, 122 insertions(+), 7 deletions(-) create mode 100644 frontend/src/components/__tests__/CarDiagram.spec.ts diff --git a/frontend/src/components/CarDiagram.vue b/frontend/src/components/CarDiagram.vue index 9eb4c5d6..f86eda2f 100644 --- a/frontend/src/components/CarDiagram.vue +++ b/frontend/src/components/CarDiagram.vue @@ -1,15 +1,13 @@