Repository navigation
1.16 part 4/18: Home, Library and Settings in the browser - #175
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-03-strings
branch
from
November 23, 2026 10:07
efa0b56 to
25339b7
Compare
epheterson
force-pushed
the
line/1.16.0-04-home
branch
from
November 23, 2026 10:07
cfb33ea to
ef1e24e
Compare
epheterson
force-pushed
the
line/1.16.0-03-strings
branch
from
November 23, 2026 10:51
25339b7 to
c25f54c
Compare
epheterson
force-pushed
the
line/1.16.0-04-home
branch
2 times, most recently
from
November 23, 2026 16:37
581db33 to
958e666
Compare
epheterson
force-pushed
the
line/1.16.0-03-strings
branch
2 times, most recently
from
November 23, 2026 16:44
1a57b2d to
3bc60c8
Compare
epheterson
force-pushed
the
line/1.16.0-04-home
branch
from
November 23, 2026 16:44
958e666 to
bb63006
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 4 of 18 of Zimi 1.16.0: Home, Library and Settings in the browser. Base:
line/1.16.0-03-strings(part 3); 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 browser side of Home, the Library and Settings: Home's layout at every width, one menu on every tile, row and card, touch targets of 44 px, no flash while Home boots, and the Almanac's files and words kept off Home's first load. It also holds Settings' new panels (Add-ons, Ready for offline, Deep check, the debug log switch, Library tidy). The server side of these panels is in parts 1 and 2.
What changes
zimi/static/app.js: Home's layout (Discover, then apps as launcher squares, then Favorites and the Library), the ⋯ menu and About sheet on every tile, row and card (_cardMoreHtml,_openZimAbout,_ziPopfor Back and focus return), Discover's language badge, the "Did you mean" and no-result suggestion lines (applyDidYouMean,_suggestSheet), and the app About sheets.zimi/static/app.js, Almanac loading:_i18nFetch,_mergeAlmanacWordsand_loadAlmanacWordsfetchi18n/almanac/<lang>.jsononly when the Almanac's first file runs._almAssetadds?v=<content hash>from__ZIMI_CONFIG.assets. The Moon's map loads in steps (_moonLoadMidMap,_moonLoadHiMapNow) and not until the Almanac opens.zimi/static/manage.js: Settings panels for Add-ons (_addonsListHtml,_addonAct), Ready for offline (_renderOfflineReady), Deep check and the quick health check with Cancel (runDeepCheck,runLibraryHealth), a debug log switch, merge-or-replace on restoring data (_askReplace), Library tidy and older copies (_renderOlderCopies), and a per-ZIM auto-update switch. A reload returns to the same tab and filters (_syncManageUrl,_applyManageDeepLink).zimi/static/app.css: 1,486 changed lines. The layout in one to four columns, compact tiles that fit names up to three lines, the hit-area boxes for controls drawn under 44 px (a transparent::afterin the coarse-pointer block), and the red night theme for the new surfaces.zimi/static/tokens.css(new): one scale for type, radius, spacing, touch and motion, plus the shared neutrals and amber. The server inlines it in the shell's head and in front ofapps.css, so it costs no request.zimi/static/zimifooter.jsandzimifooter.css(new): the "Zimi · Powered by Kiwix" line, one function drawn the same on Home, the Games and the Almanac.zimi/templates/index.html: an inline script that sets the bar's first paint to what Home settles on (no re-layout on boot), preload links for the Almanac's files when the address is#almanac,alm-3d-bootfor a reload into the 3D view, and the tokens and footer placeholders.tests/hit_area.pyandtests/hit_probe.jsas the shared probe.How to review
_loadAlmanacWordsand_i18nFetchinzimi/static/app.js: one load per language, dropped on failure so the next ask retries, and the kept copy inlocalStorageas the offline answer. A wrong key split shows as a raw key name in a teaser card.zimi/templates/index.html's boot script: it runs before the boot code and must set only whatupdateTopbarsets, or the bar flashes again.app.css's coarse-pointer block, the ⋯ menu'shistoryentry in_ziPop: Back closes the sheet before leaving the page).tests/test_perf_budgets.py(part 17) holds the budget; check no new request is added before first paint.manage.jsactions that start downloads or installs (_addonInstall,_offlineGetAll) go through the admin routes in parts 1 and 2; check each is admin-only there.app.cssbeyond the first read; its hunks are layout and theme rules each covered by a browser test.zimi/static/app.jsis in part 1's diff (the Almanac ZIM's build reads named functions from it); the app.js changes listed here are reviewed there.tests/test_i18n_split.py(guards part 3's split and reads Home's scripts as they are at this tip), and small edits totests/test_books_page.cjs,tests/test_tube_surface.cjs,tests/test_wiki.pyand other tests that assert on strings or markup landing here.Tests
tests/test_home_layout_live.py,tests/test_compact_tiles_live.py.tests/test_touch_areas_live.pyandtests/test_hit_areas_browser.pymeasure whatelementFromPointhands a finger; the count of controls under 44 px can only go down.tests/test_home_more_menu.py.tests/test_home_boot_flash_live.pysamples every frame of a cold and warm load;tests/test_design_tokens.pychecks tokens are declared once.tests/test_library_tidy.py,tests/test_manage_row_auto_update.cjs,tests/test_addons_row_browser.py,tests/test_settings_*.tests/test_i18n_split.py: Home keeps every key its code names.