Skip to content
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

[Wallets] Responsive view for success and password modal #10871

Merged

Conversation

adrienne-deriv
Copy link
Contributor

@adrienne-deriv adrienne-deriv commented Oct 23, 2023

Changes:

Please provide a summary of the change.

Screenshots:

  • Added responsive view for success and password modal variants
  • Fixed an issue where the primary button for password is not disabled when user has not typed anything
  • Added base component for button grouping WalletButtonGroup

Please provide some screenshots of the change.

@vercel
Copy link

vercel bot commented Oct 23, 2023

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

Name Status Preview Updated (UTC)
deriv-app ✅ Ready (Inspect) Visit Preview Oct 24, 2023 6:13am

@github-actions
Copy link
Contributor

github-actions bot commented Oct 23, 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/10871](https://github.com/binary-com/deriv-app/pull/10871)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-adrienne-deriv-success-modal-responsive.binary.sx?qa_server=red.binaryws.com&app_id=24197
    - **Original**: https://deriv-app-git-fork-adrienne-deriv-success-modal-responsive.binary.sx
- **App ID**: `24197`

@github-actions
Copy link
Contributor

github-actions bot commented Oct 23, 2023

🚨 Lighthouse report for the changes in this PR:

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

Lighthouse ran with https://deriv-app-git-fork-adrienne-deriv-success-modal-responsive.binary.sx/

@@ -12,16 +12,18 @@
grid-template-rows: 9% auto;

&--fixed {
grid-template-rows: 9% auto 8%;
grid-template-rows: 7% auto 8%;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reduced the header height

);
};

export default WalletButtonGroup;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a new base component to group buttons.
Screenshot 2023-10-23 at 1 30 51 PM

Screenshot 2023-10-23 at 1 30 57 PM

Adding isVertical option allows the button grouping to be grouped vertically:
Screenshot 2023-10-23 at 1 31 04 PM

</button>
{!isMobile && (
<WalletButton
disabled={!password}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed an issue where the button is not disabled when user has not entered any password. In design the button was disabled when input was empty

Screen.Recording.2023-10-23.at.1.15.49.PM.mov

@coveralls
Copy link

coveralls commented Oct 23, 2023

Coverage Status

coverage: 26.752%. remained the same when pulling 3c4f211 on adrienne-deriv:success-modal-responsive into 43ec46e on binary-com:master.

platform='mt5'
/>
))}
</ModalStepWrapper>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

EnterPassword

Screenshot 2023-10-23 at 2 32 24 PM

Success

Screenshot 2023-10-23 at 2 32 33 PM

CreatePassword

Screenshot 2023-10-23 at 2 32 45 PM

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's use the components we already created from the base for this file 😃 👍🏼

@sonarcloud
Copy link

sonarcloud bot commented Oct 24, 2023

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 5 Code Smells

No Coverage information No Coverage information
1.6% 1.6% Duplication

@yashim-deriv yashim-deriv merged commit 480519f into binary-com:master Oct 24, 2023
6 checks passed
aum-deriv pushed a commit to aum-deriv/deriv-app that referenced this pull request Oct 24, 2023
…-com#10871)

* chore: backup

* chore: added responsive view for success and password modal

* chore: reverted test changes

* chore: removed unused scss file

* chore: removed unused scss file

* chore: fix eslint issues

* chore: fix eslint issues

* chore: removed unused css and fix padding issue in header step modal

* chore: refactored code based on reviews

* chore: remove usage of children

* chore: fix eslint issues
likhith-deriv pushed a commit to likhith-deriv/deriv-app that referenced this pull request Oct 25, 2023
…-com#10871)

* chore: backup

* chore: added responsive view for success and password modal

* chore: reverted test changes

* chore: removed unused scss file

* chore: removed unused scss file

* chore: fix eslint issues

* chore: fix eslint issues

* chore: removed unused css and fix padding issue in header step modal

* chore: refactored code based on reviews

* chore: remove usage of children

* chore: fix eslint issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants