Skip to content

feat(ui): more room on a phone: the title in the top bar, Find car on the map - #764

Merged
joszz merged 1 commit into
mainfrom
feat/phone-screen-room
Nov 25, 2026
Merged

joszz merged 1 commit into
mainfrom
feat/phone-screen-room

Conversation

@joszz

@joszz joszz commented Nov 25, 2026

Copy link
Copy Markdown
Owner

On a phone the Map page used most of the screen before the map. The title, the period under it, the three actions wrapped onto their own row, and a 240 px trip list left the map less than half the screen.

What changes

  • Title in the top bar (phones): the page heading replaces "GarageStack" in the top bar. The car icon stays as the link home. ViewHeader moves its h1 there with a Teleport, the same way AppFooter moves Refresh and Settings, so it is still the page's real heading. The page's own row keeps the caption (the period) and the actions.
  • Info button instead of the subtitle (all sizes): Trip log, Charge history, Maintenance, Climate schedules and Logs have a small (i) button beside the heading. It opens the explanation in the existing DetailModal. New key common.aboutPage in every locale.
  • Fold the trip list (below 1024 px): tapping the Trip history title folds the list away. The fold state is kept per device (tripListExpanded, a local key in the map settings like legendExpanded). At 1024 px and wider the list sits beside the map, so it doesn't fold there.
  • Find car on the map: a map button in the top right, across from the zoom control, on every screen size. The header keeps Filters and Layers.

Effect

The map's height on the Map page, from the demo:

Width List open List folded
320 px 222 px 410 px
390 px 452 px 640 px

At 320 px, Filters and Layers still go below the period line, which is too wide to share their row. From 390 px they fit on one row. Nothing scrolls sideways at 320, 390 or 1440 px.

Checks

  • pnpm check passes (lint, type check, format, 2068 unit tests).
  • New ViewHeader.spec.ts: the info button and its modal, and the heading moving to the top bar on a phone. TripSidebar.spec.ts: folding, and no folding when wide. Store tests cover the new local key. MapView.spec.ts now finds Find car on the map.
  • Checked in demo mode at 320, 390 and 1440 px: Map (list open and folded), Trip log, Maintenance, Dashboard and the info modal.

The README screenshots (pnpm screenshots) can be retaken later to show the new top bar.

🤖 Generated with Claude Code

… the map

On a phone the Map page spent most of the screen before the map: the
title, the period under it, the three actions wrapped onto a row of
their own, and a trip list of 240 px.

- On a phone the page's heading moves into the top bar, in place of
  the app's name; the car icon stays as the way home. The page's own
  row keeps the caption and the actions, so Filters and Layers share
  the period's row from 390 px on.
- The line about a page (Trip log, Charge history, Maintenance,
  Climate schedules, Logs) waits behind an info button beside the
  heading, on every screen size, and opens in the detail modal.
- Above the map the trip list folds to its title, and stays folded on
  this device. At 390 px the map grows from 452 to 640 px.
- Find car is a button on the map, beside the zoom control, rather
  than a third action in the header.

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