fix: improvements on portfolio address management #929
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Closes https://app.clickup.com/t/86dvvmwv9
Closes https://app.clickup.com/t/86dvvbch0
Moves
Dashboard
vsEmpty Dashboard
rendering checks at the top level ( to a new Portfolio page), to avoid sub hooks & components having access to wallet, which makes them error prone if wallets are deleted (references to deleted objects/classes).Fixes issue with race conditions between dashboard page and profile synchronizer that was altering the default address selection.
Adds logic to mark newly created or imported wallets as selected.
Persist selection on profile export & imports. If profile doesn't have pre-selected on import , all are marked as selected.
Better syncing of selected state between profile config & Address side panel's internal state.
Deleting the only selected wallet, should result into automatically selecting the next available.
Checklist