Repository navigation
A game's Updates tab shows each release as a drawer, newest open, with Update, Downgrade and Latest version - #323
Merged
elripalda merged 4 commits intoNov 19, 2026
Conversation
Xarishark
marked this pull request as ready for review
November 19, 2026 16:48
Xarishark
marked this pull request as draft
November 19, 2026 16:51
Xarishark
marked this pull request as ready for review
November 19, 2026 17:53
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.
On a game's Updates tab, each release is now a drawer. Only the newest one starts open, so the latest notes are right there and older ones no longer push them down the page. Each release's button also says which way it goes from the installed version: Update for a newer one, Downgrade for an older one. Before, every release but the newest said "Go back to this one", which was wrong for a release newer than the installed one. The release the game page calls its latest version carries a Latest version pill.
relDrawerdraws one release. Its header is one line: the title (cut short with "…" when it's too long, the full title in a tooltip and in the notes), the Pre-release tag, then the date on the right, next to the release's button or tag (relState). The Latest version pill sits above the title, so every title line looks the same.toggleRel), so the drawer slides like the ones in Downloads › History and the rest of the tab doesn't redraw. What the player opens or closes is kept inS.relOpenwhile the launcher runs, so tab switches and release-list refreshes don't reset it.inert, so neither Tab nor the controller lands on links you can't see.relState: the update on offer is still the main (highlighted) Update button. Still being checked / No build for your system / Installed are unchanged. Any other release above the installed one in the list (newest first) gets a plain Update button, below it Downgrade. When the installed version isn't in the list (a local build, a release since taken down) it keeps "Install this one".latestRelpicks the release for the pill: the one whose tag matches the store's version (the same value as the sidebar's Latest version line, so the two agree), else the newest release that isn't a pre-release, as GitHub does. The pill is green (#3ddc97,#127a45in the light theme), apart from Installed's cyan and Pre-release's amber.updatesTabasCHEV_D(next to the existingCHEV_L/CHEV_R) so both lists share it.Testing
tests/updates-tab.test.cjs: five new tests (an older release offers Downgrade; a newer one not on offer offers a plain Update; the one on offer is the main Update button; the pill goes on the release the store names; with no store version, on the newest that isn't a pre-release). All seven pass.node --test tests/: 9 tests fail, and the same 9 fail on main without this change (run on Windows, CRLF checkout).tools/launcher-i18n.py --check: the same output before and after this change, so nothing new is reported, and the old string isn't flagged as unused.