Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.

(Feature) #588 Use addressBook names when creating/loading safe#1377

Merged
dasanra merged 70 commits intodevelopmentfrom
588-use-adbk-names
Sep 23, 2020
Merged

(Feature) #588 Use addressBook names when creating/loading safe#1377
dasanra merged 70 commits intodevelopmentfrom
588-use-adbk-names

Conversation

@Agupane
Copy link
Contributor

@Agupane Agupane commented Sep 18, 2020

Closes #588

Description

  • Now both load safe owner's list and create safe owner's input will use the addressbook values
  • Also if the user updates the owner name on the addresses list and the owner name is on the addressbook, it will be updated too
  • Also fixes a bug: when the user loads the safe it will show 'LOADED_SAFE' as name, instead of the name of the safe

Agupane added 30 commits August 26, 2020 11:24
Restructure addressbook store type
…to 801-address-book-refactor

# Conflicts:
#	src/logic/addressBook/store/actions/addAddressBook.js
#	src/logic/addressBook/store/actions/addAddressBookEntry.js
#	src/logic/addressBook/store/actions/addOrUpdateAddressBookEntry.js
#	src/logic/addressBook/store/actions/loadAddressBookFromStorage.js
#	src/logic/addressBook/store/actions/removeAddressBookEntry.js
#	src/logic/addressBook/store/actions/updateAddressBookEntry.js
#	src/logic/addressBook/store/reducer/addressBook.ts
#	src/logic/addressBook/store/selectors/index.js
#	src/routes/safe/components/AddressBook/index.tsx
#	src/routes/safe/components/Settings/ManageOwners/AddOwnerModal/index.tsx
#	src/routes/safe/components/Settings/ManageOwners/EditOwnerModal/index.tsx
#	src/routes/safe/components/Settings/ManageOwners/ReplaceOwnerModal/index.tsx
#	src/routes/safe/container/Hooks/useLoadSafe.jsx
#	src/routes/safe/container/index.jsx
#	src/routes/safe/store/middleware/safeStorage.js
Remove unused saveAndUpdateAddressBook action
Add types
Removes unused addAddressBook action
Let the user remove owners users without adding them again each time the safe loads
…to 1246-addressbook-entries-removed

# Conflicts:
#	src/logic/addressBook/store/selectors/index.ts
#	src/logic/addressBook/utils/index.ts
#	src/routes/safe/components/AddressBook/index.tsx
…to 1246-addressbook-entries-removed

# Conflicts:
#	src/logic/addressBook/store/selectors/index.ts
#	src/logic/addressBook/utils/index.ts
#	src/routes/safe/components/AddressBook/index.tsx
…to 1246-addressbook-entries-removed

# Conflicts:
#	src/logic/addressBook/model/addressBook.ts
#	src/logic/addressBook/store/reducer/addressBook.ts
#	src/logic/addressBook/store/selectors/index.ts
#	src/logic/addressBook/utils/index.ts
#	src/routes/safe/components/AddressBook/CreateEditEntryModal/index.tsx
#	src/routes/safe/components/AddressBook/index.tsx
#	src/routes/safe/components/Balances/SendModal/screens/SendCollectible/index.tsx
#	src/routes/safe/components/Balances/SendModal/screens/SendFunds/index.tsx
#	src/routes/safe/components/Settings/ManageOwners/index.tsx
#	src/store/index.ts
@ghost
Copy link

ghost commented Sep 22, 2020

Travis automatic deployment:
https://pr1377--safereact.review.gnosisdev.com/app

@ghost
Copy link

ghost commented Sep 22, 2020

Travis automatic deployment:
https://pr1377--safereact.review.gnosisdev.com/app

@ghost
Copy link

ghost commented Sep 23, 2020

Travis automatic deployment:
https://pr1377--safereact.review.gnosisdev.com/app

@ghost
Copy link

ghost commented Sep 23, 2020

Travis automatic deployment:
https://pr1377--safereact.review.gnosisdev.com/app

@ghost
Copy link

ghost commented Sep 23, 2020

Travis automatic deployment:
https://pr1377--safereact.review.gnosisdev.com/app

@ghost
Copy link

ghost commented Sep 23, 2020

Travis automatic deployment:
https://pr1377--safereact.review.gnosisdev.com/app

@Agupane Agupane requested a review from dasanra September 23, 2020 15:46
Copy link
Collaborator

@dasanra dasanra left a comment

Choose a reason for hiding this comment

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

Good Job!

@ghost
Copy link

ghost commented Sep 23, 2020

Travis automatic deployment:
https://pr1377--safereact.review.gnosisdev.com/app

@ghost
Copy link

ghost commented Sep 23, 2020

Travis automatic deployment:
https://pr1377--safereact.review.gnosisdev.com/app

@francovenica
Copy link
Contributor

The issue of the "UNKNOWN" name for the first owner listed during the safe creation if that owner was not in the address book already was fixed. Is now "My wallet" again

Checked again:
Creating a safe takes the names from the address book of known addresses
Loading safe autocompletes names from the address book if the address are known
Editing the name during safe creation or loading will edit them in the address book and settings
Editing the names in the settings edits the names in the address book and viceversa
Edited the name in the address book and created/loaded a safe again

It looks good to me

@ghost
Copy link

ghost commented Sep 23, 2020

Travis automatic deployment:
https://pr1377--safereact.review.gnosisdev.com/app

@dasanra dasanra merged commit 6f707a6 into development Sep 23, 2020
@dasanra dasanra deleted the 588-use-adbk-names branch September 23, 2020 18:14
@github-actions github-actions bot locked and limited conversation to collaborators Sep 23, 2020
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.

Use Addressbook names for owners when creating/loading a Safe

4 participants