-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: swap refactor (#3731) #3799
base: develop
Are you sure you want to change the base?
Conversation
Co-authored-by: Juliano Lazzarotto <[email protected]>
apps/wallet-mobile/src/features/Portfolio/useCases/PortfolioTokenDetails/Actions.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/Portfolio/useCases/PortfolioTokenDetails/Actions.tsx
Outdated
Show resolved
Hide resolved
return ( | ||
<KeyboardAvoidingView style={[styles.flex, styles.root]}> | ||
<SafeAreaView edges={['bottom', 'left', 'right']} style={styles.flex}> | ||
<Tab.Navigator | ||
screenOptions={({route}) => ({ | ||
...defaultMaterialTopTabNavigationOptions(atoms, color), | ||
...(isSearchBarVisible && {tabBarStyle: {height: 0}}), | ||
tabBarLabel: route.name === 'token-swap' ? strings.tokenSwap : strings.orderSwap, | ||
tabBarLabel: {'token-swap': strings.tokenSwap, orders: strings.orderSwap, 'manager-config': 'Manager'}[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Fix: according product requirements (in-progress)
name="orders" | ||
getComponent={() => ListOrders} | ||
/> | ||
{isDev && <Tab.Screen listeners={listeners} name="manager-config" component={ManagerConfig} />} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ibid idem
apps/wallet-mobile/src/features/Swap/common/Provider/Provider.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/Swap/common/Provider/Provider.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/Swap/common/Provider/Provider.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/Swap/common/Provider/Provider.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/Swap/common/Provider/ProviderIcon.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/Swap/common/Provider/ProviderIcon.tsx
Outdated
Show resolved
Hide resolved
...wallet-mobile/src/features/Swap/common/SelectPool/SelectPoolFromList/SelectPoolFromList.tsx_
Outdated
Show resolved
Hide resolved
import {PRICE_IMPACT_HIGH_RISK, PRICE_IMPACT_MODERATE_RISK} from './constants' | ||
import {SwapPriceImpactRisk} from './types' | ||
|
||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Chore: implement the update for it
apps/wallet-mobile/src/features/Swap/useCases/CreateOrder/EditSlippageScreen.tsx
Outdated
Show resolved
Hide resolved
|
||
const swapForm = useSwap() | ||
|
||
const dex = swapForm.estimate?.splits[0]?.dex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- fix: update according to product design (in-progress)
apps/wallet-mobile/src/features/Swap/useCases/CreateOrder/ProviderSplits.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/Swap/useCases/CreateOrder/ProviderSplits.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/Swap/useCases/CreateOrder/SelectProviderScreen.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/Swap/useCases/CreateOrder/StartSwapOrderScreen.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/Swap/useCases/CreateOrder/StartSwapOrderScreen.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/Swap/useCases/CreateOrder/StartSwapOrderScreen.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/Swap/useCases/CreateOrder/StartSwapOrderScreen.tsx
Show resolved
Hide resolved
apps/wallet-mobile/src/features/Swap/useCases/CreateOrder/WarnLimitPrice.tsx_
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/Swap/useCases/ListOrders/ListOrders.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/Swap/useCases/Manager/ManagerConfig.tsx
Outdated
Show resolved
Hide resolved
apps/wallet-mobile/src/features/Swap/useCases/ReviewSwap/ReviewSwap.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@banklesss probably this should be replaced by the review tx.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing this out @stackchain
This is a screen to review the swap order that is only in the swap funnel. It is considered in the specs but since it is something particular to the swap funnel I decided that it would depend on the swap funnel itself.
let me know if you think otherwise!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is more on the product end, I'd say if we can leverage the ReviewTx, we need to discuss with Thomas about using it as well for the TxDetail, it doesn't make sense anymore to display it that old weird way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it has more information about the swap, because we're creating it, than what can be got from the cbor, that's why it's separate. We can move it to ReviewTx as some "added info" I guess.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yap, I think @banklesss has it implemented already, he can update this part.
5581914
to
e3d7ab2
Compare
@banklesss can you fix the conflicts, and update the tx review flow. |
Description / Change(s) / Related issue(s)
Work in progress, don't commit to it