metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

feat: feature-flagged cross-chain swaps route [METABRIDGE-867]

Open micaelae opened this issue 8 months ago • 3 comments

Description

This change adds a placeholder route for the cross-chain swaps experience (roughly based on swaps page). Clicking on the Bridge button should link to the route when the feature flag is turned on. Otherwise, the portfolio bridge experience is loaded (current behavior)

Open in GitHub Codespaces

Related issues

Fixes: METABRIDGE-867

Manual testing steps

  1. Build locally and set BRIDGE_USE_DEV_APIS=1
  2. Check that bridge-api getAllFeatureFlags is fetched
  3. Verify that bridgeState FF is set to true in state logs
  4. Click on Bridge button and verify Bridge page is visible
  5. Build locally and set BRIDGE_USE_DEV_APIS=0
  6. Wait ~10 minutes
  7. Reload and Check that bridge-api getAllFeatureFlags is fetched
  8. Verify that bridgeState FF is set to false in state logs
  9. Click on Bridge button and verify Portfolio URL is opened in a new tab

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

micaelae avatar Jun 21 '24 22:06 micaelae