Repository navigation
fix(ui): on a phone the menu's fetched line is the refresh button - #769
Merged
Merged
Conversation
#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>
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 #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
useRefreshcomposable: 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.control.refreshFetched, added to every locale.#sidebar-refreshlanding spot and the Teleport into it. The line usesv-ifagain.Checks
pnpm checkpasses (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, anduseRefreshhas its own spec.🤖 Generated with Claude Code