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: useKownAddresses #82

Merged
merged 11 commits into from
Oct 15, 2024
Merged

Refactor: useKownAddresses #82

merged 11 commits into from
Oct 15, 2024

Conversation

UrbanWill
Copy link
Collaborator

Description

Refactored useKnownAddresses hook to handle fetching contacts by their addresses, instead of relying on addressBookByOrgIdState atom which is populated by AddressBookWatcher that polls 1000 contact addresses, categories and subcategories every 10 seconds.

This is the first step towards moving away from the AddressBookWatcher pattern. Next will be an AddresssInput refactor to be an infinite, scrollable and searchable input that fetches X contacts at a time.

Components refactored:

  • VaultCard
  • Address // Depends on Address input refactor
  • TransactionSideSheetApprovals
  • AddMembers // No changes required
  • AddColaboratorModal // Depends on Address input refactor
  • CollaboratorRow
  • Multisend/index // Actually being used in AddressInputCell, depends on Address input refactor
  • DetailsForm // Depends on Address input refactor
  • VaultOverview
  • TransactionDetailsExpandable
  • TransactionSummaryRow
  • RecoverMultisig
  • SignersSettings // Partially, depends on Address input refactor

Copy link

vercel bot commented Sep 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
polkadot-multisig ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 7:19am
signet-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 7:19am

Copy link
Collaborator

@chrisling-dev chrisling-dev left a comment

Choose a reason for hiding this comment

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

lgtm, just a nit

…GetAddressesByOrgIdAndAddress.ts

Co-authored-by: Chris Ling <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants