Skip to content

The Saves tab, rebuilt: its status first, every save in one history, then where it saves - #326

Merged
elripalda merged 21 commits into
elripalda:mainfrom
Xarishark:feat/saves-tab-rebuild
Nov 19, 2026
Merged

elripalda merged 21 commits into
elripalda:mainfrom
Xarishark:feat/saves-tab-rebuild

Conversation

@Xarishark

@Xarishark Xarishark commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

What this changes

A game's Saves tab, rebuilt so it reads top to bottom: where its saves stand, every save in one list, then where it saves. Big Picture's Saves page follows the same order.

Stacked on #319, which adds the status line above Play this tab builds on. Until #319 merges, this PR also shows #319's commits. Its own are the three Saves tab commits and the two test commits after them; the merge commits bring in fixes made on #319's branch while trying both together.

The tab, top to bottom

  • Status first. The same words, colour and cloud mark as the line above Play, bigger, with one button for what to do about it: Sync Now, Choose a Save (both saves changed), Turn On (cloud saves off), Sign in, Pick a Folder, Report a Problem, or Free Up Space. No button when it sorts itself out (an upload's next try, the game running, a sync running, nothing played yet). On the desktop it sits on the page without a box; Big Picture keeps its item box.
  • Save History, one list instead of "On this PC" and "In the cloud". A save on this PC and the same save in the cloud (same checksum) are one row, marked On this PC, In the cloud and From Steam Deck when another PC made it. Newest first, always: restoring an older save never moves rows.
    • The save in the game now has its row lit green with "✓ In the game now" where the others have Restore (was "Put back").
    • The newest 6 are shown, then "Show N older saves" / "Show fewer saves". The list always reaches the save in the game, even an older one that was restored.
    • Older cloud saves have a small bin to delete them from the cloud (in Big Picture, in the Restore sheet). Never the newest cloud save: the next PC brings that one in, and without it an older copy would look newest.
    • Back Up Now only shows when cloud saves are off or you're signed out. With cloud saves on, Sync Now copies the save before it goes up.
  • Settings: only "Share saves between versions", for a game with several. The per-game Cloud saves switch moves to the Manage tab in A game's Manage tab holds every setting, and its … menu only what no tab has #327, so the two go in together; here the status card only offers Turn On.
  • Where it saves: a folder its developer named shows a green shield with Set by its developer; one RecompLauncher keeps for the game shows Set by RecompLauncher in cyan. Both only have Open: saying where is what recomplauncher.json is for. Change and Add a Folder are only there for a folder the player picked.
  • Folder unknown: the tab leads with a red card and Pick a Folder. The line above Play says a calm grey "Saves not backed up" there (it used to say "No saves yet" forever), since many games are like this until their folder is known.

In the core

  • Which folder wins: the developer's, then RecompLauncher's, then the player's pick. A folder the player picked before one was named isn't used anymore (the launcher never moves where a game saves, it only reads that folder). Was: the player's pick first.
  • Whose folder it is: a profile's save folders count as the developer's only when the recomplauncher.json came with the game's own release. One from the catalog or built into the launcher is RecompLauncher's ("catalog").
  • saves_info also returns current (the save in the game's folder now) and here (this PC's name).
  • New saves_cloud_delete {id, v}: calls the site's existing save-delete; refuses the newest cloud save.
  • A full cloud now says to delete another game's cloud saves on the account page at recomplauncher.com (the site always keeps each game's newest, and drops older copies by itself), and the status's Free Up Space opens that page. The message and LAUNCHER-API.md said 150 MB; the site's limit is 300 MB.

Nothing changes on the website, in the SDK, or in recomplauncher.json.

New strings go through t() and N_(); they aren't translated yet.

How you tested it

On bazzite-kde (Fedora 43):

  • node --test tests/*.test.cjs: 438 passed, 0 failed. New tests/saves-tab.test.cjs: the merged list, the marks, show more/fewer, the folder rules, deleting cloud saves, Back Up Now, and a no dead ends check: every real situation a game's saves can be in gets a working button or sorts itself out. It reads every state and problem kind from sync_state and problem_kind, so a new one fails the test until it's handled, and checks each button is wired on the desktop and in Big Picture.
  • cargo test --lib: 808 passed, 0 failed (new: which folder wins, whose folder it is, which cloud saves can be deleted).
  • Looked at the tab in every case and status, desktop and Big Picture, with the real index.html, app.js, tv.js and account.js against a stand-in core.
  • Tried it in a real build on Windows, together with A cloud save status above Play, and an easier choice when both saves changed #319, with two test games (a save folder its recomplauncher.json names, and none) and a real account: Save History after real sessions, Restore (rows stay put, the highlight moves), the red unknown-folder card and the grey line above Play, Turn On, deleting an older cloud save (and the newest refused), a both-changed conflict, Back Up Now only without cloud saves, signed out and cloud off, and Big Picture.

Overlaps: #228 (Google Drive) and #265 (saves between versions) also edit the Saves tab in account.js and tv.js.

Checklist

  • One change per pull request
  • No version bump or patch notes (those are done at release time)
  • If it changes what developers can write in recomplauncher.json: the schema and docs are updated too (nothing new to write)

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.
…e launcher didn't see end is finished at its next start
…opied, and the Newer date

# Conflicts:
#	src-tauri/src/cloud.rs
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.
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.
@Xarishark
Xarishark marked this pull request as ready for review November 19, 2026 22:42
@elripalda
elripalda merged commit 8449756 into elripalda:main Nov 19, 2026
6 checks passed
@Xarishark
Xarishark deleted the feat/saves-tab-rebuild branch November 23, 2026 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants