Skip to content

Conversation

@aizad-deriv
Copy link
Contributor

@aizad-deriv aizad-deriv commented Nov 22, 2023

Change Password Validation behaviour to match with Production.

Changes:

  • created passwordUtils and passwordConstants to have password validation functionalities.
  • remove existing PasswordFieldUtils
  • added messageVariant inside of <HelperMessage /> to show messages in different colors
  • refactor component accordingly based on the changes mentioned above.

Screenshots:

Screen.Recording.2023-11-21.at.4.03.19.PM.mov

- updated WalletPasswordField by using third party lib
- WalletPasswordField has new error message and new scoring system
- updated HelperMessage by accepting variants
- created hook for PasswordValidation
- move regex values to constant file
- seperate hook funtionality
- resolve comments
- make usePasswordValidation into a util function
- make change accordingly based on the changes
- remove usePasswordValidation hook
@vercel
Copy link

vercel bot commented Nov 22, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
deriv-app ✅ Ready (Inspect) Visit Preview Nov 23, 2023 4:06am

@github-actions
Copy link
Contributor

github-actions bot commented Nov 22, 2023

A production App ID was automatically generated for this PR. (log)

Click here to copy & paste above information.
- **PR**: [https://github.com/binary-com/deriv-app/pull/11657](https://github.com/binary-com/deriv-app/pull/11657)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-aizad-deriv-aizad-wall-2637password-v-4dafba.binary.sx?qa_server=red.derivws.com&app_id=32930
    - **Original**: https://deriv-app-git-fork-aizad-deriv-aizad-wall-2637password-v-4dafba.binary.sx
- **App ID**: `32930`

@github-actions
Copy link
Contributor

github-actions bot commented Nov 22, 2023

🚨 Lighthouse report for the changes in this PR:

Category Score
🔺 Performance 16
🟧 Accessibility 75
🟢 Best practices 92
🟧 SEO 85
🟧 PWA 80

Lighthouse ran with https://deriv-app-git-fork-aizad-deriv-aizad-wall-2637password-v-4dafba.binary.sx/

@coveralls
Copy link

coveralls commented Nov 22, 2023

Coverage Status

coverage: 28.195% (+0.09%) from 28.103%
when pulling 90cfb0a on aizad-deriv:aizad/WALL-2637/password-validation-issue
into a03c98a on binary-com:master.

adrienne-deriv
adrienne-deriv previously approved these changes Nov 22, 2023
Copy link
Contributor

@adrienne-deriv adrienne-deriv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

ghost
ghost previously approved these changes Nov 22, 2023
yashim-deriv
yashim-deriv previously approved these changes Nov 23, 2023
@github-actions
Copy link
Contributor

🚀 Smoke test run (2) passed successfully!

@github-actions
Copy link
Contributor

🚀 Smoke test run (2) passed successfully!

@github-actions
Copy link
Contributor

🚀 Smoke test run (1) passed successfully!

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link
Contributor

🚀 Smoke test run (1) passed successfully!

@github-actions
Copy link
Contributor

🚀 Smoke test run (2) passed successfully!

@github-actions
Copy link
Contributor

❌ Smoke test run (2) failed. See logs for details: Visit Action

@github-actions
Copy link
Contributor

Generating Lighthouse report...

Copy link
Contributor

@adrienne-deriv adrienne-deriv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@matin-deriv matin-deriv merged commit b68ddfc into deriv-com:master Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants