-
Notifications
You must be signed in to change notification settings - Fork 15
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: Crypto-to-fiat account area UI fixes #2798
Conversation
e65aa3d
to
b0db6b9
Compare
724adc3
to
fe2693e
Compare
fe2693e
to
f087494
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.
Hey @mmioana nice start on all the UI updates. Some feedback on this one below.
- Number 3 from my issue still requires updates - this is removing the {fieldName} and using the label for nicer copy and better UX.
- When I input an email with incorrect format, I receive no error validation error.
- The stepped navigation should not be intractable. It's a visual indicator, with no navigation here.
Right now, I can skip through and bypass the terms.
Video:
- Can you kindly change the 'KYC form' in the stepped pill to be 'KYC'.
- I can't submit the first CTA in the KYC modal. So I can't test the rest of the PR such as the bank details modal andother status pill updates. :(
Hey @melyndav thank you for reviewing this PR 🌟 Some of the error messages I didn't properly update, but now they should be in place ✨ Regarding your point 2. When I input an email with incorrect format, I receive no error validation error. For further testing the flow, you'll need to manually update a key, but let me know when you plan to re-test this PR so we can sync 🙏 |
Hey @melyndav 🌻 how would you like to proceed for the email validation? |
Hey @mmioana this is fine to continue using the Yup library for this. You can ignore point 2 of my feedback. |
Cool @melyndav! Either way if you want to enforce stricter validation, just let me know. |
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.
Awesome work on this @mmioana ! ✨
The badge colour, font weights, spacings and most importantly, the error messages are now much more pleasant to read 😄
Fix: Crypto-to-fiat account area UI fixes
…form stepper Fix: Changes for KYC form error messages and removal of bank details form stepper
Fix: Changes after rebase and minor improvements
Fix: Changes after review
Fix: Updates after rebase and update EUR required fields errors
72d658e
to
56ad214
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.
Hey @mmioana thanks for the further updates on this PR! Everything is looking great and all the issues have been resolved. Thanks for your effort on this one 🥇
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.
Hey @mmioana ✨! Thanks for this beautiful changes 🤩
Validation and paddings looks great!
There is no scroll on Bridge embed tab:
"Approve" pill has correct color, "optional" has correct "O" capital, 'Bank, address and currency information' title has correct medium font weight.
export function formErrorMessage( | ||
fieldName: MessageDescriptor, | ||
validationMessage: 'required' | 'min' | 'max' | 'invalid' | 'length', | ||
length?: number, | ||
) { | ||
if ( | ||
(validationMessage === 'min' || | ||
validationMessage === 'max' || | ||
validationMessage === 'length') && | ||
length === undefined | ||
) { | ||
throw new Error( | ||
'length is required when validationMessage is min, max or length', | ||
); | ||
} |
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.
good point! 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.
@rumzledz is the master of disaster for this 🥇
Description
This PR contains UI styling changes for the Crypto-to-fiat user account page
Figma link
KYC Personal details modal
Additional space is required between the close X and the stepper component to not only match Figma but make this modal consistent with global modals.
Padding needs to be adjusted between the last field of the form and the button row. Also, padding needs to be adjusted between the CTA's and bottom of the modal (again, to align it globally).
Figma:
KYC Terms modal
Can you please kindly adjust the modal height to accommodate the Bridge embed, so the scrollbar isn't triggered inside the modal.
Completing the KYC modal
Upon completion of the KYC steps and after closing the bridge modal, the UI doesn't give any feedback at all about the status of my verification or that, in fact, I've completed it. This is confusing because I think I need to go back into the KYC flow because nothing is returned. Can we have a solution here that provides the issue with an update upon the bridge modal closing without making the user refresh manually.
C2F page
Bank details modal
Component link: https://www.figma.com/design/l1dOM5qiQYwF0ElvKDqqjg/Design-System---Colony-v3?node-id=2706-1485&t=MkbiMKMM96kcL0sB-4
Examples of empty inputs:
Heading: Something went wrong
Text: Your bank details could not be updated at this time
Testing
Make sure to have the
POSTHOG_
variables set in.env.local.secrets
(if you don't have them please PING me)Connect your wallet to
leela
Go to
http://localhost:9091/account/crypto-to-fiat
Check page sections and modals styling
Resolves #2741
Resolves #2742 - with special thanks to @rumzledz