Skip to content

fix(app): make Offline Sync storage cards readable in light and dark mode - #20419

Merged
Git-on-my-level merged 2 commits into
BasedHardware:mainfrom
apoorvdarshan:fix/mobile-light-storage-contrast
Oct 3, 2026
Merged

Git-on-my-level merged 2 commits into
BasedHardware:mainfrom
apoorvdarshan:fix/mobile-light-storage-contrast

Conversation

@apoorvdarshan

@apoorvdarshan apoorvdarshan commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Offline Sync’s Manage Storage sheet mixed fixed dark card backgrounds with palette-dependent text, making category labels unreadable in light appearance and secondary labels too faint in dark appearance. Resolve card, badge, title and secondary text colors together for both themes.

The extracted production OfflineSyncStorageSheet retains the page’s existing counts, confirmation dialogs and deletion handlers. Category Clear actions use OmiButton.secondary for readable primary text and a 48pt tap target. Titles truncate beside the count; actions move below the details on narrow sheets or enlarged text.

Screenshots

Captured on the connected iPhone 16 and Android LAVA LZG411 using separate debug app identities. The isolated target renders the production storage sheet and existing Home empty-state widget, with zero counts or inert sample counts (2 synced / 3 pending). Before uses the original storage row; after runs the fix. The surrounding fixture is not the complete Offline Sync or Home page, and no auth, sync or recording operation is exercised.

Platform Light before Light after Dark after
iOS · iPhone 16 iOS · iPhone 16 before iOS · iPhone 16 after iOS · iPhone 16 dark-after
Android · LAVA LZG411 Android · LAVA LZG411 before Android · LAVA LZG411 after Android · LAVA LZG411 dark-after

Nonzero counts show the reviewed Clear actions:

Platform Light after Dark after
iOS · iPhone 16 iOS · iPhone 16 actions-after iOS · iPhone 16 actions-dark-after
Android · LAVA LZG411 Android · LAVA LZG411 actions-after Android · LAVA LZG411 actions-dark-after

The Home empty-state defect already has a merged fix in #20047. Its existing production widget was checked in both themes; this PR does not change Home behavior.

Validation

  • Seven focused widget tests passed: category/title/subtitle/count contrast in both themes, zero-count eligibility, nonzero callbacks, and a 320px French sheet at 2× text scaling with contrast, minimum target size and reachability checks. The original row fails the contrast guard (light title 1.47:1, dark subtitle 3.10:1).
  • Physical iOS and Android debug captures visually verified in both themes. Native iOS button bounds confirm 48pt category targets. Only the isolated development apps were installed, then removed; production apps and data were retained and reopened.
  • The local iOS fixture artifact omitted the unused unsigned Watch payload after the native app compiled; no native project or signing configuration change is included in this PR.
  • Pinned Flutter 3.44.5 / Dart 3.12.2 analyzer ratchet passed with no baseline changes.
  • Full TZ=UTC bash app/test.sh --concurrency=4 --reporter expanded: 3,929 tests passed, exit code 0, plus the 138-test protected spine.
  • make preflight: all 24 selected checks passed. Draft-body preflight: 23 checks passed. Bounded pre-push gate passed; df970edef3 is pushed.
  • All three review findings were fixed, replied to and resolved.

Failure class

Failure-Class: new

FC-offline-storage-mixed-palette records the mixed palette/card-background failure introduced by #19378 and the executable production-sheet contrast guard.

Product invariants affected

none

Resolve storage cards, labels and badges from one palette. Keep the production clear handlers and verify readable labels/counts, empty Home visibility and clear eligibility with executed widget tests.

Failure-Class: new

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 6 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Use the shared button for readable labels and minimum tap targets; contain localized titles and move actions below details on narrow or enlarged layouts.

Failure-Class: new
@Git-on-my-level
Git-on-my-level merged commit 004dbe3 into BasedHardware:main Oct 3, 2026
38 checks passed
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.

2 participants