Skip to content
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

feat: default token list toggle #1549

Merged
merged 18 commits into from
Feb 15, 2023
Merged

feat: default token list toggle #1549

merged 18 commits into from
Feb 15, 2023

Conversation

schmanu
Copy link
Member

@schmanu schmanu commented Jan 16, 2023

What it solves

  • Adds default token list toggle
  • Improves assets loading state

Resolves #865

Todo

  • Tests

How this PR fixes it

tbd

How to test it

On staging CGW and görli / mainnet:

  • Go to Assets table
  • Observe new Select for tokenlist
  • By default its "Default list"
  • when switching to "All" the balances are reloaded and will show all tokens.

Analytics changes

tbd

Screenshots

tbd

other changes:
- Improved assets loading state
@github-actions
Copy link

github-actions bot commented Jan 16, 2023

Branch preview

✅ Deploy successful!

https://spam_tokens_default_list--webcore.review-web-core.5afe.dev

@github-actions
Copy link

github-actions bot commented Jan 16, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@schmanu schmanu mentioned this pull request Jan 23, 2023
3 tasks
@github-actions
Copy link

github-actions bot commented Jan 23, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@schmanu schmanu marked this pull request as ready for review January 24, 2023 13:44
@@ -19,6 +19,43 @@ import useBalances from '@/hooks/useBalances'
import useHiddenTokens from '@/hooks/useHiddenTokens'
import { useHideAssets } from './useHideAssets'

const skeletonCell = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: can we add the type for this to be safe.

Comment on lines 29 to 46
<Skeleton width={'80px'} />
</Typography>
</div>
),
},
balance: {
rawValue: '0',
content: (
<Typography>
<Skeleton width={'32px'} />
</Typography>
),
},
value: {
rawValue: '0',
content: (
<Typography>
<Skeleton width={'32px'} />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<Skeleton width={'80px'} />
</Typography>
</div>
),
},
balance: {
rawValue: '0',
content: (
<Typography>
<Skeleton width={'32px'} />
</Typography>
),
},
value: {
rawValue: '0',
content: (
<Typography>
<Skeleton width={'32px'} />
<Skeleton width="80px" />
</Typography>
</div>
),
},
balance: {
rawValue: '0',
content: (
<Typography>
<Skeleton width="32px" />
</Typography>
),
},
value: {
rawValue: '0',
content: (
<Typography>
<Skeleton width="32px" />

Copy link
Member

@katspaugh katspaugh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@katspaugh katspaugh added this to the 1.5.0 milestone Feb 1, 2023
@katspaugh katspaugh modified the milestones: 1.5.0, 1.6.0 Feb 7, 2023
@github-actions
Copy link

github-actions bot commented Feb 7, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@liliya-soroka
Copy link
Member

  1. the spending limits issue is verified
  2. Drain app has the tokens from the default list only when the option is on . So the filter by allowed tokens in the "Default token" list is available for the safe-apps
  3. Waiting for the information related to the GA in the slack before the Epic is verified and marked as done

@DiogoSoaress
Copy link
Member

@liliya-soroka as discussed:

  • Tracking will be included in a separate PR.
  • It's Safe Apps responsability of fetching the right token list

@katspaugh katspaugh merged commit 1714364 into dev Feb 15, 2023
@katspaugh katspaugh deleted the spam-tokens-default-list branch February 15, 2023 12:22
@github-actions github-actions bot locked and limited conversation to collaborators Feb 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Epic] Default token lists
5 participants