-
Notifications
You must be signed in to change notification settings - Fork 5
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
fix: refactor see 24 words screen #162
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good and thanks for leaving a note about the button being removed in the future. For the buttons and the styles a few comments:
- column should be left aligned so that the numbers line up
- the words need a borderRadius and need more padding (10 perhaps?)
- more padding/margin at the top of the app before the heading
- more padding/margin below the heading
- make the overall font size a touch bigger for the numbers and words
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR looks really good to me. I didn't run it yet, just few comments on the code.
On older commetns:
- Agree
- Great! Now that we are working strictly on UI, I would go through the PRs in both operating systems. If no solution is found, please mark it in the code and will see in further iterations. We need to focus on delivering both devices ok but it is not an easy work so we might need to re-iterate
- and 4. "cant give much more margin" seems correct -- also, "make the overall font size a touch bigger" and "in order to fit in a small device": agree with both too. Let's keep this sizes and request better UI design increasing on accessibility
{rows.map((row, i) => ( | ||
<View style={grid.row}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{rows.map((row, i) => ( | |
<View style={grid.row}> | |
{rows.map((row, i) => { | |
const columnWordIndex = [row, row + rows.length, row + rows.length * 2] | |
return ( | |
<View style={grid.row}> |
This will prevent rewriting word index calculation, then use columnWordIndex[0]
, columnWordIndex[1]
and columnWordIndex[2]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This, together with the other comment, will make code much cleaner and editable IMO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But is the same since i then would need to use row -1
to access the words array. I rather start from 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My comment was more like thinking on preventing writing row + rows.length * column
twice. So calculating what goes in each column would be better.
wordNumber={thing + 1}
text={words[thing]}
Still, we can see it later no worries
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now also thinking why we align things on rows and not in columns. We can use @jessgusclark 's grid system. See https://github.com/rsksmart/swallet/blob/ad4c79849437a25d951ad56489601603829abe9f/src/styles/grid.ts#L37-L40
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opening a refactoring issue. No need to see all this now. It is pretty clear how it works
* 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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice job! Took time but it worth it
Addressed most of the things. We can loop back after new UI design is handed in
New screenshots:
![image](https://user-images.githubusercontent.com/85146/155384394-1435ad65-2926-4388-a22c-f803597b76d3.png)
The white button is temporal to enable navigation. It will be removed when the new footer is implemented
Old screenshot:
![image](https://user-images.githubusercontent.com/85146/155218059-8563d4d5-f3ec-4101-b087-0e1e69f065f5.png)