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

UI/UX for repeting 24 words #163

Merged
merged 7 commits into from
Feb 25, 2022
Merged

UI/UX for repeting 24 words #163

merged 7 commits into from
Feb 25, 2022

Conversation

lucachaco
Copy link
Contributor

@lucachaco lucachaco commented Feb 23, 2022

Merge first: #162
Button will be refactor with navigation ticket
Ok, I fixed the styles for IOS. Now working on the remaining small changes
New Screenshot:
image

Old screenshot:
image

@lucachaco lucachaco changed the base branch from develop to US-588 February 23, 2022 01:17
Copy link
Member

@jessgusclark jessgusclark left a comment

Choose a reason for hiding this comment

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

See the comments in the other PR about alignment

Move WordInput to its own component file. Let's try to keep our files as small as possible. This will help with readability for future developers

On my device it looks like this:
Screen Shot 2022-02-23 at 1 46 22 PM

I was going to suggest that you have a 'disabled' state instead of showing a blank spot.

Also, you should be able to do the bottom purple background without needing the navigation.

@ilanolkies ilanolkies added onboarding Onboarding ui User interface labels Feb 24, 2022
@ilanolkies ilanolkies added this to the v1.0.0 milestone Feb 24, 2022
Copy link
Contributor

@ilanolkies ilanolkies left a comment

Choose a reason for hiding this comment

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

Code LGTM. Great job

I was going to suggest that you have a 'disabled' state instead of showing a blank spot.

I don't see it necessary. Again, we can ask for a better design later but nothing was defined about it. I would leave it as it is and spend our time in next work

Also, you should be able to do the bottom purple background without needing the navigation.

@jessgusclark what do you mean with this?

src/ux/createKeys/new/ConfirmNewMasterKeyScreen.tsx Outdated Show resolved Hide resolved
const selectWord = (selectedWord: string) => {
const a = [...selectedWords, selectedWord]
setSelectedWords(a)
setWords(words.filter(word => !a.find(w => w === word)))
Copy link
Contributor

Choose a reason for hiding this comment

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

I see this can make conflict with repeated words. If you click the second appearance of the word, the first will be removed 🤔 didn't test it out anyway

This takes me back some years when MyCrypto UI failed for me MyCryptoHQ/MyCrypto#2197

We need to remove them from the available words using the word index rather than the word as is

Copy link
Contributor Author

Choose a reason for hiding this comment

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

wow I didnt know we could have repeated words :O

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The find() method returns only the first element in the provided array that satisfies the provided testing function. So, only one word will be removed. So we are good.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok I tested out the case. It works weird. I will open an issue

Screen.Recording.2022-02-25.at.20.31.03.mov

src/ux/createKeys/new/ConfirmNewMasterKeyScreen.tsx Outdated Show resolved Hide resolved
@jessgusclark
Copy link
Member

@lucachaco Regarding the purple (blue/color/etc) at the bottom. The design looks like this:

Screen Shot 2022-02-24 at 11 21 10 AM

The words to select/click should have a different background color than the top.

@lucachaco
Copy link
Contributor Author

Ok, now I get what you mean with purple (blue/color/etc) at the bottom comment.

Copy link
Contributor

@ilanolkies ilanolkies left a comment

Choose a reason for hiding this comment

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

Great job!!

@ilanolkies ilanolkies merged commit 5e8587e into US-588 Feb 25, 2022
ilanolkies added a commit that referenced this pull request Feb 25, 2022
* fix: refactor see 24 words screen

* fix: remove typo

* fix: update navation name

* fix: changes styles to make it on ios

* fix: changes styles to make it on ios

* fix: refactor word into component

* fix: change styles

* fix: change styles

* fix: change colors

* UI/UX for repeting 24 words (#163)

* fix: confirm seed phrase

* fix: shuffle words

* fix: lint code

* fix: change badge styles for IOS

* fix: change styles

* fix: change colors

* Update src/ux/createKeys/new/ConfirmNewMasterKeyScreen.tsx

Co-authored-by: Ilan <36084092+ilanolkies@users.noreply.github.com>

Co-authored-by: Ilan <36084092+ilanolkies@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
onboarding Onboarding ui User interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants