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(transfers): Remove old feature flag, support tokenId in transfer feed and CICO #4275

Merged
merged 11 commits into from
Oct 11, 2023

Conversation

jophish
Copy link
Contributor

@jophish jophish commented Oct 6, 2023

Description

This PR cleans up an old hacky feature flag we had laying around, and in the process adds support for native tokens to appear correctly in the transfer feed. This also has the effect of refactoring some of our CICO code to support tokenIds as well, in order to use the new TokenDisplay component in the case of ETH being selected.

Test plan

Unit and manual tested. See video below for ETH information showing up where it previously was not (namely: transfer feed items, transfer feed details page, CICO header balance). The second video shows the existing behavior, where ETH is kinda broken all over the place.

eth-in-app-2023-10-06_14.35.29.mp4
eth-broken-2023-10-06_14.38.10.mp4

Related issues

N/A

Backwards compatibility

Yes.

@jophish jophish changed the title feat(transfers): Remove old feature flag, support tokenId in transfer feed feat(transfers): Remove old feature flag, support tokenId in transfer feed and CICO Oct 6, 2023
@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Merging #4275 (72fa985) into main (74c9546) will increase coverage by 0.02%.
The diff coverage is 95.91%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4275      +/-   ##
==========================================
+ Coverage   84.02%   84.05%   +0.02%     
==========================================
  Files         711      712       +1     
  Lines       26194    26233      +39     
  Branches     3408     3410       +2     
==========================================
+ Hits        22010    22049      +39     
  Misses       4118     4118              
  Partials       66       66              
Files Coverage Δ
src/components/LegacyTokenDisplay.tsx 100.00% <100.00%> (+3.44%) ⬆️
src/components/LegacyTokenTotalLineItem.tsx 100.00% <100.00%> (ø)
src/components/TokenTotalLineItem.tsx 100.00% <100.00%> (ø)
src/consumerIncentives/saga.ts 93.70% <100.00%> (+0.04%) ⬆️
src/escrow/ReclaimPaymentConfirmationCard.tsx 100.00% <100.00%> (ø)
src/fees/hooks.ts 97.87% <ø> (ø)
src/fiatExchanges/FiatExchangeCurrency.tsx 81.08% <ø> (ø)
src/firebase/notifications.ts 96.72% <100.00%> (+0.05%) ⬆️
src/navigator/Headers.tsx 60.91% <100.00%> (ø)
src/paymentRequest/PaymentRequestConfirmation.tsx 77.96% <100.00%> (ø)
... and 24 more

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 74c9546...72fa985. Read the comment docs.

@jophish jophish merged commit 91f9fc7 into main Oct 11, 2023
15 checks passed
@jophish jophish deleted the jophish/statsig-native-tokens branch October 11, 2023 17:05
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