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

Release 3.7.0#2400

Merged
katspaugh merged 24 commits into
masterfrom
release-3.7.0
Jun 7, 2021
Merged

Release 3.7.0#2400
katspaugh merged 24 commits into
masterfrom
release-3.7.0

Conversation

@katspaugh

@katspaugh katspaugh commented Jun 7, 2021

Copy link
Copy Markdown
Contributor

matextrem and others added 23 commits May 10, 2021 12:40
* Add import/export buttons to addressBook

* Change textSize to icons
* Add export feature

* Improve Address book export modal

* Use styled-components instead of material-ui styles

* Add comment

* Improve filename + set loading state false when error
* Remove UNKNOWN from owner list

* Fetch Safe Name from address book

* Update Safe name in address book when updating from settings > safe details

* Fix lint issue
* Added import modal and import functionality

* Added modal refactor

* Added entry validations

* Added message after loading file

* Reset values on modal close

* Minor formal changes

* Entry list validations on separate functions

* Minor changes

* Text corrections

* Check if isAddress instead of checksum

* add styles on import

* fix sidebar label for ADDRESS BOOK (with a space)

* fix modal title in lowecase

* replace icons on AB list

* Clear upload feedback on modal close

* add styles to drag and drop area

* add link to Help Center article

* remove unused styles

* change color when is an error

* change error color

* fix error color and align file size

* Modal refactor

* fix button styles on modal

* fix long file names

Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>
* WIP: add `chainId` with default value to `AddressBookEntry`

* WIP: first approach to the new AB structure and data persistence in localStorage

* migrate AB

* migrate AB actions

* migrate AB reducers

* update AB selectors

* update AB middlewares

* update AB utils

* update AB model file

* migrate AB usage to the new structure

* change AB notification key name

* fixes after rebase

* add `addressBookBatchLoad` action

* create a selector for owners with AB data

`safeOwnersWithAddressBookDataSelector`

* migrate safe->owners structure

* make `name` and `address` mandatory for `makeAddressBookEntry`

* filter out invalid AB names before storing them

* review Load & Open flow for owner's names

* update owners' reducers and actions

- `editSafeOwner` no longer necessary as there's no name change in the owners' list

* create AB map-like selector

chainId -> address -> name

* auto-complete owner's name if it exist in the AB

* update replace owner modal and remove REPLACE_SAFE_OWNER

- no longer optimistically update the owner's list if threshold === 1, as it behaves erratically with the constant update from data provided by the services
- `REPLACE_SAFE_OWNER` no longer necessary

* update remove owner modal and remove REMOVE_SAFE_OWNER

- no longer optimistically update the owner's list if threshold === 1, as it behaves erratically with the constant update from data provided by the services
- `REMOVE_SAFE_OWNER` no longer necessary

* update add owner modal and remove ADD_SAFE_OWNER

- no longer optimistically update the owner's list if tx is signed, as it behaves erratically with the constant update from data provided by the services
- `ADD_SAFE_OWNER` no longer necessary

* update yarn.lock after rebase

* fix AddressBookMap type

* create a migration function for safe's names

* create selectors that require safe's name

* remove `name` from the safe model and update related code

* JSON.parse if JSON.parsed string returned a string instead of a JSON

* remove commented lines

* rename BATCH_LOAD to SAFE_LOAD

* refactor AddressBookMap to `chainId`->`address`->`AddressBookEntry`

* make `chainId` optional for `getNameFromAddressBookSelector`

* use `addressBookMapSelector` for a more direct AddressBook entry name lookup

* remove `loadedSafeViaUrl` flag, and rely on address book entry instead

* replace `addAddressBookEntry` action with `addressBookAddOrUpdate`
* add back `loadedViaUrl` flag

* implicitly set `loadedViaUrl` to `false` when adding a safe via form or setting its name from Settings

* exclude safes whose `loadedViaUrl` flag is `true`

* hide "Remove Safe" button for safes `loadedViaUrl`

* add `loadedViaUrl` flag to mocked safe
* Refactor AB migration

* Fix AB v2 and safes migration

* Don't migrate if already migrated

* Restore removeFromStorage
* Add loading state when click on download button

* Expand clickable area for link
* Use ADDRESS_BOOK_DEFAULT_NAME instead of hard coded string

* Use address book name in Send Collectible review step

* Show name if known in contract interaction review

* Use string comparison util
Co-authored-by: katspaugh <katspaugh@users.noreply.github.com>
…safe (#2374)

* avoid deleting addressBook entry when deleting a safe

* avoid deleting addressBook entry when deleting a safe
* Verify chainId column and called import reducer

* Added dispatch for addressbook import

* Fixed store reducer and notification

* Validate all entries on csv data validation

* Using utils to verify imported addresses

* Add props typing to ImportEntriesModal

* Convert chainId to number
* Check if current screen is the app view

* Get app url from utils hook

* Hook rename and updated effect dependency
* Allow to load new safe with empty owner names

* Avoid adding owners to addressbook if name is empty

* Remove unnecessary initialization
* keep safes with no name for the list of safes

* prevent storing only those safes whose `loadedViaUrl` flag is true

* update AB before Safe store

* default safe name to empty string if it is not available
@katspaugh katspaugh added this to the 3.7.0 milestone Jun 7, 2021
@github-actions

github-actions Bot commented Jun 7, 2021

Copy link
Copy Markdown

CLA Assistant Lite All Contributors have signed the CLA.

@github-actions

github-actions Bot commented Jun 7, 2021

Copy link
Copy Markdown

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 8 0
Ignored 9 N/A
  • Result: ✅ success

  • Annotations: 8 total


[warning] @typescript-eslint/explicit-module-boundary-types

Require explicit return and argument types on exported functions' and classes' public class methods


Report generated by eslint-plus-action

@github-actions

github-actions Bot commented Jun 7, 2021

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jun 7, 2021

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jun 7, 2021

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jun 7, 2021

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jun 7, 2021

Copy link
Copy Markdown

@mmv08 mmv08 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎉

@katspaugh katspaugh merged commit c424c67 into master Jun 7, 2021
@katspaugh katspaugh deleted the release-3.7.0 branch June 7, 2021 07:37
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 7, 2021
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.

5 participants