Stores: the pad keeps its place on the game page, and no template keys in a description

A card opening its page took the pad's focus with it, so the next press
landed on the rail. Each move on the page now says where focus goes:
the game page's main action (or its back link), the card the page was
opened from on the way back, the first card after a tab or chip change;
the page is a focus group, so Left is the way to the rail.

GOG's account endpoints return template keys (product_description_<id>)
for some products, and the v2 record repeats them. Store text now has
those keys dropped, tags stripped and entities decoded; the library
tries the product's lead, then the v2 overview and description, and shows
nothing when all are templates. Epic's and Amazon's text is cleaned too.
This commit is contained in:
The412Banner committed 2026-10-08 18:19:40 -04:00
1 parent 9f5a2f39cd
commit fd0c6f124f
7 files changed
+94 -20

No files matched your search

+10
View File
@@ -80,6 +80,16 @@ without it and Setup says "Stores engine not built").
places `cover.jpg`, `hero.jpg` and `header.jpg` in the game folder, re-encoded as opaque JPEGs
over a dark ground, under the names `AddedGameArt` looks for - so the Games tab and the client's
grid (through the listing) get real art for store games.
- **Device feedback on `9f5a2f3` (GOG › DOOM I Enhanced page):** (1) the pad lost focus when a
card opened its page (the card left composition; the next press landed on the rail). The page
now follows the Flathub store's pattern: a focus move is recorded on each change and
`focusWithinFrames` lands it - the game page's main action (or its back link), the card the page
was opened from on the way back, the first card after a tab or chip change (`firstTile`); the
page is a `focusGroup`, so Left is the way to the rail. (2) GOG's account endpoints return
template keys (`product_description_2015545325<br>product_feature_…`) for some products; the
v2 record has the same keys for them. `cleanStoreText` drops those keys, strips tags, decodes
entities; the library tries the product's lead, then v2 `overview`, then v2 `description`, and
shows nothing when all are templates. Epic's and Amazon's text goes through the same cleaner.
- Status: compiles on CI with the JVM and python tests green; nothing device-tested yet - the
sign-in pages, a real install, the shortcut landing in the client and the .bat launch under Proton
are the first things to prove on hardware.