Repository navigation
feat(ui): on a phone the page row moves into the top bar - #768
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)
[menu] [title + period] [page buttons] [Settings] [bell].ViewHeadermoves its whole heading into the top bar: the title, the (i) mark, and the period as a small second line..btn__label).v-showinstead ofv-if, so the moved button is never left in a removed line.variant="map-control"onToolbarPanel. The map header keeps Filters.InlineTeleportinstead ofteleport: 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 checkpasses (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.27 Oct - 26 Nov 20…).🤖 Generated with Claude Code