Skip to content

fix(ui): phone header polish: no empty dashboard row, a clearer period, info in the top bar - #766

Merged
joszz merged 1 commit into
mainfrom
fix/phone-header-polish
Nov 25, 2026
Merged

joszz merged 1 commit into
mainfrom
fix/phone-header-polish

Conversation

@joszz

@joszz joszz commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Follow-up to #764, after using it on a phone.

What changes

  • No empty band above the dashboard (touch phones): the dashboard's title row had nothing visible left. The title is in the top bar, a long press replaces Edit layout, and the top bar's refresh button spins during a refresh. The row and its 24 px gap are now hidden, so the first card starts 12 px under the top bar instead of 68 px. The rule in editMode.css only hides a row with no caption and no visible action, so Statistics keeps its period and Filters. A narrow window with a mouse keeps Edit layout and its row. In main.css, any phone row left with no caption and no actions is hidden too.
  • A clearer period: the caption (Statistics, Map, Trip log, Charge history, trip editor) is now semibold, in the text colour, with a calendar-days icon in the accent colour in front. Before, it was a muted line.
  • Info button in the top bar (phones): ViewHeader puts the h1 and its (i) button in one .view-header__title block and moves the whole block to the top bar on phones. The (i) shows as a small mark raised off the heading's top right, with a 28 px tap area. On desktop it sits right beside the heading.

Checks

  • pnpm check passes (lint, type check, format, 2068 unit tests). ViewHeader.spec.ts now covers the info button moving to the top bar and opening its modal from there.
  • Checked in demo mode with Pixel 7 emulation (touch) and at 1440 px: Dashboard (row hidden on the phone), Statistics, Map, Trip log and Maintenance.

🤖 Generated with Claude Code

…d, info in the top bar

- On a touch phone the dashboard's title row showed nothing: the title
  is in the top bar, a long press replaces Edit layout and the top
  bar's refresh button spins. The empty row and its gap are hidden,
  so the first card starts 12 px under the top bar instead of 68 px.
  A row that still has a caption or a visible action stays, so the
  statistics keep their period and filters. Any phone row left with
  nothing in it is hidden as well.
- The period (Statistics, Map, Trip log, Charge history, trip editor)
  reads as what the whole page shows: semibold, in the text colour,
  behind a calendar in the accent colour, instead of a muted line.
- The heading and its info button form one block. On a phone both go
  to the top bar, the info button as a small mark raised off the
  heading's top right. On a desktop it sits right beside the heading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@joszz
joszz enabled auto-merge November 25, 2026 22:05
@joszz
joszz merged commit b27bf86 into main Nov 25, 2026
27 checks passed
@joszz
joszz deleted the fix/phone-header-polish branch November 25, 2026 22:08
joszz added a commit that referenced this pull request Nov 26, 2026
The edit-mode row of the car diagram and the location map carried a
top margin the row outside edit mode does not have, left over from an
older edit mode. It used to fold into the title row's own margin, so
nothing showed. Since #766 hides that row on a touch phone, every card
dropped 24 px the moment a long press started editing.

The row is now spaced the same in both modes, and a test compares
them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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