Skip to content

Big Picture: pick a release's build with the controller - #469

Merged
elripalda merged 1 commit into
elripalda:mainfrom
AngeloAscheri:tv-pick-build
Nov 24, 2026
Merged

elripalda merged 1 commit into
elripalda:mainfrom
AngeloAscheri:tv-pick-build

Conversation

@AngeloAscheri

@AngeloAscheri AngeloAscheri commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

In Big Picture, installing a recomp whose release has more than one build for this PC (DKB has a Linux folder and a Windows zip) asked which one with the desktop's dialog. With a controller only the highlighted build could be picked, and nothing said that A would pick it; choosing the other one needed a mouse.

Why

pickBuild in app.js hands the choice to window.tvPickBuild when it's there, and tests/install-version.test.cjs mocks it, but tv.js never defined it, so it always fell back to the desktop dialog.

What changed

  • ui/tv.js: window.tvPickBuild is a sheet, built like tvLocation (Where Should It Go): each build with its kind and file name, the usual one tagged Usual, Cancel at the end. It starts on the build the game has now (Change Build), else the usual one, the same ones the desktop dialog lights. It reuses the desktop dialog's strings, so there's nothing new to translate.
  • tests/tv-dialogs.test.cjs: a test that the sheet is there, and one that every window.tvXxx hook app.js asks for is defined in tv.js. tvPickBuild was the only one missing; this keeps it from happening again.

Testing

  • On Bazzite (KDE Wayland, RX 6700 XT, 1440p), Big Picture, Donkey Kong Bananza → Install: the sheet opens on the left, the d-pad moves between Linux Folder and Windows Build, A installs the one picked, B and Cancel close it.
  • node --test tests/*.test.cjs passes. Both new tests fail without the change.

Related: #470 makes any other desktop dialog that shows in Big Picture usable with the d-pad.

🤖 Generated with Claude Code

A release with more than one build for this PC (a Linux folder and a Windows zip, or one per
region) asked which to install with the desktop's dialog, even in Big Picture: app.js hands the
choice to window.tvPickBuild, which tv.js never had. With a controller only the highlighted
build could be picked, and nothing said that A would pick it.

It's a sheet now, like Where Should It Go: each build with its kind and file, the usual one
marked, starting on the build it has now (Change Build) or the usual one, and Cancel.

A test checks that every Big Picture hook app.js asks for is there in tv.js.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@Xarishark Xarishark left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All notes resolved and CI passed. Approving.

@elripalda
elripalda merged commit b803587 into elripalda:main Nov 24, 2026
6 checks passed
@AngeloAscheri
AngeloAscheri deleted the tv-pick-build branch November 25, 2026 21:24
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.

3 participants