chore: remove available balance and swap toggle from QuickBuy amount section#30957
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #30957 +/- ##
=======================================
Coverage 82.77% 82.78%
=======================================
Files 5584 5585 +1
Lines 144075 144107 +32
Branches 33332 33347 +15
=======================================
+ Hits 119254 119293 +39
+ Misses 16874 16863 -11
- Partials 7947 7951 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
No E2E tests exist for SocialLeaderboard, TraderPositionView, or QuickBuy flows — confirmed by searching for these patterns in .spec.ts and .e2e.ts files. The changes are isolated to a niche trading feature with no impact on:
The unit tests are updated to cover the new behavior. No E2E tags are warranted. Performance Test Selection: |
Description
Removes two UI elements, available balance & swap arrows from the QuickBuy bottom sheet amount area.
Before:

After:

Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Low Risk
Presentation-only changes in the Social Leaderboard Quick Buy sheet; trade logic and amount display modes are unchanged aside from removing two UI affordances.
Overview
Strips the Quick Buy bottom-sheet amount header down to primary/secondary amounts and the hidden input: the available balance line and the fiat/crypto swap control are removed from
QuickBuyAmountSection, along with their props and wiring fromQuickBuyAmount.Tests are updated to assert the toggle and “available” copy never appear, replacing cases that covered toggle visibility and balance formatting.
Reviewed by Cursor Bugbot for commit e5f576a. Bugbot is set up for automated code reviews on this repo. Configure here.