4th. Feat(Bento): Balance and Fiat Integration #156
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.
📱 Description
This PR refines the Bento main screen's interaction model, integrates the Send screen into a bottom-sheet workflow, enhances balance and currency handling, and restructures several components for clearer state management and modularity. It also introduces a flexible override mechanism for the Send screen’s close action.
Platform
🎯 Type of Change
📋 Changes
✨ Send Screen Integration & Bottom Sheet Improvements
FragmentSendinto the Bento experience via aModalBottomSheet.BentoActivityto extendFragmentActivityto support fragment-backed bottom sheets.SheetTypeenum (DISMISSED,RECEIVE,SEND) inBentoMainScreenStateto manage sheet state and content switching.FragmentSend; relies on standard bottom-sheet behaviors.onBackPressed()via the activity's handler.✨ Balance Toggle Between LTC and Fiat
BalanceBentoGrid; now handled at a higher level.CurrentCurrencyStateFlowto observe and react to currency selection changes.🔧 Price Ticker Refactor & State Improvements
PriceTickerStateFlowandPriceTickerStateFlowImpl, providing real exchange rate data.PriceTickerGridUiStatefor dedicated UI state management.PriceTickerGridto display only the ticker for the currently selected currency (no more pager of multiple pairs).PriceTickerGridandTransactionHistoryGridplus their state classes into dedicated sub-packages for clearer structure.✨ FragmentSend Close Behavior Override
overrideOnCloseClickedto allow parent components to supply a custom close action.BentoMainScreento correctly dismiss the bottom sheet when Send is opened inside it.🔗 Related Issues
🧪 Tests Status
🎯 Reviewers
@kcw-grunt, @josikie