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
Add enabled/disabled badge for OTP & Webauthn #3936
Add enabled/disabled badge for OTP & Webauthn #3936
Conversation
d25c31c
to
c4e72d0
Compare
Codecov Report
@@ Coverage Diff @@
## master #3936 +/- ##
=======================================
Coverage 98.80% 98.80%
=======================================
Files 217 217
Lines 5417 5436 +19
=======================================
+ Hits 5352 5371 +19
Misses 65 65
|
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.
Adding these pills/badges is a huge UX upgrade! It's a lot easier to tell at a glance what's enabled vs. disabled 💯 .
I'm torn on this visual treatment though. It's looks too similar to the buttons. There's a few tweaks we can make (e.g. revising the colour, border-radius, font-weight/font-size). We're close, some minor tweaks should get us there.
c4e72d0
to
4d7d1d6
Compare
Agreed on it being too similar to the buttons, I just used the .css from the draft without too much thought, I'm not much of a designer but I inverted the colour of the text and got rid of the actual "pill" outline part of the badge and think it actually looks pretty good this way. I tried it with a black/grey outline but found it looks better without the outline when the text is orange. Let me know your thoughts! |
0848755
to
fa90b0e
Compare
Improved the styling with Betty and removed the |
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'm not the person to be giving idiomatic css feedback 😂 but with the context I have this looks good George! :)
Should be good now with the new changes: (thanks @jenshenny!) |
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.
Looking good from the screenshot! However, I don't see the colour + gap changes up when I tested the branch again. Did you push these changes up?
a97899d
to
3d9cc1b
Compare
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.
We're in the right direction 😄! Got some small changes and additional thought on colour palette to consider.
b89960c
to
bcd43ba
Compare
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.
Small fix and then I've got no more comments 😝 . Thanks a bunch!
76706cc
to
e9075f1
Compare
I really like this, looks really good - miles better than what we started with 👍. Could you update the original PR description to include the screenshot with the final implementation, just so it's clear at first glance what the outcome of this PR was? |
Appreciate the fantastic .css feedback, Betty/Jenny! I also think this looks mighty fine now, and can do Eric! edit: updated the PR description with the new design! |
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.
Looks briliant!
cfc4d3d
to
dcb8992
Compare
Co-authored-by: Betty Li <betty.li@shopify.com>
dcb8992
to
711f894
Compare
What problem are you solving?
Closes: https://github.com/Shopify/ruby-dependency-security/issues/320
What approach did you choose and why?
Added a badge to easily at a glance see whether your MFA is enabled / disabled.
Testing
Visit: http://localhost:3000/settings/edit, see that OTP / Webauthn are "Disabled" initially. Add OTP / Webauthn and then see that they change to "Enabled"
Final design: