Skip to content

K2GO-426 feat(modules): show each module icon and align rows with a f… - #592

Merged
luisguzman-adfa merged 1 commit into
mainfrom
feat/K2GO-426-module-management-icons
Sep 25, 2026
Merged

luisguzman-adfa merged 1 commit into
mainfrom
feat/K2GO-426-module-management-icons

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

What changed

Module management rows showed a checkbox in the leading slot only for a selectable
module; installed / unknown / failed / selector rows and the Dashboard card had
nothing there, so the left edge was ragged and there was no per-module cue.

The leading slot is now a fixed-width bullet, checkbox XOR icon: the selection
checkbox when the module is selectable, otherwise the module icon (tinted from the
theme primary). Every row's title starts at the same x. Applied to all three list
builders: the module rows (cardRow), the Dashboard (REST API) system card
(addSystemDashboardCard), and the hidden section (addHiddenSection).

  • ModuleCards: map each module's imageRes to its real icon (kolibri -> courses,
    calibreweb -> book, kiwix -> wikipedia, code -> code, forgejo -> forgejo,
    maps -> maps).
  • New ic_card_matomo (Material bar_chart, the glyph the box index already uses for
    the matomo card) and ic_card_dashnode (Material dashboard) for the Dashboard card.
  • Presentational only: no change to install/selection logic.

Verification

Device-verified on a 32-bit build (Samsung A16), light and dark: installed rows show
their icon, selectable rows show the checkbox, and all titles align (module rows,
Dashboard card, and hidden rows); the hidden Restore button is not crowded. Two-pass
code review clean.

…ixed leading slot

Module management rows had a checkbox in the leading slot only when a module was
selectable; installed / unknown / failed / selector rows and the Dashboard card had
nothing there, so the left edge was ragged and there was no per-module cue.

The leading slot is now a fixed-width bullet, checkbox XOR icon: the selection
checkbox when the module is selectable, otherwise the module icon (tinted from the
theme primary). Every row's title starts at the same x. Applies to both the module
rows (cardRow) and the Dashboard (REST API) system card (addSystemDashboardCard).

- ModuleCards: map imageRes to each module's real icon (kolibri->courses,
  calibreweb->book, kiwix->wikipedia, code->code, forgejo->forgejo, maps->maps).
- New ic_card_matomo (Material bar_chart, the glyph the box index already uses) and
  ic_card_dashnode (Material dashboard) for the Dashboard card.
@luisguzman-adfa
luisguzman-adfa merged commit 3f8bf4e into main Sep 25, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the feat/K2GO-426-module-management-icons branch September 25, 2026 16:31
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