Repository navigation
A cloud save status above Play, and an easier choice when both saves changed - #319
Merged
Merged
Conversation
Up to date (and how long ago), checking, uploading, getting a newer save, syncs after you play, waiting to upload (offline, or the next try), choose a save, can't upload, too big, sync paused, off, not signed in or no saves yet. Clicking it shows when it last synced and from which PC, with the button that fits: Sync Now, Try Again, Choose a Save, Turn On, Sign In or Open Saves. It reads saves_status (this PC only, never the website) and follows the save-sync event, so it changes while a save goes up or comes down.
The same state as on the desktop, among the game's buttons; A opens its Saves.
It looked clickable as a pill. Now it's the cloud mark and the state's words in the state's colour, above Play on the desktop and above the game's buttons in Big Picture. The details it showed on a click are its tooltip; what to do about it stays on the Saves tab.
…says so On the desktop the cards for this PC's save and the cloud's are what the player clicks (no buttons under them), with what happens to the other under the question. The one saved later has a green Newer beside its heading; in Big Picture beside its label in the sheet. ask() can show any choice as cards this way.
Merged
7 tasks done
…e launcher didn't see end is finished at its next start
… save isn't called Newer
Xarishark
added a commit
to Xarishark/RecompLauncher
that referenced
this pull request
Nov 19, 2026
…opied, and the Newer date # Conflicts: # src-tauri/src/cloud.rs
Xarishark
added a commit
to Xarishark/RecompLauncher
that referenced
this pull request
Nov 19, 2026
Xarishark
added a commit
to Xarishark/RecompLauncher
that referenced
this pull request
Nov 19, 2026
…sync for a game that syncs
Xarishark
marked this pull request as ready for review
November 19, 2026 19:22
Xarishark
added a commit
to Xarishark/RecompLauncher
that referenced
this pull request
Nov 19, 2026
elripalda#319 went in squashed, so its files clashed with the branch commits this branch already holds; this branch's side is elripalda#319's plus the Saves tab, so it is kept for those five files.
Xarishark
added a commit
to Xarishark/RecompLauncher
that referenced
this pull request
Nov 19, 2026
Xarishark
added a commit
to Xarishark/RecompLauncher
that referenced
this pull request
Nov 19, 2026
elripalda#325) No conflicts. elripalda#325's game title line and elripalda#319's save status line already sit together in main's refreshGame; this branch doesn't change app.js.
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.
What this changes
A cloud save status above Play on every game page, so the player sees whether the last save reached the cloud without opening the Saves tab. It's the window side of #289, which added
saves_statusand thesave-syncevent. The "which save do you want?" dialog also gets easier to answer.The status above Play
A coloured line, not a button: the cloud mark and a few words in the state's colour, with a short grey note.
save-sync.Hovering it gives the details in its tooltip: what's going on in a sentence, when it last synced and from which PC, how many copies are waiting. What to do about it stays on the Saves tab (and Play, for a conflict).
The status is asked once per game and again when something changes: a
save-syncstart or end, thesavesevent, anything that reloads the Saves tab, signing in or out. A game of several that keeps its own saves shows its own.Big Picture: the same line above the game's buttons.
Light theme has darker green, amber and red so they read on white. The moving marks (checking, uploading) stay still with reduced motion.
Which save to keep
When both saves changed (on Play, or Sync Now on the Saves tab):
ask()can show any choice as cards this way (cardsargument); the conflict dialog still goes through it, so the existing save-sharing test reads it as before.After a game closes
saves/<id>/state.json) getafter_playwhen it starts, cleared by any copy of its save (after the session, Sync Now, Back Up Now, before a restore or a cloud save). Still set when the launcher starts again, that session's save is copied and sent first, and until then the status says Waiting to upload instead of a stale Up to date.New strings go through
t()andN_(); they aren't translated yet.How you tested it
On bazzite-kde (Fedora 43):
node --test tests/*.test.cjs: 391 passed, 0 failed. New intests/save-badge.test.cjs: one per state the line can show, the tooltip text, the coarse time fallback, which save is newer (this PC, the cloud, neither), and the step after a session (shown only for a game that syncs).cargo test --lib: 800 passed, 0 failed. New: a session not copied yet is waiting, any copy ends it, open sessions found at start, and the first copy dates a restored save.node --checkonaccount.js,app.jsandtv.js.index.html,app.js,tv.jsandaccount.jsagainst a stand-in core, in dark and light. Opened the conflict dialog both ways; picking a card sendssaves_pickwith that choice.Overlaps: #228 (Google Drive) and #265 (saves between versions) also edit
account.jsandtv.js, in other functions. In the core: the step after a session and the session notes (cloud.rs,saves.rs,lib.rs). Nothing changes inrecomplauncher.json.Checklist
recomplauncher.json: the schema and docs are updated too (nothing new to write)