From 755ca22b7540e5df4e1f8c1d470b3657b6cde143 Mon Sep 17 00:00:00 2001 From: Jos Nienhuis <6952249+joszz@users.noreply.github.com> Date: Thu, 26 Nov 2026 08:26:07 +0100 Subject: [PATCH] feat(ui): on a phone the page row moves into the top bar On a phone a row still held the period and the page's buttons, about 80 px with its gap above the content. The buttons keep their touch size; they move instead of shrinking. - ViewHeader moves its whole heading (title, info mark and period as a small second line) and its actions into the top bar on a phone. The actions show as 40 px icons with their words kept for screen readers and as a tooltip: Filters with its count, Add as an accented +, Live green while on. The page row is then empty and hidden, so content starts 12 px under the bar on every page. - Refresh leaves the top bar for the menu, at the end of the "Fetched" line it renews. That line now hides with v-show rather than v-if, so the button moved into it never ends up in a removed line. - The car icon leaves the top bar: home is in the menu, and the title and period get the room. - Layers is one of the map's own buttons, under Find car, with its count as a badge (ToolbarPanel variant "map-control"), on every screen size. The map header keeps Filters. - The touch-edit bar's room under the page no longer depends on the edit button being inside the page, as it sits in the top bar now. - Specs stub Teleport with a shared InlineTeleport instead of `teleport: true`, which builds a new stub on every render and so rebuilt the moved actions and their open filter dialog. Co-Authored-By: Claude Opus 5.5 --- frontend/src/App.vue | 23 ++++--- frontend/src/__tests__/App.spec.ts | 24 ++++++- frontend/src/__tests__/inlineTeleport.ts | 16 +++++ frontend/src/assets/editMode.css | 20 +----- frontend/src/assets/main.css | 67 ++++++++++++------- frontend/src/assets/shell.css | 64 ++++++++++++------ frontend/src/components/AppFooter.vue | 16 +++-- frontend/src/components/EditLayoutButton.vue | 7 +- frontend/src/components/ToolbarPanel.vue | 27 +++++++- frontend/src/components/ViewHeader.vue | 36 +++++----- .../components/__tests__/AppFooter.spec.ts | 8 ++- .../__tests__/EditLayoutButton.spec.ts | 3 +- .../__tests__/PeriodFilterPanel.spec.ts | 3 +- .../components/__tests__/ToolbarPanel.spec.ts | 18 +++++ .../__tests__/TripLogFilterPanel.spec.ts | 3 +- .../__tests__/TripLogSummaryModal.spec.ts | 3 +- .../components/__tests__/ViewHeader.spec.ts | 45 ++++++++----- frontend/src/components/map/MapLayerPanel.vue | 7 +- frontend/src/views/ClimateSchedulesView.vue | 5 +- frontend/src/views/LogsView.vue | 14 +++- frontend/src/views/MaintenanceView.vue | 5 +- frontend/src/views/MapView.vue | 14 ++-- .../views/__tests__/ChargeHistoryView.spec.ts | 3 +- frontend/src/views/__tests__/MapView.spec.ts | 10 +++ .../src/views/__tests__/TripLogView.spec.ts | 3 +- 25 files changed, 307 insertions(+), 137 deletions(-) create mode 100644 frontend/src/__tests__/inlineTeleport.ts diff --git a/frontend/src/App.vue b/frontend/src/App.vue index f4b9c02f..d284e545 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -20,7 +20,7 @@ import { useSignalR } from '@/composables/useSignalR' import { useGatewayStatus } from '@/composables/useGatewayStatus' import { useSettledAvailability } from '@/composables/useSettledAvailability' import { useFavicon } from '@/composables/useFavicon' -import { APP_NAME, usePageTitle } from '@/composables/usePageTitle' +import { usePageTitle } from '@/composables/usePageTitle' import { useScreenWakeLock } from '@/composables/useScreenWakeLock' import { usePhoneGpsRecorder } from '@/composables/usePhoneGpsRecorder' import { useRelativeTime } from '@/composables/useRelativeTime' @@ -257,13 +257,11 @@ watch( > - - - - +
- + +
-