Skip to content

feat(ui): on a phone the page row moves into the top bar - #768

Merged
joszz merged 1 commit into
mainfrom
feat/phone-topbar-actions
Nov 26, 2026
Merged

joszz merged 1 commit into
mainfrom
feat/phone-topbar-actions

Conversation

@joszz

@joszz joszz commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Follow-up to #764, #766 and #767. On a phone, a row still held the period and the page's buttons: about 80 px including its gap, above the content of Statistics, Map, Trip log, Charge history, Maintenance, Climate schedules and Logs. The buttons keep their 40 px touch size. They move instead of shrinking.

What changes (phones, unless noted)

  • Top bar layout: [menu] [title + period] [page buttons] [Settings] [bell].
    • ViewHeader moves its whole heading into the top bar: the title, the (i) mark, and the period as a small second line.
    • It also moves its actions there, as icons. Filters keeps its count badge, Add is an accented +, and Live turns green while on. Each button's words stay available to screen readers and as a tooltip (.btn__label).
    • The page row is then empty and hidden. Content starts 12 px under the bar on every page.
  • Refresh goes to the menu: it now sits at the end of the "Fetched" line, which shows the time it updates. That line now uses v-show instead of v-if, so the moved button is never left in a removed line.
  • No car icon in the top bar: home is in the menu, and the title and period get the room.
  • Layers on the map (all screen sizes): it's now a map button under Find car, with its count as a badge, using the new variant="map-control" on ToolbarPanel. The map header keeps Filters.
  • Edit bar spacing: the space reserved under the page for the touch edit bar no longer depends on the Edit layout button being inside the page, since on a phone it sits in the top bar now.
  • Tests: specs now stub Teleport with a shared InlineTeleport instead of teleport: true. The built-in stub is a new component on every render, so it rebuilt the moved actions and their open filter dialog. Real Teleports don't do this.

Checks

  • pnpm check passes (lint, type check, format, 2074 unit tests). New or updated tests cover: ViewHeader moving the heading, period and actions to the top bar; Refresh in the menu and Settings in the top bar; the map-button variant; Layers on the map; the top bar slot order.
  • Demo mode, Pixel 7 emulation at 320 and 412 px, on all eight pages:
    • The page row is hidden, content starts 12 px under the bar, and nothing scrolls sideways.
    • Filters opens from the top bar, Layers from the map, and Refresh sits in the menu.
    • At 1440 px nothing changes except Layers on the map.
  • At 320 px a long period ends in an ellipsis (27 Oct - 26 Nov 20…).

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
@joszz
joszz enabled auto-merge November 26, 2026 07:28
@joszz
joszz merged commit e66c303 into main Nov 26, 2026
27 checks passed
@joszz
joszz deleted the feat/phone-topbar-actions branch November 26, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant