Repository navigation
ADFA-5033: ZIM catalog browse — make it breathe (flat rows, top-N + grouped See-all, one-control language selector) - #345
Merged
Conversation
Category index (ZimLandingFragment): a "MOST CONTENT" top-6 + "See all N
categories" default, a grouped See-all with theme section headers, theme
filter chips on one horizontally-scrollable line (never wraps; ≥48dp
targets), flat hairline rows with a right-aligned count column instead of
per-row cards, and unavailable categories collapsed out of the flow
(muted line / single collapsed row) instead of greyed in place.
Category detail (ZimCategoryFragment): flat item rows with a hairline
between them — the only rounded/filled shape is the selected row's
highlight (live on tap). The item count moves to its own line with the
list controls ("N items" -> "N results" while searching), dropping the
redundant "<lang> · N" title pill.
Both screens now share ONE language control: a whole-row selector (two
lines, source in Title-Case "From System" / "Manually Selected", caret,
no inner Change button) — resolves the button-in-button.
- KiwixGroups: static category->theme-group map (chip + header labels).
- docs/CATALOG_BROWSE_TEMPLATE.md: the agreed conventions, so Kolibri /
Books reuse this shape instead of reinventing it.
Styling/adherence only — no catalog/data-source change; counts,
availability and ordering still come from KiwixCatalog. New strings are
translatable=false pending design sign-off, then localized.
Localize the 19 new catalog-browse strings into all 33 locales (selector source, MOST CONTENT / group headers + chips, See all, unavailable line/row, and the item count formats); flip them to translatable in the base. Placeholders (%1$d / %2$s) verified consistent across every locale. Also fix lint UseAppTint: the language-selector caret used android:tint; switch both ZIM layouts to app:tint (+ xmlns:app).
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.
What
Redesign the Wikipedia & ZIM catalog browse — the category index (ZimLandingFragment) and the item list inside a category (ZimCategoryFragment) — to read lighter and clearer, per the design boards (k2go-catalog-browse-spec, k2go-language-control-v1, k2go-count-pill-v1, k2go-count-overflow-v1).
Why
The catalog felt like a "sea of content": a wall of chunky category cards, a button-in-button language control, and a redundant language pill. "Breathe" = less weight and clearer hierarchy through alignment, whitespace, grouping and progressive disclosure.
Scope
Index: MOST CONTENT top-6 + See all N categories; grouped See-all with theme headers; theme chips on one scrollable line (no wrap, ≥48dp targets); flat hairline rows with a right-aligned count column; unavailable collapsed out of the flow.
Detail: flat item rows (hairline; selected-only highlight, live on tap); count moved to its own line with the list controls (N items → N results); redundant · N title pill removed. Storage guard preserved.
One-control language selector shared by both screens (whole-row, caret, Title-Case source, no inner Change button).
KiwixGroups static category→group map; docs/CATALOG_BROWSE_TEMPLATE.md capturing the conventions for reuse (Kolibri/Books).
Out of scope / notes
The chip-grouped "editions" view (spec §10 right panel) is not included — the existing By size / A–Z / Grouped views stay; this PR changes their row styling, not the grouping model.
No catalog/data-source change — counts, availability and ordering come from KiwixCatalog.
New strings are translatable="false" while wording is under design review; flip + run l10n at sign-off. A few now-unused strings will be pruned then.