Skip to content

fix: make DeFi positions screen scrollable (#3239)#4029

Merged
johnnyluo merged 1 commit into
mainfrom
aminsato/3239_circle_usdc_amount_overflow
Apr 12, 2026
Merged

fix: make DeFi positions screen scrollable (#3239)#4029
johnnyluo merged 1 commit into
mainfrom
aminsato/3239_circle_usdc_amount_overflow

Conversation

@aminsato
Copy link
Copy Markdown
Collaborator

@aminsato aminsato commented Apr 11, 2026

Summary

  • Adds vertical scroll to BaseDeFiPositionsScreen so content is accessible on smaller devices where the Circle USDC amount and buttons don't fit on screen

Fixes #3239

Test plan

  • Open Circle DeFi positions screen on a small screen device/emulator
  • Verify the USDC amount and action buttons are visible by scrolling
  • Confirm no regression on larger screens

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Improved DeFi positions screen layout by enabling vertical scrolling, allowing users to view all content without content being cut off.

Add vertical scroll to BaseDeFiPositionsScreen so content is accessible
on smaller devices where the Circle USDC amount and buttons may not fit.

Co-Authored-By: aminsato <Amin.saradar@yahoo.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 11, 2026

📝 Walkthrough

Walkthrough

A vertical scrolling modifier was added to the root Column in the DeFi positions screen to enable content scrolling on smaller screens, addressing layout overflow issues while maintaining the existing full-size background and styling.

Changes

Cohort / File(s) Summary
DeFi UI Scrolling Enhancement
app/src/main/java/com/vultisig/wallet/ui/screens/v2/defi/BaseDeFiPositionsScreen.kt
Added verticalScroll(rememberScrollState()) to the root Column modifier in BaseDeFiPositionsScreenContent to enable vertical scrolling on smaller screens while preserving fillMaxSize() and background configuration.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A scroll, a fix, a screen now free,
Where Circle USDC all can see,
On smaller phones where space is tight,
This rabbit's code makes layouts right! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding vertical scrolling to the DeFi positions screen to fix the overflow issue on smaller devices.
Linked Issues check ✅ Passed The code change directly addresses issue #3239 by implementing vertical scrolling for the BaseDeFiPositionsScreen to make content accessible on smaller devices.
Out of Scope Changes check ✅ Passed The change is narrowly scoped to adding vertical scroll functionality to the DeFi positions screen layout, directly related to the linked issue objective.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch aminsato/3239_circle_usdc_amount_overflow

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In
`@app/src/main/java/com/vultisig/wallet/ui/screens/v2/defi/BaseDeFiPositionsScreen.kt`:
- Around line 44-47: Remove the nested verticalScroll from the inner tab content
components: locate StakingTabContent, BondedTabContent, and LpTabContent and
remove their Modifier.verticalScroll(rememberScrollState()) so they no longer
create inner scrollables under the root Column that already uses
Modifier.verticalScroll(rememberScrollState()); if those tabs need minimum
bounds instead, replace the scroll modifier with layout constraints such as
fillMaxWidth().heightIn(min = X.dp) on the inner Column to preserve sizing
without enabling a nested scroll.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f03e2fc4-3699-485f-bbb9-daa4400c2935

📥 Commits

Reviewing files that changed from the base of the PR and between 58c6208 and 429c82e.

📒 Files selected for processing (1)
  • app/src/main/java/com/vultisig/wallet/ui/screens/v2/defi/BaseDeFiPositionsScreen.kt

Copy link
Copy Markdown
Contributor

@johnnyluo johnnyluo left a comment

Choose a reason for hiding this comment

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

LGTM

@johnnyluo johnnyluo added this pull request to the merge queue Apr 12, 2026
Merged via the queue into main with commit ebb6c3f Apr 12, 2026
2 checks passed
@johnnyluo johnnyluo deleted the aminsato/3239_circle_usdc_amount_overflow branch April 12, 2026 07:09
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.

[BUG] The Circle USDC amount doesn’t fit on smaller screens

2 participants