footer: Replace refresh button with countdown timer#41
Conversation
- Removed the "Refresh All" button from the footer, replacing it with a countdown timer that displays minutes or seconds until the next update. - Moved the countdown display from the settings page to the footer. - Added aria-labels to SideNav buttons for improved accessibility, including Home, Settings, and plugin names. - Included an aria-label for the retry button in the provider card. - Updated tests to reflect changes in the footer and button interactions.
Replace the footer Refresh All control with a live auto‑update countdown and move the countdown display from Settings to the footerRemove manual refresh and cooldown logic from 📍Where to StartStart with Macroscope summarized 659507d. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f251a0a200
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
src-tauri/tauri.conf.json
Outdated
| "$schema": "https://schema.tauri.app/config/2", | ||
| "productName": "OpenUsage", | ||
| "version": "0.0.2", | ||
| "version": "0.0.1", |
There was a problem hiding this comment.
Avoid downgrading app version in tauri config
The app version is lowered to 0.0.1 in src-tauri/tauri.conf.json. For users already on 0.0.2, Tauri’s updater will compare versions and consider this build older, so they will not receive updates until the version is bumped above 0.0.2. This effectively strands existing installs on newer versions. Restore or bump the version instead of downgrading.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
There was a problem hiding this comment.
2 issues found across 12 files
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="src-tauri/tauri.conf.json">
<violation number="1" location="src-tauri/tauri.conf.json:4">
P2: Version number was decremented. This makes the new build appear older than the previous release, which can block users on 0.0.2 from receiving updates and breaks expected release ordering. Keep versions monotonic (restore 0.0.2 or bump to the next version).</violation>
<violation number="2" location="src-tauri/tauri.conf.json:4">
P2: The Tauri config version now diverges from Cargo.toml. Keep these in sync to avoid inconsistent app versioning and updater behavior.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
src-tauri/tauri.conf.json
Outdated
| "$schema": "https://schema.tauri.app/config/2", | ||
| "productName": "OpenUsage", | ||
| "version": "0.0.2", | ||
| "version": "0.0.1", |
There was a problem hiding this comment.
P2: Version number was decremented. This makes the new build appear older than the previous release, which can block users on 0.0.2 from receiving updates and breaks expected release ordering. Keep versions monotonic (restore 0.0.2 or bump to the next version).
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At src-tauri/tauri.conf.json, line 4:
<comment>Version number was decremented. This makes the new build appear older than the previous release, which can block users on 0.0.2 from receiving updates and breaks expected release ordering. Keep versions monotonic (restore 0.0.2 or bump to the next version).</comment>
<file context>
@@ -1,7 +1,7 @@
"$schema": "https://schema.tauri.app/config/2",
"productName": "OpenUsage",
- "version": "0.0.2",
+ "version": "0.0.1",
"identifier": "com.sunstory.openusage",
"build": {
</file context>
| "version": "0.0.1", | |
| "version": "0.0.2", |
src-tauri/tauri.conf.json
Outdated
| "$schema": "https://schema.tauri.app/config/2", | ||
| "productName": "OpenUsage", | ||
| "version": "0.0.2", | ||
| "version": "0.0.1", |
There was a problem hiding this comment.
P2: The Tauri config version now diverges from Cargo.toml. Keep these in sync to avoid inconsistent app versioning and updater behavior.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At src-tauri/tauri.conf.json, line 4:
<comment>The Tauri config version now diverges from Cargo.toml. Keep these in sync to avoid inconsistent app versioning and updater behavior.</comment>
<file context>
@@ -1,7 +1,7 @@
"$schema": "https://schema.tauri.app/config/2",
"productName": "OpenUsage",
- "version": "0.0.2",
+ "version": "0.0.1",
"identifier": "com.sunstory.openusage",
"build": {
</file context>
Replace the "Refresh All" button in the footer with a countdown timer showing when the next auto-update will occur.
Changes
use-app-update.test.tsMade with Cursor
Note
Medium Risk
Moderate risk: changes UI affordances for refreshing and shifts updater behavior to auto-download on startup, which can affect update flow and user expectations. Most changes are covered by updated unit tests, but timer/interval behavior and updater edge cases could still regress.
Overview
Replaces the footer "Refresh all" control with a live auto-update countdown (
Next update in Xm/XsorPaused), moving/removing the countdown fromSettingsPageand simplifying the Auto Update section copy.Removes the
App-level manual refresh/cooldown enablement logic and updatesPanelFooterto tick once per second when scheduled.Improves accessibility by adding
aria-labels toSideNavbuttons and the provider card retry icon button, and updates the app updater flow/tests souseAppUpdateauto-downloads when an update is found and surfaces clearer downloading/ready/error states in the footer.Written by Cursor Bugbot for commit 659507d. This will update automatically on new commits. Configure here.
Summary by cubic
Replaced the footer’s “Refresh All” button with a live countdown showing when the next auto-update will run. Moved the countdown from Settings to the footer and improved accessibility and update status UX.
New Features
Refactors
Written for commit 659507d. Summary will update on new commits.