Skip to content

Downloads: one Downloading list like the mockup, with builds after an update and Built pills - #430

Closed
Xarishark wants to merge 41 commits into
elripalda:mainfrom
Xarishark:feat/downloads-list-like-mock
Closed

Xarishark wants to merge 41 commits into
elripalda:mainfrom
Xarishark:feat/downloads-list-like-mock

Conversation

@Xarishark

Copy link
Copy Markdown
Collaborator

Stacked on #429 (it merges first). Until then this PR also shows #429's commits; the six commits of this PR are the last six (c1618cc..801cddc).

After #398 the Downloads page still didn't look like the mockup it was built from: the big download card with its speed graph and an "Up Next" list sat on top, and #429's builds after an update weren't on the page at all. This makes the top of Downloads the mockup's one list, shows those builds in it, and adds a few markers players asked for.

What changes

  • One Downloading list. The big card and Up Next become one list: what's moving first, then everything waiting its turn.
    • A moving download is a row with a bigger picture, one line (Update to v1.2.0 · 124 MB of 141 MB · 45.8 MB/s · 1 sec left) over a thin bar, Pause and a ✕.
    • A queued download is a quiet row that says what it will be (Update to v1.4.0, or Install), Queued and a ✕.
    • Pause All in the list's header pauses whatever can be paused, the waiting ones first so none starts when the moving one stops.
    • The speed graph's drawing is gone; its speed measurement stays and gives a steadier time left.
  • One way to ask for files: game is read as an input, every new release builds again #429's builds are in the list. A game building right after its update (Build Again After Updates) is a moving row: Building the game · 40%, its bar from the builder's progress, a ✕ that stops the build. An update held back for it says Waiting for the build before it, a game queued to build says Waiting to build. Before, the build ran with nothing on Downloads, and the held update said it was waiting for a download.
  • Pills.
    • The store's Safe pill is now on downloading rows too (the moving one beside its name, queued ones after what they'll be), as on Updates ready. A first install has none while it downloads: its version isn't known yet.
    • A new violet Built pill: when the build after an update finishes (in the background or from Finish the Update), the launcher remembers the version it built (ui.built_after) and that update's row in Recent says Built, explained on hover.
    • Recent rows drop "Checksum matched" (every download is checked) and keep only the store's pill.
  • The version an update goes to is blue, the same .gs-new style as a game's stats strip: on Updates ready, the moving and queued rows, and Recent.
  • Removed: the totals line under the title (each download shows its own numbers), and Recent's "N earlier downloads" fold (each game is one row; its Updates tab has every release).
  • Smaller fixes: Recent no longer blinks away when a download finishes (the old list stays until the new one is read); section titles are smaller.
  • Texts: 10 new ones in all 20 languages; the ones only the removed parts used are gone.

Tests

  • tests/downloads-page.test.cjs: the list and its order (moving downloads, the build, queued, build waits), Queued rows, held updates, Pause All, the moving line (version, sizes, speed, time left; Install; Unpacking), the pills on each row kind and the Built pill's rules, the blue version, no totals line, one Recent row per game.
  • Linux VM (Bazzite): node --test tests/ 722 passed, 0 failed. All translation files parse.
  • Checked on a local dev page that runs the real UI with a stand-in core sending real install and setup events: Update All on four updates (two that build after downloading) runs through download, build, the held update, and Recent with Safe and Built pills.
  • Not run: cargo test (no Rust changed), and the change in the running app on Windows, Linux or macOS.

Patch notes

Player line: Downloads is one list: what's downloading or building on top, then what waits its turn. A game that builds after its update shows its build there, and Recent marks it Built when it's done.

