-
Notifications
You must be signed in to change notification settings - Fork 40
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: distributed metadata #1101
Conversation
d51e1c1
to
5d43463
Compare
4870892
to
982cbee
Compare
* wip: chaindata logos & ignore non default chains * feat: disable networks * chore: cleanup * feat: enable/disable tokens * feat: search & enable known evm networks * fix: perf when updating networks & tokens * chore: cleanup * fix: balances subscription init performance * fix: larger toggle click zone * fix: reset evm network * fix: virtualized rows * fix: filter behavior * fix: token filter * feat: clear button on search input * feat: token form adjustments * feat: enable toggle on chains forms * fix: wording
b2a5210
to
2052ef5
Compare
2052ef5
to
4f8523d
Compare
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.
Small comments, mostly very good
)} | ||
{hasAccounts && <FullscreenPortfolioAssets balances={balancesToDisplay} />} | ||
<div className="text-body-secondary mt-72 flex flex-col items-center justify-center gap-8 text-center"> | ||
<div>{t("Enable some networks to display your assets")}</div> |
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.
When there is a selected account active, this message doesn't quite make sense. In that case we should say "No networks are enabled for this account. Enable some {{ Polkadot || Ethereum }} networks to display your assets."
@@ -7,27 +9,35 @@ import { | |||
import { useMemo } from "react" | |||
import { useRecoilValue } from "recoil" | |||
|
|||
export const useChains = (withTestnets: boolean) => { | |||
// // keep db data ption("chains") | |||
type ChainsFilter = "all" | "enabledWithTestnets" | "enabledWithoutTestnets" |
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.
Prefer to use Enums or constants for values like this
Although, since we now have two states (all/enabled and testnets on/off) perhaps an options object would be more suitable?
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.
done in asset discovery pr
* feat: merge main atoms into one * feat: merge atoms * fix: tests
Marking this a draft until we merge assets discovery back into it |
* fix: responsive account name alignment in portfolio account picker (#1183) * fix: responsive account name alignment in portfolio account picker * fix: don't break text-ellipsis * fix: allow blockeplorer to be null in wallet_addEthereumChain (#1175) * wip: asset discovery * refactor: optimize scan * feat: token rates for asset discovery * feat: scan contextual menu * fix: prevent bug in analytics (#1186) * fix: remove nonce when estimating gas to validate txs (#1189) * feat: revoke approval signing ui (#1190) * fix: layout shift on dashboard asset rows (#1192) * fix: wording * Upgrade Ledger deps (#1193) * chore: upgrade ethereum ledger dependencies * fix: improve Ledger connection error messages * chore: specify version of ledger/hw-transport library * chore: version bump 1.20.1 (#1194) * chore: rename enabled to active * fix: tests * chore: cleanup * fix: enable => activate * fix: log timer warnings * feat: options param on main hooks * feat: scan native tokens * feat: scan & activate native tokens * fix: testnets management * fix: prevent auto switch to disabled network * feat: enrich when adding network from dapp * feat: migrate to new evm default networks * feat: privacy notice * fix: typo * feat: launch scan after adding account * feat: add border to notification container * feat: alerts if new tokens detected * chore: self review * chore: remove comment * fix: persist tokens count * fix: incorrect instantiation of `ChainConnectorEvm` (#1199) * fix: incorrect instantiation of `ChainConnectorEvm` * fix: combine ChaindataEvmNetworkProvider and ChaindataTokenProvider in ChainConnectorEvm --------- Co-authored-by: alecdwm <[email protected]> * fix: connected includes removed addreses (#1205) * fix: invoke stopListening when an error is caught (#1203) * feat: rework tokens page * fix: poll crowdloan contributions (fixes #1152) * feat: token info context menu * fix: erc20 check --------- Co-authored-by: Alec WM <[email protected]> Co-authored-by: Chid Gilovitz <[email protected]> Co-authored-by: Tiến Nguyễn Khắc <[email protected]> Co-authored-by: Chris Ling <[email protected]>
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.
LGTM 🪬
Scoped @ #1076