You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 347c50a
Browse filesBrowse the repository at this point in the historyBrowse files
K2GO-426 feat(modules): show each module icon and align rows with a fixed 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.
// ADFA-5104: no tick on an installed module. There is nothing to schedule — installing it
426
-
// again is not an action the app offers, and a checkbox that does nothing is worse than
427
-
// no checkbox. The row still opens its detail, which is where "what is this" lives.
428
-
// ADFA-5104: and no tick when the flags could not be read either. Ticking would bank an
429
-
// order we have no grounds to take.
464
+
// ADFA-5104: no tick on an installed module (nothing to schedule; a checkbox that does
465
+
// nothing is worse than none), nor when the flags could not be read. K2GO-426: the leading
466
+
// slot is a fixed-width bullet either way: the checkbox when the module is selectable, else
467
+
// the module icon, so installed and not-installed rows share one indentation.
430
468
if (!isInstalled && !unknown && !failed && !c.hasSelector) { // ADFA-4958: tick to schedule several at once (maps uses its own selector). ADFA-4898: a failed module shows Retry, not the checkbox.
0 commit comments