Skip to content

fix(android): Focus board widget shows every item that fits - #111

Merged
lukr-99 merged 1 commit into
mainfrom
claude/focus-widget-fill-3cb0a4
Nov 24, 2026
Merged

lukr-99 merged 1 commit into
mainfrom
claude/focus-widget-fill-3cb0a4

Conversation

@lukr-99

@lukr-99 lukr-99 commented Nov 24, 2026

Copy link
Copy Markdown
Owner

GoalMaker: GM-118

Owner: "for goalmaker android the focus board widget doesnt seem to display everything it can only 4 top on focus board even if the widget has enough space"

What was wrong

The widget cut the board at 8 rows and drew them in a plain Column, so it never used a taller widget and never scrolled.

Fix

  • SizeMode.Exact and a scrolling LazyColumn of the whole board (up to 60 items), same order as FocusBoardRules (rules and Windows contract untouched).
  • WidgetContent.focusFit works out how many rows fit the real height. When items are out of sight, a "+N more" line shows under the list and opens the app. Rows and the background open the app as before.
  • Unit tests for focusFit and two Robolectric layout tests (scrolling list plus "+N more", and no line when all fit). docs/widgets.md has a Focus Board section.

Tests

Kiln ci.yml run 20261124-120232-2b5891: succeeded. Local testDebugUnitTest assembleDebug lintDebug: green.

Screenshots

Before and after screenshots are not attached: no emulator with a signed-in seeded stack was available in this session.

Manual test list

  • Place the Focus Board widget with 10+ items on the board; stretch it tall: more rows appear.
  • Shrink it: fewer rows, and "+N more" shows the hidden count.
  • Scroll the list inside the widget; tap a row, the "+N more" line and the background: each opens the app.
  • Board of 2 items in a tall widget: no "+N more" line. Empty board: "Nothing on your board."
  • Check light and dark themes.

Copilot AI balanced review requested due to automatic review settings November 24, 2026 12:06

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@lukr-99
lukr-99 merged commit 436f9a3 into main Nov 24, 2026
7 checks passed
@lukr-99
lukr-99 deleted the claude/focus-widget-fill-3cb0a4 branch November 24, 2026 12:26
@lukr-99 lukr-99 mentioned this pull request Nov 24, 2026
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