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

Ameerul /Task 77336 Error model content required when user tries to block an advertiser who is banned from P2P #7673

Conversation

ameerul-deriv
Copy link
Contributor

Changes:

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

  • Changed error message for when user tries to block/unblock a banned user from p2p

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

@boring-cyborg boring-cyborg bot added the P2P label Feb 21, 2023
@vercel
Copy link

vercel bot commented Feb 21, 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 May 8, 2023 2:21am

@github-actions
Copy link
Contributor

github-actions bot commented Feb 21, 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/7673](https://github.com/binary-com/deriv-app/pull/7673)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-ameerul-deriv-task-77336-error-model-ba8a78.binary.sx?qa_server=red.binaryws.com&app_id=24199
    - **Original**: https://deriv-app-git-fork-ameerul-deriv-task-77336-error-model-ba8a78.binary.sx
- **App ID**: `24199`

@github-actions
Copy link
Contributor

github-actions bot commented Feb 21, 2023

🚨 Lighthouse report for the changes in this PR:

Category Score
🔺 Performance 22
🟧 Accessibility 88
🟢 Best practices 92
🟢 SEO 92
🟢 PWA 90

Lighthouse ran with https://deriv-app-git-fork-ameerul-deriv-task-77336-error-model-ba8a78.binary.sx/

@codecov-commenter
Copy link

codecov-commenter commented Feb 21, 2023

Codecov Report

Merging #7673 (2bdf17b) into master (3c4cefc) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

📣 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    #7673      +/-   ##
==========================================
- Coverage   20.81%   20.80%   -0.02%     
==========================================
  Files        1561     1561              
  Lines       36117    36143      +26     
  Branches     7090     7101      +11     
==========================================
  Hits         7518     7518              
- Misses      27857    27883      +26     
  Partials      742      742              
Impacted Files Coverage Δ
...src/components/advertiser-page/advertiser-page.jsx 1.78% <0.00%> (-0.14%) ⬇️
...s/modal-manager/modals/error-modal/error-modal.jsx 0.00% <0.00%> (ø)
...ile/block-user/block-user-list/block-user-list.jsx 0.00% <0.00%> (ø)
...rc/components/my-profile/block-user/block-user.jsx 0.00% <0.00%> (ø)
packages/p2p/src/constants/api-error-codes.js 100.00% <ø> (ø)
packages/p2p/src/stores/general-store.js 0.00% <0.00%> (ø)
packages/p2p/src/stores/my-profile-store.js 0.00% <0.00%> (ø)

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

farrah-deriv
farrah-deriv previously approved these changes Feb 21, 2023
@ameerul-deriv ameerul-deriv changed the base branch from develop to master March 9, 2023 03:52
@ameerul-deriv ameerul-deriv dismissed stale reviews from farrah-deriv and adrienne-deriv March 9, 2023 03:52

The base branch was changed.

@sonarcloud
Copy link

sonarcloud bot commented Mar 9, 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
3.5% 3.5% Duplication

adrienne-deriv
adrienne-deriv previously approved these changes Mar 10, 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

niloofar-deriv
niloofar-deriv previously approved these changes Mar 12, 2023
@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
1.3% 1.3% Duplication

@github-actions
Copy link
Contributor

github-actions bot commented May 8, 2023

Generating Lighthouse report...

@jim-deriv jim-deriv merged commit c6c3896 into binary-com:master May 12, 2023
nijil-deriv pushed a commit to nijil-deriv/deriv-app that referenced this pull request May 24, 2023
…lock an advertiser who is banned from P2P (binary-com#7673)

* chore: refactored code based off modal manager and fixed string

* chore: fixed logic to display modals

* chore: fixed cashier locked issue

* chore: refactored error message
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.

8 participants