Skip to content

fix(ui): on a phone the menu's fetched line is the refresh button - #769

Merged
joszz merged 1 commit into
mainfrom
fix/menu-refresh-line
Nov 26, 2026
Merged

joszz merged 1 commit into
mainfrom
fix/menu-refresh-line

Conversation

@joszz

@joszz joszz commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Follow-up to #768, which put the Refresh button at the right end of the menu's "Fetched" line, while every other icon in the menu sits on the left.

What changes

  • On a phone, the whole "Fetched 08:34" line is the Refresh button. Its turning icon stays in the icon column, at the same position as the icons on the lines around it, and takes the accent colour. The line gets a soft rounded background that lightens when pressed, and it's 40 px tall. The icon spins while a refresh runs.
  • Off a phone, the line stays plain text and the footer keeps its Refresh button.
  • New useRefresh composable: the logic the footer button and the line share. It offers Refresh only while the server can be reached, and holds it back while a refresh is already running or no car is chosen.
  • Screen readers hear "Refresh (fetched 08:34)", from a new key control.refreshFetched, added to every locale.
  • Removed: the #sidebar-refresh landing spot and the Teleport into it. The line uses v-if again.

Checks

  • pnpm check passes (lint, type check, format, 2080 unit tests). New tests: the line is a button on a phone that refreshes when tapped, it stays plain text off a phone or without the server, and useRefresh has its own spec.
  • In demo mode with Pixel 7 emulation, the icon lines up with the other menu icons (all at 20 px), the line is 40 px tall, and one tap sends one refresh command.

🤖 Generated with Claude Code

#768 put Refresh at the right end of the menu's "Fetched" line, while
every other icon there sits on the left. On a phone the whole line is
now the button: its turning icon stays in the icon column with the
others, in the accent colour, and the line gets a soft rounded ground,
40 px tall, that brightens under a press. Off a phone it stays a plain
line and the footer keeps its Refresh button.

- useRefresh holds what the footer button and the line share: offered
  only with the server reachable, held back while a refresh runs or no
  car is chosen.
- The line reads "Refresh (fetched 08:34)" to a screen reader
  (control.refreshFetched, in every locale).
- The #sidebar-refresh landing spot and the Teleport into it are gone;
  the line is v-if again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@joszz
joszz enabled auto-merge November 26, 2026 07:40
@joszz
joszz merged commit 682c36a into main Nov 26, 2026
27 checks passed
@joszz
joszz deleted the fix/menu-refresh-line branch November 26, 2026 07:43
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