fix(chain-detail): run the token list under the floating bottom bar - #5985
Conversation
The token list scrolled inside a card that stopped short of the Wallet/DeFi pill, clipping its last row, and the navigator's fade finished on a solid band. The list now fills the screen with the navigator room as scroll padding (the card is drawn per row so it still hugs its rows), and the fade mirrors iOS VultiTabBar: never more than 70% opaque, so content shows through.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: vultisig/vultisig-android/.coderabbit.yaml Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (5)
💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour. 📝 WalkthroughWalkthroughThe chain token list now extends behind the bottom navigator. Its bottom scroll padding lets the final token scroll above the navigator. The navigator fade and Android tests changed, and a debug preview now shows Ethereum tokens beneath the navigator. ChangesChain token list
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The token list changes have no identified merge-blocking issue; the navigator fade’s appearance on other screens remains unverified. 🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (3 warnings)
✅ Passed checks (2 passed)
Full details: Linked Issues checkExplanation The PR satisfies the chain-list objectives in [ Full details: Out of Scope Changes checkExplanation The
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Closes #5961
Ethereum chain detail on a real vault: aEthUSDT and the row below it pass under the Wallet/DeFi pill and the camera button, and show through the fade instead of stopping at a card edge above a solid band.
Summary
LazyColumnused to scroll inside aTopShineContainercard, with the whole column padded byLocalBottomNavigatorPadding, so the card ended 82dp above the bottom and clipped its last row. The list is now the outer scroller (fillMaxSize), and the navigator room iscontentPadding, so rows pass under the bar and the last token can still scroll clear of the pill.VaultAccountsScreen. The bottom system-bar inset otherwise stopped the list 24dp short of the screen edge.BottomFadeEffect(transparent → 100% background) is replaced inBottomNavigatorOverlayby the iOSVultiTabBar.bottomGradientstops: solid from the bottom to halfway, 50% at 85%, clear at the top, all drawn at 0.7 opacity, so it is never solid. This also changes home's fade, on purpose: iOS home uses the sameVultiTabBargradient. The pill and camera button are not moved.BottomFadeEffectitself is untouched (TokenSelectionListstill uses it).Test plan
./gradlew assembleDebugand:app:compileDebugAndroidTestKotlinChainTokensListUnderNavigatorTest(replacesChainTokensListHeightTest): the list reaches the bottom of the window, and the last of 30 tokens scrolls fully above the pillBottomNavigatorOverlayTeststill passesPre-existing and out of scope: once the header collapses, the Tokens tab row sits under the status bar (same on
main).Summary by CodeRabbit
Improvements
Tests