Skip to content

Let the last row of FAB lists scroll above the button - #88

Merged
dadachi merged 1 commit into
mainfrom
fix/port-myturntag-2.1.0-smoke-fixes
Oct 16, 2026
Merged

dadachi merged 1 commit into
mainfrom
fix/port-myturntag-2.1.0-smoke-fixes

Conversation

@dadachi

@dadachi dadachi commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Ported from MyTurnTag Creator Android's 2.1.0 smoke-test fixes.

Change

  • New ui/common/FabClearance.kt: FabClearance = 96.dp (SubmitFab's 64.dp + the Scaffold's 16.dp FAB margin + 16.dp clearance), fabListModifier (the lists' 24.dp margin minus the bottom) and fabClearingContentPadding.
  • ShopListView and ItemTagListView (the two lists with a floating action button) use them, so their last row and its swipe-revealed Delete button can scroll above the + button.

Test

  • ItemTagListViewModelTest.lastRow_scrollsAboveTheAddButton: 20 tags, scroll to the last one, and assert that its bottom is at or above the add button's top. Before the fix it failed (last row ends at 445.0.dp, the add button starts at 398.0.dp); it passes with the fix.

Not ported (already in place here)

  • Permissions lost after the first sign-in: this repo already runs the sign-in bootstrap in the @ApplicationScope through SessionLifecycle, and SignInEmailAndPasswordViewModelTest.login_whenTheScreenClosesMidBootstrap_stillStoresThePermissionsAndSyncsTheLocale covers it.
  • Password-required messages and English sentences: sign-in/sign-up already show password_is_required and Change Password shows new_password_is_required. The two "email ... has been sent" sentences already read correctly, and there is no Tag Number help string.

Local checks: scripts/pre-push (Spotless, lint, release R8, tests) passed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Y3Tt4YrVgQRxh5MCpiiric

The last row of Manage Item Tags (and the Delete button its swipe reveals)
stayed under the + button, because the list had no bottom content padding.
The lists with a floating action button (Shops, Manage Item Tags) now end
with bottom content padding that clears it (FabClearance), as in
MyTurnTag Creator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y3Tt4YrVgQRxh5MCpiiric
@dadachi
dadachi merged commit f4a3244 into main Oct 16, 2026
1 check passed
@dadachi
dadachi deleted the fix/port-myturntag-2.1.0-smoke-fixes branch October 16, 2026 23:23
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