Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MBL1260] Add Checkout Screen to Flow (#1991)
* WIP pager experimentation * Merge branch 'master' into mgriego/experimental_compose_pager * add some fixes for add-ons screen, add shipping rules * remove some unused imports * updated spacing for add-ons container * move checkout flow code to its own viewmodel * [MBL-1257] Add existing logic for rewards carousel to new compose flow (#1978) * adjust viewmodel to use UI State class for reward carousel * Add logic for rewards carousel screen, fix a few visual bugs, adjust logic to use coroutines and flows/ui states * lint * more lint * move reward carousel logic into its own viewmodel/ui state * lint and info comments * add display logic for confirm details screen * add stripe card ids * remove unused import * add create checkout call to move on from confirmation page * formatting and default action on next button * lint * add logic for quantities for confirm screen * fix logic when displaying the shipping location an amounts * add bonus support min additions and amount conversions * lint * update implementation in checkout screen based on local changes * remove unneeded disclaimer text on reward cards * remove unused import * add new translated string * fix shipping amount for rewards (add-ons not working?) * preliminary changes for the late pledge checkout screen, WIP * MBL-1258 Add logic for add ons screen (#1980) * Skeleton AddOnsVM and navigation to Confirm Pledge Details screen * Logic for location selector - hide for digital addons, update shipping costs when location changes * Fix bug with currentShippingRule state not persisting * Update AddOnsUIState.currentAddOnsSelection instead of local addOnsMap to correctly count total addons * Fix bug where addOnCount is not remembered when navigating back to addons * Clean up ktlint * Clear previous addons selection when a new reward is selected * Also clear individual item count when new reward is selected * If reward cannot be shipped, only display addons that also cannot be shipped * Fix ktlint * Reset shippingSelectorIsGone when new reward is selected * Copy over Alex's fix on master * ktlint * Add comment back to config.yml * add full id list for confirm checkout, calculate totals more accurately * [NoTicket] Fix add-ons shipping rule logic (#1987) * move add-ons and shipping rules logic out of flow viewmodel, fix add-ons shipping amounts diplayed, update add-ons when shipping rule changes, filter add-ons based on reward selection * lint * MBL-1291: Feature Flag for latePledges (#1986) * clean up state emission * remove unneeded binging reference * more lint * another lint * some bug fixes and code cleanup --------- Co-authored-by: Yun Cheng <[email protected]> Co-authored-by: Isabel Martin <[email protected]>
- Loading branch information