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

refactor: distributed metadata #1101

Merged
merged 70 commits into from
Jan 5, 2024
Merged

refactor: distributed metadata #1101

merged 70 commits into from
Jan 5, 2024

Conversation

alecdwm
Copy link
Member

@alecdwm alecdwm commented Oct 1, 2023

Scoped @ #1076

@alecdwm alecdwm added the enhancement New feature or request label Oct 1, 2023
@alecdwm alecdwm self-assigned this Oct 1, 2023
@alecdwm alecdwm force-pushed the refactor/distributed-metadata branch from d51e1c1 to 5d43463 Compare October 11, 2023 18:00
@alecdwm alecdwm force-pushed the refactor/distributed-metadata branch from 4870892 to 982cbee Compare October 12, 2023 06:47
alecdwm and others added 6 commits October 12, 2023 12:38
* 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
@alecdwm alecdwm force-pushed the refactor/distributed-metadata branch 3 times, most recently from b2a5210 to 2052ef5 Compare November 6, 2023 02:35
@alecdwm alecdwm force-pushed the refactor/distributed-metadata branch from 2052ef5 to 4f8523d Compare November 7, 2023 00:03
@0xKheops 0xKheops requested a review from chidg December 8, 2023 06:40
Copy link
Contributor

@chidg chidg left a 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>
Copy link
Contributor

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"
Copy link
Contributor

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?

Copy link
Contributor

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

@alecdwm
Copy link
Member Author

alecdwm commented Jan 3, 2024

Marking this a draft until we merge assets discovery back into it

@alecdwm alecdwm marked this pull request as draft January 3, 2024 05:37
@alecdwm alecdwm linked an issue Jan 3, 2024 that may be closed by this pull request
* 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]>
@alecdwm alecdwm marked this pull request as ready for review January 5, 2024 01:09
@alecdwm alecdwm enabled auto-merge (squash) January 5, 2024 01:11
Copy link
Contributor

@chidg chidg left a comment

Choose a reason for hiding this comment

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

LGTM 🪬

@alecdwm alecdwm merged commit da6e8f9 into dev Jan 5, 2024
4 checks passed
@alecdwm alecdwm deleted the refactor/distributed-metadata branch January 5, 2024 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wallet incorrectly shows returned crowdloan funds as still locked
3 participants