Skip to content

UI audit: fix squeezed layouts and loading flicker across screens - #36

Merged
gabrielbr merged 5 commits into
mainfrom
ccr-67ccb970-dqwwqd
Oct 22, 2026
Merged

gabrielbr merged 5 commits into
mainfrom
ccr-67ccb970-dqwwqd

Conversation

@gabrielbr

Copy link
Copy Markdown
Owner

Audit of every screen for layout breakage (made worse by longer Portuguese strings) and loading flicker.

Layout

  • Unweighted siblings in Rows (chips, trailing buttons, toggles) are now bounded with widthIn(max), maxLines and ellipsis, or the main text takes weight(1f). This fixes the Drinks plan chip that was squeezed to one character per line.
  • Button and chip rows that can overflow now wrap (FlowRow). Drinks one-tap buttons are the same height.
  • Bottom nav labels: 11sp on one line, with ellipsis.

Flicker

  • 16 Room flows that were rebuilt on every recomposition are now remembered.
  • Loading is distinguished from empty: loaded flags on Sleep, Vitals and Activity workouts, Optional/null initial values, and same-size placeholders. "No workouts", "No data" and similar empty states no longer flash before data arrives.
  • Previous values are kept while reloading (coach plan, settings device card, battery chart).

i18n

  • Wrapped the remaining labels in tr() and added their pt-BR entries.
  • Localized lists are now getters, so they follow a language change.

Generated by Claude Code

@gabrielbr
gabrielbr merged commit a89e490 into main Oct 22, 2026
2 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