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

fix: fixed redirection back to dp2p #7609

Merged
merged 21 commits into from
May 30, 2023

Conversation

nada-deriv
Copy link
Contributor

Changes:

Please include a summary of the change and which issue is fixed below:
Fixed redirection issue onclick backtop2p button after poi submission

  • ...

When you need to add unit test

  • If this change disrupt current flow
  • If this change is adding new flow

When you need to add integration test

  • If components from external libraries are being used to define the flow, e.g. @deriv/components
  • If it relies on a very specific set of props with no default behavior for the current component.

Test coverage checklist (for reviewer)

  • Ensure utility / function has a test case
  • Ensure all the tests are passing

Type of change

  • Bug fix
  • New feature
  • Update feature
  • Refactor code
  • Translation to code
  • Translation to crowdin
  • Script configuration
  • Improve performance
  • Style only
  • Dependency update
  • Documentation update
  • Release

@vercel
Copy link

vercel bot commented Feb 15, 2023

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

Name Status Preview Comments Updated (UTC)
deriv-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 24, 2023 11:13am

@github-actions
Copy link
Contributor

github-actions bot commented Feb 15, 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/7609](https://github.com/binary-com/deriv-app/pull/7609)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-nada-deriv-nada-88485back-to-p2p-fix.binary.sx?qa_server=red.binaryws.com&app_id=23926
    - **Original**: https://deriv-app-git-fork-nada-deriv-nada-88485back-to-p2p-fix.binary.sx
- **App ID**: `23926`

@github-actions
Copy link
Contributor

github-actions bot commented Feb 15, 2023

🚨 Lighthouse report for the changes in this PR:

Category Score
🔺 Performance 18
🟧 Accessibility 75
🟢 Best practices 92
🟧 SEO 85
🟢 PWA 90

Lighthouse ran with https://deriv-app-git-fork-nada-deriv-nada-88485back-to-p2p-fix.binary.sx/

@codecov-commenter
Copy link

codecov-commenter commented Feb 15, 2023

Codecov Report

Merging #7609 (e8bd136) into master (678b7ef) will increase coverage by 0.06%.
The diff coverage is 4.34%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##           master    #7609      +/-   ##
==========================================
+ Coverage   20.72%   20.78%   +0.06%     
==========================================
  Files        1538     1553      +15     
  Lines       35945    36057     +112     
  Branches     7031     7058      +27     
==========================================
+ Hits         7449     7495      +46     
- Misses      27750    27823      +73     
+ Partials      746      739       -7     
Impacted Files Coverage Δ
...status/idv-submit-complete/idv-submit-complete.tsx 100.00% <ø> (ø)
...tion/ProofOfAddress/proof-of-address-container.jsx 0.00% <0.00%> (ø)
...on/ProofOfIdentity/proof-of-identity-container.jsx 0.00% <0.00%> (ø)
packages/core/src/Stores/common-store.js 0.00% <0.00%> (ø)
...s/p2p/src/components/verification/verification.jsx 52.00% <0.00%> (-20.23%) ⬇️
packages/shared/src/utils/platform/platform.ts 14.13% <50.00%> (+0.58%) ⬆️

... and 54 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

className='proof-of-identity__redirect'
onClick={() => {
if (platforms[from_platform.name?.toLowerCase()].is_hard_redirect) {
window.location.href = platforms[from_platform.name?.toLowerCase()].url;
Copy link
Contributor

Choose a reason for hiding this comment

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

This pattern may cause security issues, please change it like this 🙏

Suggested change
window.location.href = platforms[from_platform.name?.toLowerCase()].url;
const url = platforms[from_platform.name?.toLowerCase()].url;
window.location.href = url;

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

niloofar-deriv
niloofar-deriv previously approved these changes Feb 15, 2023
Copy link
Contributor

@niloofar-deriv niloofar-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 👍

adrienne-deriv
adrienne-deriv previously approved these changes Feb 16, 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

ameerul-deriv
ameerul-deriv previously approved these changes Feb 21, 2023
@boring-cyborg boring-cyborg bot added the P2P label Feb 23, 2023
@nada-deriv nada-deriv changed the base branch from develop to master March 8, 2023 09:38
@nada-deriv nada-deriv dismissed stale reviews from ameerul-deriv, adrienne-deriv, and niloofar-deriv March 8, 2023 09:38

The base branch was changed.

niloofar-deriv
niloofar-deriv previously approved these changes Mar 22, 2023
ameerul-deriv
ameerul-deriv previously approved these changes Apr 3, 2023
Copy link
Contributor

@ameerul-deriv ameerul-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

niloofar-deriv
niloofar-deriv previously approved these changes Apr 3, 2023
Copy link
Contributor

@niloofar-deriv niloofar-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

farrah-deriv
farrah-deriv previously approved these changes Apr 18, 2023
@boring-cyborg boring-cyborg bot added the Core label Apr 24, 2023
@sonarcloud
Copy link

sonarcloud bot commented Apr 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 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link
Contributor

Generating Lighthouse report...

@amina-deriv amina-deriv merged commit e4b2c0c into binary-com:master May 30, 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.

9 participants