-
Notifications
You must be signed in to change notification settings - Fork 83
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
refactor: remove drawer navigation #5318
Conversation
1 build decreased size
Celo (test) 1.83.0 (148)
|
Item | Install Size Change |
---|---|
main.jsbundle | ⬇️ -106.5 kB |
🗑 drawer | ⬇️ -12.3 kB |
Other | ⬇️ -12.6 kB |
🛸 Powered by Emerge Tools
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5318 +/- ##
==========================================
- Coverage 86.08% 85.86% -0.22%
==========================================
Files 748 737 -11
Lines 30729 30162 -567
Branches 5323 5171 -152
==========================================
- Hits 26452 25900 -552
+ Misses 4044 4029 -15
Partials 233 233
... and 7 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
9a30e89
to
4751022
Compare
) | ||
expect(tree).toMatchSnapshot() | ||
}) | ||
describe.each([{ settingsScreen: Screens.Settings }, {}])( |
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 this kept as a describe.each
so that the settings screen is passed to routeParams
?
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.
actually this describe.each (added here: https://github.com/valora-inc/wallet/pull/5121/files#diff-6215a8f5c86692eac81da63fc0f0a41ace9c791f2ad68e8d17687a175d817fedR14) isn't really doing anything because routeParams
is never passed. Just runs the same test multiple times. I am cleaning this up in a follow up PR (#5336) to add better tests
@@ -259,42 +254,14 @@ describe('AssetList', () => { | |||
}) | |||
|
|||
it.each([ | |||
{ | |||
name: 'tokens tab on wallet tab when gate is off', |
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 this test removed, I don't see it below but it looks like it is for tab navigator?
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.
good catch, was confused because there are different gates involved, will add it back
@@ -233,7 +217,7 @@ export function AssetsTokenBalance({ | |||
<TokenBalance | |||
style={styles.totalBalance} | |||
singleTokenViewEnabled={false} | |||
showBalanceToggle={isWalletTab} | |||
showBalanceToggle={true} |
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 believe this prop can now be removed from TokenBalance
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.
FiatExchangeTokenBalance also uses this but that doesn't need it. I think we should just make them different components (that shares a total balance selector), which can be in a follow up
### Description Cleanup drawer navigation. Includes removing: - DrawerNavigator and other drawer components and icons - All drawer screens and its associated components including (not exclusive) - Removing celo page - Removing drawer variants of screens used both in drawer and tabs (Home, Assets/Wallet, Dapps/Discover, Settings, Support, WalletSecurityPrimer, Invite) - Removing drawer only home screen components like beta tag, notification spotlight, dapps carousel, home token balance, etc - Hiding tx feed balances (now exclusively for wallet tab) - All other unused items flagged by knip Will make a follow up to clean more todos including: - dropping the statsig gate override launch arg from e2e tests - dropping settings screen param in the backup quiz flow - renaming tab screen components - other misc todos like EmbeddedNavBar enum, etc ### Test plan CI, manually going through flows ### Related issues - Fixes ACT-1133 ### Backwards compatibility Yes ### Network scalability N/A
### Description Follow up from valora-inc#5318. Remove override that is no longer required ### Test plan CI ### Related issues - Part of ACT-1133 ### Backwards compatibility Yes ### Network scalability N/A
Description
Cleanup drawer navigation. Includes removing:
Will make a follow up to clean more todos including:
Test plan
CI, manually going through flows
Related issues
Backwards compatibility
Yes
Network scalability
N/A