feat: add fee selection ui - #51
Open
nicoletting wants to merge 3 commits into
Open
Conversation
Optional icon="dot" prop for network-status badges; existing glyph behaviour unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Bottom sheet to pick transaction speed (Low/Medium/High) with network-status badge and recommended pill. Pure UI. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Confirm-screen Amount + Est. Fee group. Two tap zones: fee amount opens Fee & Speed (Kaspa-native KAS only, feeSelectable), label opens the Est. Fee breakdown sheet. Pure UI. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
🎨 Storybook Preview Ready!Your Storybook preview has been deployed and is available at: 🔗 Preview URL: https://forbole.github.io/kastle-ui/preview/pr-51/ 📝 What's included:
|
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.
What changed
Adds the Fee Selection UI for the send Confirm screen (body-only, pure components):
feeSelectable)icon="dot"variant (used by the network-status badge). Existing tx-status callers are unaffected.Why
Notion: Fee Selection & Custom Transaction Fee UI (Mobile). Lets Kaspa-native KAS transactions pick a custom fee/speed; Layer-2 (Kasplex / Igra) and Kaspa-network KRC20 use the non-selectable default.
For Paul to confirm
medium. Please confirm the default speed for each network state (Smooth / Busy / Congested) and select that option by default.feeSelectable={false}is for networks that can't custom-set fee. Use it or leave it — your call.≈on USD — design shows≈ $24,000(no "USD" suffix). ProductionformatCurrencyoutputs$24,000(no≈). Is≈dropped because the USD shown is exactly the real value? If it's an approximation, please prepend"≈ ".EstFeeSheetcomponent. No new tooltip/breakdown sheet was built.Design tokens used
white["5%"],border.b200,borderRadius.2xl/3xl/xl/full,spacing.*,typography.t900/t800/t600/t500,background.bg100/bg200/bg400/bg500,success/warning/error.*,info.*,textStyles.*Testing
white["5%"]) sits consistently next to the other confirm-page cards (kastle-mobile usesbg-background-950/5— near-identical faint tint, verify on device)