Repository navigation
The Saves tab, rebuilt: its status first, every save in one history, then where it saves - #326
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.
…the player picked
… save folder it is
…then where it saves
…e launcher didn't see end is finished at its next start
… save isn't called Newer
…opied, and the Newer date # Conflicts: # src-tauri/src/cloud.rs
…sync for a game that syncs
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.
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 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
In the core
saves_infoalso returnscurrent(the save in the game's folder now) andhere(this PC's name).saves_cloud_delete {id, v}: calls the site's existingsave-delete; refuses the newest cloud save.Nothing changes on the website, in the SDK, or in
recomplauncher.json.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: 438 passed, 0 failed. Newtests/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 fromsync_stateandproblem_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).index.html,app.js,tv.jsandaccount.jsagainst a stand-in core.Overlaps: #228 (Google Drive) and #265 (saves between versions) also edit the Saves tab in
account.jsandtv.js.Checklist
recomplauncher.json: the schema and docs are updated too (nothing new to write)