Skip to content

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 into
elripalda:mainfrom
Xarishark:feat/patch-notes-drawers-9af7f4
Nov 19, 2026
Merged

elripalda merged 4 commits into
elripalda:mainfrom
Xarishark:feat/patch-notes-drawers-9af7f4

Conversation

@Xarishark

@Xarishark Xarishark commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

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.

  • New relDrawer draws 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.
  • Clicking the header or the arrow only flips a class (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 in S.relOpen while the launcher runs, so tab switches and release-list refreshes don't reset it.
  • A closed drawer's notes are 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".
  • latestRel picks 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, #127a45 in the light theme), apart from Installed's cyan and Pre-release's amber.
  • "Downgrade" is translated in every language file, in the place of the old "Go back to this one" (no longer used, so it's gone from all of them). "Update" and "Latest version" already had translations. en-GB and fr-CA take theirs from English and French.
  • The History list's down arrow moved out of updatesTab as CHEV_D (next to the existing CHEV_L / CHEV_R) so both lists share it.
  • No Rust change. Big Picture draws its own pages and is unchanged.

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.
  • In the running launcher (debug build of this branch, Windows), PrimeRecomp's Updates tab with its live releases:
    • The newest (v0.1.1) opened, the eight older ones started closed and inert, the arrow and the title both toggle, an opened drawer stays open after switching tabs and back, and when the release list refreshed from GitHub the open drawer moved to the new newest release.
    • With v0.1.0 installed: v0.1.1 has the main Update button and the Latest version pill (the sidebar says v0.1.1 too), and v0.0.11 and older say Downgrade.
    • With v0.0.6 as the installed version: v0.1.0 and v0.0.11 also say Update, and v0.0.5 and older say Downgrade.
    • The pill looks right in both the dark and the light theme.
    • Titles stay on one line: v0.0.6's long title ends in "…", every date sits at the right of its title line, and the pill is above v0.1.1's title.

@Xarishark
Xarishark marked this pull request as ready for review November 19, 2026 16:48
@Xarishark
Xarishark marked this pull request as draft November 19, 2026 16:51
@Xarishark Xarishark changed the title A game's Updates tab shows each release as a drawer, with only the newest open A game's Updates tab shows each release as a drawer, newest open, with Upgrade or Downgrade Nov 19, 2026
@Xarishark Xarishark changed the title A game's Updates tab shows each release as a drawer, newest open, with Upgrade or Downgrade A game's Updates tab shows each release as a drawer, newest open, with Update, Downgrade and Latest version Nov 19, 2026
@Xarishark
Xarishark marked this pull request as ready for review November 19, 2026 17:53
@elripalda
elripalda merged commit 7091463 into elripalda:main Nov 19, 2026
6 checks passed
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.
@Xarishark
Xarishark deleted the feat/patch-notes-drawers-9af7f4 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