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

swaps: init cross chain feature flag #4091

Merged
merged 5 commits into from
Aug 30, 2022
Merged

Conversation

skylarbarrera
Copy link
Contributor

Fixes TEAM2-456
Figma link (if any):

What changed (plus any additional context for devs)

created the feature flag for cross chain swaps/bridging

I also feature flagged off some logic that is specific to the v1 implementation so it doesn't get in the way of future development

Screen recordings / screenshots

settings: https://cloud.skylarbarrera.com/Screen-Shot-2022-08-29-10-24-01.79.png

toggled off behavior:
before: https://cloud.skylarbarrera.com/Screen-Recording-2022-08-29-10-17-18.mp4
after: https://cloud.skylarbarrera.com/Screen-Recording-2022-08-29-10-18-32.mp4

What to test

test the above flow.

NOTE: note you need to change the value in defaultConfig to get some instances of the check to work atm.

  • we use context to support feature flags atm and this causes issues checking the current value outside of react components

Final checklist

  • Assigned individual reviewers?
  • [] Added labels? (team1/team2, critical path, release, dev QA)
  • Did you test both iOS and Android?
  • If your changes are visual, did you check both the light and dark themes?
  • Added e2e tests? If not, please specify why
  • If you added new critical path files, did you update the CODEOWNERS file?
  • If no dev QA label, did you add the PR to the QA Queue?

@linear
Copy link

linear bot commented Aug 29, 2022

TEAM2-456 Cross-chain & bridging feature flag

To progressively build the feature on top of swaps feature we'll need a flag to allow cross chain swaps and bridging.

image.png

  • show new network selector
  • allow cross chain search
  • allow bridging search
  • allow token expanded state network selection to Get ${token}

image.png

@skylarbarrera skylarbarrera added swap-aggregator Label for the swap aggregator feature project team2 dev QA PR that can be safely QA'd by devs for merge (feature-specific limited impact). QA during regression labels Aug 29, 2022
@skylarbarrera skylarbarrera marked this pull request as ready for review August 29, 2022 16:44
src/redux/swap.ts Outdated Show resolved Hide resolved
src/redux/swap.ts Outdated Show resolved Hide resolved
@@ -22,6 +23,7 @@ export const defaultConfig = {
[NOTIFICATIONS]: { needsRestart: true, settings: true, value: false },
[PROFILES]: { settings: true, value: true },
[REVIEW_ANDROID]: { settings: false, value: false },
[CROSSCHAIN_SWAPS]: { settings: true, value: false },
Copy link
Contributor

Choose a reason for hiding this comment

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

i think having just this is perfect for now, then when we start adding new stuff on top we can use the flag more broadly

Copy link
Contributor

@estebanmino estebanmino left a comment

Choose a reason for hiding this comment

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

🚀

Copy link
Member

@derHowie derHowie left a comment

Choose a reason for hiding this comment

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

@skylarbarrera skylarbarrera merged commit 83b68bd into develop Aug 30, 2022
@skylarbarrera skylarbarrera deleted the @skylar/crosschain-flag branch August 30, 2022 20:07
estrattonbailey added a commit that referenced this pull request Sep 6, 2022
…w-4378-clean-up-global-and-env-vars-in-app-move

* 'develop' of github.com:rainbow-me/rainbow: (40 commits)
  fix: quiet logs when linting in CI (#4070)
  analytics: add tracking for screen dimensions + fix nav events on android (#4088)
  fix native input cursor color (#4112)
  Profiles: use `name` text record instead of `me.rainbow.displayName` (#4046)
  chore: upgrade eslint-config-rainbow (#4118)
  backup PIN  (#4012)
  Remove long press on address in switching wallets (#3990)
  Version bump iOS v.1.7.4 & Android 144 (#4117)
  Fix slow image loading (#4052)
  Add new text size scale, deprecate old sizes and Heading (#4113)
  Disable campaings in e2e and fix testID of PromoSheet (#4107)
  🏛 chore: prettier everything (#4100)
  fix settings StatusIcon shadows on android (#4104)
  fix clear async storage crash (#4105)
  fix RNBW-4416 (#4103)
  🏛 Update to React Query 4 (#4060)
  swaps: init cross chain feature flag (#4091)
  enable arbiitrum swap details test (#4092)
  remove unsafe access to networkInfo (#4096)
  network check (#4094)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev QA PR that can be safely QA'd by devs for merge (feature-specific limited impact). QA during regression swap-aggregator Label for the swap aggregator feature project team2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants