Skip to content

ADFA-5033: ZIM catalog browse — make it breathe (flat rows, top-N + grouped See-all, one-control language selector) - #345

Merged
luisguzman-adfa merged 2 commits into
mainfrom
feat/ADFA-5033-zim-catalog-browse-breathe
Aug 6, 2026
Merged

luisguzman-adfa merged 2 commits into
mainfrom
feat/ADFA-5033-zim-catalog-browse-breathe

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

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.

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).
@luisguzman-adfa
luisguzman-adfa merged commit 15148fe into main Aug 6, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the feat/ADFA-5033-zim-catalog-browse-breathe branch August 6, 2026 01:18
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.

1 participant