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: add jumpstart button to select recipients screen #4965

Merged
merged 4 commits into from
Feb 23, 2024

Conversation

kathaypacific
Copy link
Collaborator

Description

This PR adds the remote config and button for the start of the escrow jumpstart flow. I think that the most straightforward way to implement the escrow flow is to use the existing send flow rather than separate the flows. I've made a POC that is working e2e in #4964, in case it helps to understand this decision.

Test plan

Simulator Screenshot - iPhone 14 Pro - 2024-02-23 at 12 22 01

Related issues

Backwards compatibility

Y

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)

Copy link

emerge-tools bot commented Feb 23, 2024

1 build increased size

Name Version Download Change Install Change Approval
⚠️ Celo (test)
org.celo.mobile.test
1.79.0 (144) 26.5 MB ⬆️ 2.4 MB (9.85%) 63.0 MB ⬆️ 2.7 MB (4.47%) N/A

Celo (test) 1.79.0 (144)
org.celo.mobile.test

⚖️ Compare build
📦 Install build
⏱️ Analyze build performance

Total install size change: ⬆️ 2.7 MB (4.47%)
Total download size change: ⬆️ 2.4 MB (9.85%)

Largest size changes

Item Install Size Change
📝 splashBackground@3x.jpg ⬆️ 600.2 kB
📝 background@3x.jpg ⬆️ 368.6 kB
📝 boost-rewards@3x.png ⬆️ 188.4 kB
📝 background@2x.jpg ⬆️ 176.1 kB
📝 boost-rewards@2x.png ⬆️ 90.1 kB

Image of diff


🛸 Powered by Emerge Tools

Copy link

codecov bot commented Feb 23, 2024

Codecov Report

Attention: Patch coverage is 95.65217% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 85.37%. Comparing base (88b7ba9) to head (8962f1e).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4965      +/-   ##
==========================================
+ Coverage   85.35%   85.37%   +0.01%     
==========================================
  Files         714      716       +2     
  Lines       29184    29229      +45     
  Branches     5082     5086       +4     
==========================================
+ Hits        24911    24953      +42     
- Misses       4034     4037       +3     
  Partials      239      239              
Files Coverage Δ
src/analytics/Events.tsx 100.00% <100.00%> (ø)
src/analytics/Properties.tsx 100.00% <ø> (ø)
src/analytics/types.ts 100.00% <100.00%> (ø)
src/icons/MagicWand.tsx 100.00% <100.00%> (ø)
src/send/SelectJumpstartRecipientButton.tsx 100.00% <100.00%> (ø)
src/send/SelectRecipientButtons.tsx 92.94% <100.00%> (+0.08%) ⬆️
src/statsig/constants.ts 100.00% <ø> (ø)
src/statsig/types.ts 100.00% <100.00%> (ø)
src/send/SendEnterAmount.tsx 92.39% <75.00%> (-0.90%) ⬇️

... 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 88b7ba9...8962f1e. Read the comment docs.

@kathaypacific kathaypacific changed the base branch from main to kathy/escrow-2 February 23, 2024 11:35
Copy link

emerge-tools bot commented Feb 23, 2024

1 build increased size

Name Version Download Change Install Change Approval
⚠️ Celo (test)
org.celo.mobile.test
1.79.0 (144) 26.5 MB ⬆️ 2.4 MB (9.85%) 63.0 MB ⬆️ 2.7 MB (4.47%) N/A

Celo (test) 1.79.0 (144)
org.celo.mobile.test

⚖️ Compare build
📦 Install build
⏱️ Analyze build performance

Total install size change: ⬆️ 2.7 MB (4.47%)
Total download size change: ⬆️ 2.4 MB (9.85%)

Largest size changes

Item Install Size Change
📝 splashBackground@3x.jpg ⬆️ 600.2 kB
📝 background@3x.jpg ⬆️ 368.6 kB
📝 boost-rewards@3x.png ⬆️ 188.4 kB
📝 background@2x.jpg ⬆️ 176.1 kB
📝 boost-rewards@2x.png ⬆️ 90.1 kB

Image of diff


🛸 Powered by Emerge Tools

Base automatically changed from kathy/escrow-2 to main February 23, 2024 15:05
Copy link

emerge-tools bot commented Feb 23, 2024

1 build increased size

Name Version Download Change Install Change Approval
⚠️ Celo (test)
org.celo.mobile.test
1.79.0 (144) 26.5 MB ⬆️ 2.4 MB (9.85%) 63.0 MB ⬆️ 2.7 MB (4.47%) N/A

Celo (test) 1.79.0 (144)
org.celo.mobile.test

⚖️ Compare build
📦 Install build
⏱️ Analyze build performance

Total install size change: ⬆️ 2.7 MB (4.47%)
Total download size change: ⬆️ 2.4 MB (9.85%)

Largest size changes

Item Install Size Change
📝 splashBackground@3x.jpg ⬆️ 600.2 kB
📝 background@3x.jpg ⬆️ 368.6 kB
📝 boost-rewards@3x.png ⬆️ 188.4 kB
📝 background@2x.jpg ⬆️ 176.1 kB
📝 boost-rewards@2x.png ⬆️ 90.1 kB

Image of diff


🛸 Powered by Emerge Tools

return
}

const recipient = route.params.recipient
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the reason behind moving the recepeint declaration here?

Copy link
Contributor

Choose a reason for hiding this comment

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

ah, type guard 😅

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes 🙈 typescript doesn't let me destructure this from the route.params when it may not exist

Copy link
Contributor

@bakoushin bakoushin left a comment

Choose a reason for hiding this comment

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

🪄

@kathaypacific kathaypacific enabled auto-merge (squash) February 23, 2024 15:44
Copy link

emerge-tools bot commented Feb 23, 2024

1 build increased size

Name Version Download Change Install Change Approval
⚠️ Celo (test)
org.celo.mobile.test
1.79.0 (144) 26.5 MB ⬆️ 2.4 MB (9.86%) 63.0 MB ⬆️ 2.7 MB (4.47%) N/A

Celo (test) 1.79.0 (144)
org.celo.mobile.test

⚖️ Compare build
📦 Install build
⏱️ Analyze build performance

Total install size change: ⬆️ 2.7 MB (4.47%)
Total download size change: ⬆️ 2.4 MB (9.86%)

Largest size changes

Item Install Size Change
📝 splashBackground@3x.jpg ⬆️ 600.2 kB
📝 background@3x.jpg ⬆️ 368.6 kB
📝 boost-rewards@3x.png ⬆️ 188.4 kB
📝 background@2x.jpg ⬆️ 176.1 kB
📝 boost-rewards@2x.png ⬆️ 90.1 kB

Image of diff


🛸 Powered by Emerge Tools

@kathaypacific kathaypacific merged commit eeb813c into main Feb 23, 2024
16 checks passed
@kathaypacific kathaypacific deleted the kathy/escrow-send-1 branch February 23, 2024 16:32
shottah pushed a commit to zed-io/kolektivo that referenced this pull request May 15, 2024
### Description

This PR adds the remote config and button for the start of the escrow
jumpstart flow. I think that the most straightforward way to implement
the escrow flow is to use the existing send flow rather than separate
the flows. I've made a POC that is working e2e in valora-inc#4964, in case it
helps to understand this decision.

### Test plan

![Simulator Screenshot - iPhone 14 Pro - 2024-02-23 at 12 22
01](https://github.com/valora-inc/wallet/assets/20150449/8b524157-4c52-481b-af68-b7a3d47885ca)


### Related issues

- Related to RET-993

### Backwards compatibility

Y

### 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.

None yet

2 participants