Skip to content

feat(mobile): a thin line under the top bar while the data is fetched - #845

Merged
joszz merged 1 commit into
mainfrom
feat/mobile-refresh-bar
Dec 1, 2026
Merged

joszz merged 1 commit into
mainfrom
feat/mobile-refresh-bar

Conversation

@joszz

@joszz joszz commented Dec 1, 2026

Copy link
Copy Markdown
Owner

On a phone with the menu shut, nothing showed the car's data being fetched: the menu's Refresh button, which turns meanwhile, is out of sight. Now a thin line runs under the top bar, as YouTube does along its top.

What it does

  • When: while vehicleStore.loading is on, the same signal that turns the Refresh button: coming back to the tab, a reconnect, a push notification, a trip ending, the first load, and a refresh pressed in the menu that is still running when the menu shuts.
  • Where: a 2px line in the accent colour (--color-primary) over the top bar's bottom border.
  • How: it runs fast at first and ever slower towards 90% while the fetch is out, then fills the bar and fades once the data is in (RefreshBar.vue, CSS in shell.css, animated with transform only).
  • Not: while the menu is open, which has the turning button; and not on a desktop, which has that button in view all the time and no top bar. With reduced motion it is a steady line instead.
  • Hidden from screen readers: the page's data itself says when it is new.

Testing

  • pnpm check passes. New specs: the bar's phases (idle, running, filling and fading, running again during a fade, running from the start when the menu shuts mid-fetch), and in App.spec that it shows only while the menu is shut.
  • Demo at 390 px, light and dark, with the status answer held back 2.5 s: hidden at rest; 91px across after 0.4 s, 258px after 1.9 s; gone the moment the menu opens; hidden again once the data is in. It sits at 54 to 56px, on the bar's bottom edge.

🤖 Generated with Claude Code

On a phone with the menu shut nothing showed the car's data being
fetched: the menu's Refresh, which turns meanwhile, is out of sight. A
2px line in the accent colour now runs along the top bar's bottom edge
while a fetch is out (vehicleStore.loading, which the Refresh button
turns on too: coming back to the tab, a reconnect, a push, the first
load), fast at first and ever slower, then fills the bar and fades once
the data is in. It goes the moment the menu opens, which has the turning
button instead; a desktop has that button in view all the time and no
top bar. Without motion it is a steady line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@joszz
joszz enabled auto-merge December 1, 2026 18:12
@joszz
joszz force-pushed the feat/mobile-refresh-bar branch from 3789f1c to 97b43fa Compare December 1, 2026 18:12
@joszz
joszz merged commit 55b5cb4 into main Dec 1, 2026
31 checks passed
@joszz
joszz deleted the feat/mobile-refresh-bar branch December 1, 2026 18:20
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