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

SCP-2430 - Save contract nicknames locally in the browser. #3433

Merged
merged 4 commits into from
Jun 28, 2021

Conversation

merivale
Copy link
Contributor

@merivale merivale commented Jun 25, 2021

The main purpose of this PR is to make contract nicknames editable, and save these in localStorage. But while I was at it I tidied up the way localStorage things are handled, making the ManageMarloweStorage capability the only thing that interacts with localStorage directly. And removing the unwanted feature of prompting users to start using the wallet they were using last time (no longer saving this to localStorage).

I also made an unrelated improvement along the way - deleting some duplicate metadata lenses, and moving some others into web-common-marlowe.

@merivale merivale requested a review from hrajchert June 25, 2021 13:14
Copy link
Contributor

@hrajchert hrajchert left a comment

Choose a reason for hiding this comment

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

LGTM, but how are we gonna share the nickname with other participants? Or is it always local?

@merivale
Copy link
Contributor Author

Yeah, it's just going to be local for now. Simon and Russ really wanted them to be editable, and this is better than nothing. If we want to share the names, that's ultimately probably a job for the metadata server.

@merivale merivale merged commit 016e405 into master Jun 28, 2021
@merivale merivale deleted the merivale/local-contract-nicknames branch June 28, 2021 10:45
koslambrou pushed a commit that referenced this pull request Jun 29, 2021
* Saving contract nicknames in localStorage.

* Adding placeholder name for new contracts.

* Making contract nicknames editable in the contract card.

* Review feedback.
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