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

feat: 3rd party payment dispute reason added #8464

Merged

Conversation

nada-deriv
Copy link
Contributor

Changes:

Please include a summary of the change and which issue is fixed below:

  • ... Added 3rd party payment dispute reason for sellers.

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 May 4, 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 Aug 16, 2023 7:06am

@github-actions
Copy link
Contributor

github-actions bot commented May 4, 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/8464](https://github.com/binary-com/deriv-app/pull/8464)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-nada-deriv-nada-p2ps-216dispute-reason.binary.sx?qa_server=red.binaryws.com&app_id=32108
    - **Original**: https://deriv-app-git-fork-nada-deriv-nada-p2ps-216dispute-reason.binary.sx
- **App ID**: `32108`

@github-actions
Copy link
Contributor

github-actions bot commented May 4, 2023

🚨 Lighthouse report for the changes in this PR:

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

Lighthouse ran with https://deriv-app-git-fork-nada-deriv-nada-p2ps-216dispute-reason.binary.sx/

</label>
</ItemWrapper>
))}
children.map(
Copy link
Contributor

Choose a reason for hiding this comment

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

what about using a filter children instead of adding this condition here?

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 May 5, 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 👍

ameerul-deriv
ameerul-deriv previously approved these changes May 8, 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

.filter(item => !item.props.is_hidden)
.map(
item =>
!item.props.is_hidden && (
Copy link
Contributor

Choose a reason for hiding this comment

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

We dont need this condition here anymore right?

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

@sonarcloud
Copy link

sonarcloud bot commented May 8, 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

@codecov-commenter
Copy link

codecov-commenter commented May 8, 2023

Codecov Report

Merging #8464 (15c265e) into master (d5c38a0) will increase coverage by 20.75%.
Report is 214 commits behind head on master.
The diff coverage is 0.00%.

❗ Current head 15c265e differs from pull request most recent head dffc60b. Consider uploading reports for the commit dffc60b to get more accurate results

@@             Coverage Diff             @@
##           master    #8464       +/-   ##
===========================================
+ Coverage    0.05%   20.81%   +20.75%     
===========================================
  Files         117     1561     +1444     
  Lines        3425    36119    +32694     
  Branches      893     7091     +6198     
===========================================
+ Hits            2     7518     +7516     
- Misses       3423    27859    +24436     
- Partials        0      742      +742     
Files Changed Coverage Δ
...ponents/src/components/radio-group/radio-group.tsx 0.00% <0.00%> (ø)
...tails/order-details-complain-modal-radio-group.jsx 0.00% <ø> (ø)

... and 1598 files with indirect coverage changes

@github-actions
Copy link
Contributor

github-actions bot commented Jul 9, 2023

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Jul 9, 2023
@gitguardian
Copy link

gitguardian bot commented Jul 10, 2023

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id Secret Commit Filename
- Generic High Entropy Secret faa2883 packages/account/src/Components/currency-selector/tests/currency-selector.spec.tsx View secret
- Generic High Entropy Secret faa2883 packages/account/src/Components/currency-selector/tests/currency-selector.spec.tsx View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

@coveralls
Copy link

coveralls commented Jul 10, 2023

Coverage Status

coverage: 10.145% (+0.3%) from 9.826% when pulling dffc60b on nada-deriv:nada/P2PS-216/dispute-reason into 440be0a on binary-com:master.

farrah-deriv
farrah-deriv previously approved these changes Aug 15, 2023
value: string;
label: string;
disabled: boolean;
is_hidden?: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't you need to give this a falsy default value so that the rest of the usage won't fail? (better to false than undefined in line no.55)

As you work on updating the shared component, please remember to incorporate the QA checklist for all the areas where this component has been utilised.

@sonarcloud
Copy link

sonarcloud bot commented Aug 16, 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

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 👍

@bahar-sadeghzadeh bahar-sadeghzadeh merged commit e6fc72e into binary-com:master Sep 14, 2023
3 of 4 checks passed
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