-
Notifications
You must be signed in to change notification settings - Fork 985
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
Wallet: generate new keypair UI #18045
Conversation
Jenkins BuildsClick to see older builds (8)
|
[utils.i18n :as i18n] | ||
[utils.re-frame :as rf])) | ||
|
||
;; Temporary 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.
can we put this in the temp file as it makes it easier to know what we have to clean later? 🙏
[quo/text {:style {:margin-left 4}} item]]) | ||
|
||
(defn words-column | ||
[words first?] |
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.
first?
is a bit misleading here. I think you want first-half?
or perhaps I misunderstood :)
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.
can we mark these helper components as private too?
:render-data (if first? 1 7) | ||
:scroll-enabled false}]) | ||
|
||
(defn step-item |
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.
should step item be private?
[{:keys [theme]}] | ||
(let [steps [:t/backup-step-1 :t/backup-step-2 :t/backup-step-3 | ||
:t/backup-step-4] | ||
checked (reagent/atom {:0 false :1 false :2 false :3 false}) |
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.
imo it's easier to read if you align the map keys
(reagent/atom
{:0 false
:1 false
:2 false
:3 false})
:scroll-enabled false}]) | ||
|
||
(defn step-item | ||
[item index _ checked] |
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.
maybe we should add "?", i.e checked?
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.
item is just a label in this case? maybe it's a clearer name?
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.
step-item
in every step component (checkbox + text) under "How to backup your recovery phrase"
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.
I meant the first argument here btw, "item", since the use of it is just a label it might be clearer of the use if you change it to that. (defn step-item [label index _ checked]
|
||
(defn- view-internal | ||
[{:keys [theme]}] | ||
(let [steps [:t/backup-step-1 :t/backup-step-2 :t/backup-step-3 |
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.
perhaps step-labels
is clearer?
@@ -8,6 +8,24 @@ | |||
[utils.i18n :as i18n] | |||
[utils.re-frame :as rf])) | |||
|
|||
(defn keypair-options |
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.
maybe we should put this in a separate options file?
e.g src/status_im2/contexts/wallet/create_account/select_keypair/options.cljs
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.
select_keypair/options.cljs
@J-Son89 I don't think we should be rendering views in files named other than view
.
Also, I think this is a small component to put in a separate namespace, and is not reused in other screens.
435e098
to
b2709cf
Compare
@J-Son89 please rereview 🙏 |
@@ -0,0 +1,5 @@ | |||
{:lint-as |
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.
revert
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.
Here's the design review :)
b2709cf
to
0cd59c4
Compare
* feat: new keypair flow ui
fixes: #17962
This PR implements generating new keypair flow UI (until showing the secret phrase to the user). This PR has no re-frame or status-go integration.
Designs
Demo:
Screen_Recording_20231201_164017_Status.Debug.mp4