Skip to content

ADFA-4958: show install size in the action sheet; maps/matomo size labels - #316

Merged
luisguzman-adfa merged 4 commits into
mainfrom
fix/ADFA-4958-sheet-size-subtitle
Jul 31, 2026
Merged

ADFA-4958: show install size in the action sheet; maps/matomo size labels#316
luisguzman-adfa merged 4 commits into
mainfrom
fix/ADFA-4958-sheet-size-subtitle

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

Follow-up to ADFA-4958 (merged). Rounds out the module-size story: every module now shows a size, and the action sheet carries it.

What changed

  • Action sheet header subtitle is now "project · state · size" (spec §5.3); it was "project · state".
  • maps: curated size floor "200 MB+". Its footprint depends on the layers/levels the user picks and grows steeply, so a single measured value would mislead; shown without "≈" since "+" already means "and up".
  • matomo: curated size "≈ 114 MB" (manual install measurement — includes MariaDB + the Matomo tarball; it is not reported in the build log, so it can't be auto-captured yet).
  • matomo also gets a "Demo" chip on the detail (ModuleCards.isDemo): it runs, but it's a demo/example module, not a production feature.

Result: kolibri / calibreweb / kiwix / code keep their measured "≈ …"; maps "200 MB+"; matomo "≈ 114 MB".

Scope: labels/format only — no routing or behavior change. UI verifiable in dark and light on the module detail and the action sheet.

…§5.3)

The module action sheet header subtitle was "project · state"; the handoff §5.3
asks for "project · state · size". Append "≈ <size>" from the existing
ModuleSizes/ByteFormatter (same source as the detail chip); omitted when the
size is unknown (matomo/maps). Wording/format only, no behavior change.
maps has no single install size — its footprint depends on the layers/levels the
user selects and grows steeply. Instead of "NA", show a curated floor "200 MB+"
(ModuleCards.sizeLabelRes) in both the detail size chip and the action-sheet
subtitle. The "+" conveys the floor, so the chip drops the "≈" prefix for maps.
Measured modules are unchanged.
- matomo gets a curated size "≈ 114 MB" (from a manual install measurement; incl.
  MariaDB + the Matomo tarball). Now every module shows a size: kolibri/calibreweb/
  kiwix/code measured, maps "200 MB+", matomo "≈ 114 MB".
- matomo is a demo/example module (runs, but not a real production feature): the
  detail shows a "Demo" chip (ModuleCards.isDemo). Label only, no behavior change.
…isible)

The size/version chips (and the HIDDEN → Restore pill) used k2go_chip_bg, a solid
teal fill, with teal text on top — so the text was invisible (empty teal pills).
That drawable is the "selected" filled pill used elsewhere, so leave it as is and
make these render as outlined pills instead (transparent fill, colored stroke +
text), per the handoff (§5.4 chips, §5.7 Restore). Runs offline / Demo were
already legible; now size, version and Restore are too.
@luisguzman-adfa
luisguzman-adfa merged commit d70d28e into main Jul 31, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the fix/ADFA-4958-sheet-size-subtitle branch July 31, 2026 16:04
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