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

chore(earn): Beefy terms and conditions changes #6127

Merged
merged 5 commits into from
Oct 2, 2024

Conversation

finnian0826
Copy link
Contributor

@finnian0826 finnian0826 commented Oct 2, 2024

Description

Allow for showing provider docs and valora T&Cs if provider T&Cs don't exist

Test plan

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-10-02.at.11.26.12.mp4

Related issues

Backwards compatibility

Yes

Network scalability

If a new NetworkId and/or Network are added in the future, the changes in this PR will:

  • Continue to work without code changes, OR trigger a compilation error (guaranteeing we find it when a new network is added)

@finnian0826 finnian0826 changed the title Finnian0826/act 1399 chore(earn): Beefy terms and conditions changes Oct 2, 2024
@finnian0826 finnian0826 changed the base branch from main to finnian0826/act-1397 October 2, 2024 17:31
Copy link

codecov bot commented Oct 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.75%. Comparing base (c0a9178) to head (2f53107).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #6127   +/-   ##
=======================================
  Coverage   88.75%   88.75%           
=======================================
  Files         727      727           
  Lines       30794    30804   +10     
  Branches     5627     5626    -1     
=======================================
+ Hits        27330    27339    +9     
- Misses       3265     3266    +1     
  Partials      199      199           
Files with missing lines Coverage Δ
src/analytics/Properties.tsx 100.00% <ø> (ø)
src/earn/EarnDepositBottomSheet.tsx 98.76% <100.00%> (+1.58%) ⬆️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c0a9178...2f53107. Read the comment docs.

i18nKey="earnFlow.depositBottomSheet.noTermsUrlFooter"
tOptions={{ providerName: pool.appName }}
>
<Text
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we conditionally render this if APP_ID_TO_PROVIDER_DOCUMENTS_URL[pool.appId] is undefined? Also What happens to the translation in that case?

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 in 0cfe241

Base automatically changed from finnian0826/act-1397 to main October 2, 2024 18:13
Copy link
Collaborator

@MuckT MuckT left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for addressing the feedback and getting the test coverage up.

@finnian0826 finnian0826 enabled auto-merge October 2, 2024 19:33
@finnian0826 finnian0826 added this pull request to the merge queue Oct 2, 2024
Merged via the queue into main with commit 24b234c Oct 2, 2024
16 checks passed
@finnian0826 finnian0826 deleted the finnian0826/act-1399 branch October 2, 2024 20:01
bakoushin pushed a commit that referenced this pull request Oct 17, 2024
### Description

Allow for showing provider docs and valora T&Cs if provider T&Cs don't
exist

### Test plan

<img
src="https://github.com/user-attachments/assets/78e09a87-1153-4287-bfc5-8471f64a3da0"
width="250" />



https://github.com/user-attachments/assets/a3ea05b2-a4f7-49c7-b753-745f62290c27



### Related issues

- Fixes ACT-1399

### Backwards compatibility

Yes

### Network scalability

If a new NetworkId and/or Network are added in the future, the changes
in this PR will:

- [X] Continue to work without code changes, OR trigger a compilation
error (guaranteeing we find it when a new network is added)
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.

2 participants