-
Notifications
You must be signed in to change notification settings - Fork 9
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
Split TOTP instruction into two steps #100
Conversation
6ee043a
to
e700642
Compare
background: #3858E9 !important; | ||
border-color: #3858E9 !important; | ||
color: $white !important; | ||
margin-right: 0 !important; |
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.
Probably not a good idea to use that many !important
, but as I don't want to build a button from scratch here, I just overrode the styles of Button from Gutenberg.
margin-right: 24px; | ||
} | ||
} | ||
} |
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.
In this PR, there are still some files that haven't been well formatted yet. I will use the linter to fix them all at once later in a separate commit.
setInputs={setInputs} | ||
/> | ||
|
||
<Button variant="link" onClick={ handleClick }>Previous</Button> |
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.
How does this differ from the "cancel" button under the 6 inputs?
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.
Oh, right! Originally, when the cancel was clicked, it would return to the account status screen. Replacing previous
for that would make the look better. Thanks!
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 found that it makes sense to me to use the Cancel
button to clear all 6 inputs and keep the previous
button.
Commit added: Let Cancel clear all the inputs
I don't find the introduction tab does enough for it to warrant it's own tab to be honest. If it did a better job helping the setup, I would be interested in it, but since it just lists a few links, it seems like an extra interaction. I personally like how github does it: I do very much like the input updates however. Does it make sense to split this up into those two features? One were we just update the code scan inputs and one that includes this extra "step"? |
Thanks for the ping, thank you for the video, that's useful as I'm not able to review the checked out branch. Thank you also for the attention to detail. First off, I think that longer term we should move towards something like this. That is:
For the near term, it looks a bit off to combine the blueberry with the classic WordPress blue. So you can think of the blueberry as a "spot color" — it should always be the spot color of the surrounding template. That surrounding template should eventually be updated to use blueberry, the sooner the better of course. But it's okay to keep the colors the same in the mean time. Same for the componentry — outside of an updated notice component, it's okay to use the existing notice component. Something like this: |
It was suggested to splitting this up into two steps in that the original look was considered a bit packed together. I guess the main difference between us and Github is that we try to provide a few explanations and introductions about 2FA for .org here, whereas Github has a whole section dedicated to it. If we can provide more information on the introduction page, then that page may have more value. However, I personally feel that we can also simply provide the feature like Github does, without any introductory text in that maybe 2fa is common enough (maybe?) This way, we can have things on one page. @jasmussen Do you have any thoughts on what @StevenDufresne brought up ^? Regarding the repositioning of the notice, what's your thought on the things to see when there is no notice? |
If the point is to combine two steps into one, I think that's fine. I'd suggest that also gives an opportunity to do a pass on the text, reduce when there's overlap. Less is always more when it comes to that. Doesn't have to be this PR, just noting.
It's fine that the notice pushes content around 👍 👍 But especially if two steps are combined into one, it'd be good to reduce elements (such as text) as much as possible, so we still mostly retain the same footprint and shape of the overall box. If you can try it and add a screenshot, I can give some suggestions on that if helpful. |
d806f40
to
78797a6
Compare
c4da34c
to
cba6a73
Compare
Fixes #93
This PR
Screencast
totp.mp4
TODO
Error Notice
, or the current layout is acceptable? (screencast 0:40) @jasmussen @iandunnUpdate