feat(widget): add redesigned amount input cards for jumper modes#776
Draft
effie-ms wants to merge 3 commits into
Draft
feat(widget): add redesigned amount input cards for jumper modes#776effie-ms wants to merge 3 commits into
effie-ms wants to merge 3 commits into
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which Linear task is linked to this PR?
EMB-452
Why was it implemented this way?
This adds a redesigned amount input as Send/Receive cards, rendered exclusively in
jumper-simpleandjumper-advancedwidget modes. All other modes (default, split, refuel, custom) continue using the existingSelectChainAndToken+AmountInputunchanged, so the redesign is fully scoped to the new modes and carries no regression risk for existing integrators.SendAmountCard): large editable input with adaptive font sizing, token pill selector, percentage chips (25/50/75/Max), fiat/token toggle, and wallet balance display.ReceiveAmountCard): read-only amount from the best route with fiat/token toggle, token pill selector, and skeleton loading state.SwapButton): vertical swap arrow between the cards (hidden in refuel mode), replicatingReverseTokensButtonlogic rather than duplicating it.AmountInputCardPairand rendered conditionally fromMainPagebased on mode, keeping the existing layout path untouched for other modes.New components
AmountInputCard/—SendAmountCard,ReceiveAmountCard,AmountInputCardPair,PercentageChips,BalanceDisplay,FiatValueToggle, shared stylesSwapButton/— swap arrow with overlapping card designTokenPillButton/— compact pill-shaped token selector with selected/unselected variantsVisual showcase (Screenshots or Videos)
TODO: add screenshots/GIFs of Send & Receive cards in jumper-simple and jumper-advanced (light + dark mode).
Test plan
jumper-simplemode — switch all tabs (Swap & Bridge, Private, Gas)jumper-advancedmode — switch all tabs (Swap, Bridge, Limit)Checklist before requesting a review