… pins (elripalda#393)

Whether an install is a version the player picked is one rule now (picked_by_player): the same
version again (Change Build, a reinstall) stays as it was, and the newest release or the one the
store let out never pins the game.
…lripalda#393)

An install with no version goes to the one the store let out, which for Longshot is v3.0.0 while
its newest releases are nightlies. Automatic updates, Update All and the Update buttons now
install the version on offer by name; Change Build and the build picker keep the version (and a
first install's folder); Big Picture installs the newest by name too. A picked nightly's card says
"Go Back to v3.0.0" instead of "Go to the newest".
…lripalda#393)

Longshot's server keeps a few nightlies. Once the installed one is gone from the list, the update
check couldn't compare "nightly-680" with "v3.0.0" and took v3.0.0 for newer, so automatic updates
put players back on it. A tag that isn't a version is now compared by date: a release is newer
only when it came out after the game was installed.
…ease dates with an offset read right (elripalda#393)

The test only had a Windows x64 build, so the Mac test machine (arm64) found none and offered nothing. A Forgejo server may send a release date with an offset (+02:00): it's taken off now.
…ipalda#408)

Set Up By Hand and the player's own build go (Use a Build You Already
Have, Move Build, Where's your build?). Setup Required no longer blocks
Play, Steam shortcuts or the tray. Changing a game's project keeps the
picked program. Library format 3 turns hand setups and own builds into
Skip Easy Setup. Unused translations removed.
Passing the game's folder is the manifest's job ("--game_data_root",
"{input:game}"), not something the player adds to launch options.
An input can now say how to tell it's the right game (check, dumps,
contains), where it goes (into, name), whether the disc is unpacked
(extract) and, for an update, its sha256. A field the launcher doesn't
know is ignored instead of dropping the whole manifest.

lift_game turns game into an input game (and game.update into an input
update) with the same rules, read back through GameCopy and Extra so
the existing checks run unchanged. Not wired in yet. A conversion test
lifts the built-in boot profiles, and with RL_CORPUS every developer
manifest and the store's catalog, checking every rule lands as it was.
…d one rule

Every game's files are named inputs now. A manifest's game (and the
store's boot profiles) is lifted into the input game, and game.update
into the input update, when the profile is read. The main input (the
first with role game) is the copy box, and {game} fills in with it.

- One setup run for every game: a file with dumps is read whole, a disc
  is unpacked, files are placed, the setup step runs, settings are
  written. Only then are the picks and the release it finished on kept.
- One rule (setup_state): picked files, and for a game whose setup does
  more than Play, the release its setup finished on. A new release builds
  again; prepare.version no longer counts. A built game needs only the
  files its start reads.
- Files are checked when they're picked, never again on Play.
- Picks made in Easy Setup wait there until a setup with them works. The
  snapshot and its put-back are gone.
- New shared keys never un-set another game.
- The fingerprint code is gone, and with it the "The selected files
  changed" failure at the end of a run.
- Free Up Space is offered only when a new release can build without the
  files: a setup step that keeps what it needs, or an unpacked disc.

Library format 3 moves game_copy and update_copy into setup_inputs, and
keeps how a game was set up for one read with its profile, so a game set
up on its current release isn't built again for this launcher.
prepare.timeout (five minutes unless set) killed full builds on a Steam
Deck or an older PC every time. The step now runs as long as it needs,
is given up on only after an hour without printing anything, and Cancel
still stops it. prepare.timeout leaves the schema and the guide; one in
a manifest is ignored.
A dump the player moved or deleted left a junction or symlink in the
game's folder pointing nowhere. It counted as there, so the game failed
and picking the copy again changed nothing. Now such a link counts as
missing, and placing takes it away (the link, never what it pointed to)
and links the copy picked now. Files the launcher didn't place stay.
run_prepare started the setup program directly, so a Windows-only
release with a builder (.exe, .bat) failed with "Couldn't run its setup
program" on Linux and the Steam Deck every time, even with Play With
Proton on. It now runs through the same Proton the game plays with, and
the paths it gets for the player's files, its data folder and its temp
folder are Windows paths, as Play gives them.
Every new release of a game with a setup step builds again now. Play
does it in its Finish the Update window. With this setting on (Settings,
Updates), an automatic update builds straight away in the background,
but only when nothing has to be asked: the player's files are still
there (or the step builds from what it kept), and the update added no
option to answer.
They were added for the store's catalog profiles: one catalog goes to
every launcher, and boot::fit leaves out what an older one lacks. A
developer's recomplauncher.json ships in its own release, and the
launcher never read them from it. They're out of the schema and the
guide; the dev check says they're ignored and can be deleted, and the
catalog keeps using them.
A manifest with game gets its file back with game (and game.update)
moved into inputs, {game} written as {input:game}, and what's ignored now
left out (prepare.version, prepare.timeout, requires, min), with a Copy
button, ready for the next release. prepare.version is said to be
ignored: every new release builds again by itself. With RL_CORPUS, every
developer manifest is converted and read back as the same profile.
For a .cue whose label doesn't name .cue, {game} was the disc's first
data track, but {input:game} filled in with the sheet itself. The main
input's path now goes through the same rule, so the two read the same.
…on leave

The guide's Launch section, its examples and the two example manifests
ask for the player's copy as the input game, with {input:game}. game
stays in the schema only as deprecated (it still reads, as that input),
and prepare.version leaves it: every new release builds again, which
the guide now says. SETUP-INPUTS.md describes what's kept now (the
picks and the release a setup finished on) instead of the fingerprint.
…screens go

The setup screen's big box is the game's main input (with its own file
types for the picker), and every other file it asks for, the update
included, is a row under it, picked like the rest. The update's own
stage, card and buttons, desktop and Big Picture, are gone. Before you
play lists each required file the game asks for. New texts are in every
language; the ones no longer used are out.
…n Play

It had no release mark, so Play opened Easy Setup as for a game never
set up. It's now marked as set up before this launcher, which isn't the
installed release, so Play builds it again in the Finish the Update
window, as after any new release.
After an update, a game set up before showed "Insert it" for its copy,
which was still picked: only a new build was due. It shows the copy it's
set up with, as before the update.
…ld Now

The switch is in each game's Manage tab (for a game whose new release
builds again), not in Settings. Builds after updates wait in a queue
and run one at a time, never beside another setup. After an update that
needs a build, the toast offers Build Now, and so does the game's menu
while it's due: it joins the queue, or opens Finish the Update when
something has to be asked first.
The schema, the guide and the Developer tab say so, so projects move
their copy to inputs before then.
The updated toast and the game's menu no longer offer Build Now. A game
whose Build Again After Updates is on starts its build as soon as the
update has downloaded (when nothing has to be asked); any other game
builds when the player presses Play.
…aiting ones as Queued rows

The big card with its speed graph and the Up Next list become one Downloading list, as in the
mockup: the download that's moving is a row with its progress, what it's doing and the time left,
Pause and a cancel cross; each one waiting its turn is a quiet row that says Queued, with its own
cross. Pause all in the list's header pauses whatever can be paused, the waiting ones first so
none starts when the moving one stops.
…e Downloading list

The Downloading list shows what elripalda#429's Build Again After Updates does: a game building right after
its update is a moving row ("Building the game · 40%", its bar, a cross that stops the build), an
update held back for it says "Waiting for the build before it", and a game queued to build says
"Waiting to build".

Closer to the mockup: small art and tight rows, small section titles, and one line on a moving
download ("Update to v1.2.0 · 72 MB of 148 MB · 48 MB/s · 2 sec left") over a thin bar. A waiting
download says what it will be (Update to v1.4.0, or Install) instead of repeating that it waits.
The totals line under the title is gone, each download shows its own numbers, and Recent rows keep
only the store's Safe pill, not "Checksum matched" on every row.
…l when a build after an update finishes

The moving download, a build and each queued update show the store's check of the version they're
getting, as Updates ready does (a first install doesn't know its version yet). When the build after
an update finishes, in the background or from Finish the Update, the launcher remembers the version
it built (ui.built_after), and that update's row in Recent gets a violet Built pill that explains
itself on hover.
@Xarishark

Copy link
Copy Markdown
Collaborator Author

Replaced by #431, which merged the same changes on top of #429.

@Xarishark Xarishark closed this Nov 22, 2026
@Xarishark
Xarishark deleted the feat/downloads-list-like-mock 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.

1 participant