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

Farzin/72980/Migrate cashier to mobx-react-lite #6161

Conversation

farzin-deriv
Copy link
Contributor

Changes:

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

  • Replace mobx-react with mobx-react-lite

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 Aug 11, 2022

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

Name Status Preview Updated
deriv-app ✅ Ready (Inspect) Visit Preview Aug 29, 2022 at 9:31AM (UTC)

@@ -15,7 +14,7 @@ const Routes = ({ error, has_error, is_logged_in, is_logging_in, passthrough })
};

Routes.propTypes = {
error: MobxPropTypes.objectOrObservableObject,
error: PropTypes.any,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should replace with the proper type.

@@ -90,7 +89,7 @@ PaymentAgentDeposit.propTypes = {
onChangePaymentMethod: PropTypes.func,
payment_agent_list: PropTypes.array,
selected_bank: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
supported_banks: MobxPropTypes.arrayOrObservableArray,
supported_banks: PropTypes.any,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should replace with the proper type.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 11, 2022

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/6161](https://github.com/binary-com/deriv-app/pull/6161)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-farzin-fs-farzin-72980migratetomobxreactlite.binary.sx?qa_server=frontend.binaryws.com&app_id=24036
    - **Original**: https://deriv-app-git-fork-farzin-fs-farzin-72980migratetomobxreactlite.binary.sx
- **App ID**: `24036`

@codecov-commenter
Copy link

codecov-commenter commented Aug 11, 2022

Codecov Report

Merging #6161 (2ec4277) into master (1147568) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #6161      +/-   ##
==========================================
- Coverage   20.71%   20.71%   -0.01%     
==========================================
  Files        1403     1403              
  Lines       32102    32104       +2     
  Branches     5432     5434       +2     
==========================================
  Hits         6649     6649              
- Misses      25042    25044       +2     
  Partials      411      411              
Impacted Files Coverage Δ
packages/cashier/src/containers/routes/routes.jsx 83.33% <ø> (ø)
...nt/payment-agent-deposit/payment-agent-deposit.jsx 13.33% <ø> (ø)
packages/cashier/src/stores/connect.js 0.00% <ø> (ø)
...ackages/p2p/src/components/my-ads/edit-ad-form.jsx 0.00% <0.00%> (ø)
...kages/p2p/src/components/my-ads/create-ad-form.jsx 0.00% <0.00%> (ø)

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

hamid-deriv
hamid-deriv previously approved these changes Aug 14, 2022
vinu-deriv
vinu-deriv previously approved these changes Aug 16, 2022
heorhi-deriv
heorhi-deriv previously approved these changes Aug 16, 2022
@sonarcloud
Copy link

sonarcloud bot commented Aug 29, 2022

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
20.0% 20.0% Duplication

@farrah-deriv farrah-deriv merged commit 774dc24 into deriv-com:master Aug 29, 2022
@farzin-deriv farzin-deriv deleted the farzin/72980/migrate_to_mobx_react_lite branch August 29, 2022 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants