Repository navigation
1.16 part 6/18: Games: shelf, bar, rooms and the shared kits - #177
Closed
epheterson wants to merge 1 commit into
Closed
epheterson wants to merge 1 commit into
epheterson wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Sorry @epheterson, your pull request is larger than the review limit of 150,000 diff characters |
Merged
epheterson
force-pushed
the
line/1.16.0-05-reader-offline
branch
from
November 23, 2026 10:07
8d887d4 to
f2b5371
Compare
epheterson
force-pushed
the
line/1.16.0-06-games-shell
branch
from
November 23, 2026 10:07
a62cf60 to
466db92
Compare
epheterson
force-pushed
the
line/1.16.0-05-reader-offline
branch
from
November 23, 2026 10:51
f2b5371 to
a580fe5
Compare
epheterson
force-pushed
the
line/1.16.0-06-games-shell
branch
from
November 23, 2026 10:51
466db92 to
5ecfc10
Compare
epheterson
force-pushed
the
line/1.16.0-05-reader-offline
branch
from
November 23, 2026 16:37
a580fe5 to
7099487
Compare
epheterson
force-pushed
the
line/1.16.0-06-games-shell
branch
from
November 23, 2026 16:37
5ecfc10 to
5d1459a
Compare
epheterson
force-pushed
the
line/1.16.0-05-reader-offline
branch
from
November 23, 2026 16:44
7099487 to
f6877ee
Compare
epheterson
force-pushed
the
line/1.16.0-06-games-shell
branch
from
November 23, 2026 16:44
5d1459a to
77c8a8e
Compare
Owner
Author
|
Reviewed here; included in the release PR #189. |
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.
Part 6 of 18 of Zimi 1.16.0: Games: shelf, bar, rooms and the shared kits. Base:
line/1.16.0-05-reader-offline(part 5); the diff shows only this part's files. The PR carries thenot-a-releaselabel and the version stays 1.15.7, so merging it cuts no release. Merge in order (1 to 17, then 18) with a merge commit, not a squash.What this is
The ZimiGames shelf, the shared bar and menu, the new Rooms, and the shared kits that every game page loads. It also lists the 25 games whose pages land in parts 7 and 8, and makes the shelf's card (
zimi/gamelinks.py) follow Zimi's language. Later parts build on this shell.What changes
shell.js: Rooms are defined once (All, Kids, Arcade, Night, Solo), each with a name key, a filter overgames.json, a favorites list and a light and a dark token set. The room is kept in the page hash (#lang=fr&room=kids), so Back and a bookmark return to it, and a game opened from a tile carries it.shell.js:fillKiwixViewersizes the game's frame to the bottom of the window inside a real kiwix-serve viewer, which leaves a white strip when its toolbar slides away.shell.js:followRedfollows the shell's Red night theme (zimi_app_theme; absent in Kiwix); a long stat goes on a second line; a card sound is added; the haptic buzz waits for a tap; the How to play pane has one shape for every game.shelf.jsandrecent.js: the shelf opens on the table, then World favorites, then a Featured row (featuredPicks: a seeded pick by day, half from the newest third ofgames.json), then the rest. A room filters each row and drops an empty one.recent.jsretriesgames.jsonand draws the table and World favorites without waiting for it.recent.js:mouseRow(chevrons and a sideways wheel) andmouseDrag(press and drag, with the click that ends a drag swallowed) make the rows usable with a mouse.games.json: 25 rows added, each withadded: "1.16".build_games_shelf.jsandgames_tile_art.jsdraw their tile art.games.css: styles for rooms, the table and the mouse rows;board.css,boardui.css,play.css,passkit.cssandroundkit.csscarry small matching edits.handoff.js: the Players rows remember the chosen seat kinds at once (chooseKind); the live game takes them at the next deal.text.jsandtext/<lang>.json(ten languages): the games' string table behindT(); the JSON is reindented, so nearly every line shows as changed.thumbs/*.svg: shelf art for the 25 new games and redrawn art for card games.gamelinks.py:_cardandday_cardtake a language and use the games' own title, why and blurb strings where they exist;almanac_3d_linksandalmanac_viewgive an article its Almanac 3D view address from a closed Q-ID set read once fromstatic/earth.zimihome.jsis deleted;index.htmladds autil.jsscript tag and carries the new tile sprites;zimi.txtrenames the ZIM's title to "Zimi Games".How to review
shell.js(ROOMS,roomCss,roomOfPage,followRed,fillKiwixViewer): a room only swaps custom properties and no game's CSS names a room. Thenrecent.js(mouseDrag,featuredPicks,rowsWithRetry) andgamelinks.py(almanac_3d_links).mouseDragmust not swallow a real click or break touch;rowsWithRetrymust stop after its tries;almanac_viewruns on the article-link request path (http.py) and does a Q-ID lookup per call.index.html, the tile bodies inbuild_games_shelf.js,text/*.json,thumbs/*.svgand thegames.jsonrows are data. The shelf tiles are made byscripts/build_games_shelf.js.tests/test_ownzims.pyasserts on the ZIM title "Zimi Games"; its freshness check now runs only whenZIMI_OWN_ZIMS_FRESHis set (CI sets it for a PR into main). The Almanac page still loadszimihome.jsuntil part 12.Tests
test_games_rooms_theme.pyholds every room's text pairs to WCAG AA from the token values;test_games_rooms_theme_browser.py(browser) drives the rooms, hash and Back.test_games_rows_mouse_browser.py,test_games_one_grid.py,test_games_menu_grid.py,test_games_catalog_polish.py, and the nodetest_games_recent.cjscover the mouse rows, the Featured row and the table.test_games_bar_stable.py,test_games_bar_title_browser.py,test_games_dock_browser.py,test_games_finished_reload_browser.py,test_games_pa_menu.py.test_games_follow_language.pyandtest_games_text_vars.py(every{placeholder}has a value at its call site).test_games_persist_browser.py,test_games_learn_more.py,test_games_library_more.py,test_games_markers_browser.py.