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

Feature #74: Safe list sidebar #179

Merged
merged 36 commits into from
Sep 24, 2019
Merged

Feature #74: Safe list sidebar #179

merged 36 commits into from
Sep 24, 2019

Conversation

mmv08
Copy link
Member

@mmv08 mmv08 commented Sep 19, 2019

This PR:

  • Implements Safe List Sidebar #74
  • Disable react/state-in-constructor because of an update in airbnb config, we didn't define state in constructor previously and I don't see any reason to do that.
  • Run tests sequentially (--runInBand)
  • Remove SafeList route and Footer component
  • Unify addSafe actions. Previously we had a default exported action which would accept the raw data and create safe instance record, and also exported an action which would just take the safe record. Default one was used only during safe creation, so I changed the creation a little bit and made action which would take the safe record default
  • Update few tests to use waitForElement instead of sleep function

@mmv08 mmv08 added the WIP label Sep 19, 2019
@ghost
Copy link

ghost commented Sep 19, 2019

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

Storybook book automatic deployment:
https://pr179--safereactstorybook.review.gnosisdev.com

@ghost
Copy link

ghost commented Sep 19, 2019

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

Storybook book automatic deployment:
https://pr179--safereactstorybook.review.gnosisdev.com

@ghost
Copy link

ghost commented Sep 19, 2019

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

Storybook book automatic deployment:
https://pr179--safereactstorybook.review.gnosisdev.com

@ghost
Copy link

ghost commented Sep 19, 2019

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

Storybook book automatic deployment:
https://pr179--safereactstorybook.review.gnosisdev.com

@ghost
Copy link

ghost commented Sep 19, 2019

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

Storybook book automatic deployment:
https://pr179--safereactstorybook.review.gnosisdev.com

@lukasschor
Copy link
Member

Really like this feature. And most happy-cases work great. 👍

Just two issues I have found so far:

  1. Search bar disappears or is only displayed half when more than a dozen or so safes are loaded. Given only few will probably have that many safes loaded, but there the search bar would probably add the most value.

Screenshot 2019-09-19 at 22 16 55

  1. When searching and then closing the sidebar with an active search, the search results are persistent the next time the sidebar is opened, yet the search term is cleared. Either the sidebar should show all Safes again, or the search term should still be in the search bar. I would prefer the former but happy for other suggestions or whatever is easieir to implement.

Also minor UI thing, I would assume that the line between the header and sidebar would be the same thickness as the other lines.
Screenshot 2019-09-19 at 22 30 54

@ghost
Copy link

ghost commented Sep 20, 2019

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

Storybook book automatic deployment:
https://pr179--safereactstorybook.review.gnosisdev.com

@ghost
Copy link

ghost commented Sep 20, 2019

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

Storybook book automatic deployment:
https://pr179--safereactstorybook.review.gnosisdev.com

1 similar comment
@ghost
Copy link

ghost commented Sep 20, 2019

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

Storybook book automatic deployment:
https://pr179--safereactstorybook.review.gnosisdev.com

…r after 300ms after closing so user doesn\'t see the changes
@ghost
Copy link

ghost commented Sep 23, 2019

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

Storybook book automatic deployment:
https://pr179--safereactstorybook.review.gnosisdev.com

@ghost
Copy link

ghost commented Sep 23, 2019

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

Storybook book automatic deployment:
https://pr179--safereactstorybook.review.gnosisdev.com

@mmv08 mmv08 removed the WIP label Sep 23, 2019
@ghost
Copy link

ghost commented Sep 23, 2019

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

Storybook book automatic deployment:
https://pr179--safereactstorybook.review.gnosisdev.com

Copy link
Member

@lukasschor lukasschor left a comment

Choose a reason for hiding this comment

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

Looks good to me now. 👍

src/logic/safe/utils/safeStorage.js Outdated Show resolved Hide resolved
src/routes/index.js Outdated Show resolved Hide resolved
@ghost
Copy link

ghost commented Sep 24, 2019

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

Storybook book automatic deployment:
https://pr179--safereactstorybook.review.gnosisdev.com

@mmv08 mmv08 merged commit baae350 into development Sep 24, 2019
@mmv08 mmv08 deleted the 74-safe-list-sidebar branch September 24, 2019 09:43
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.

3 participants