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: display bridge quotes #28031

Merged
merged 8 commits into from
Nov 5, 2024
Merged

chore: display bridge quotes #28031

merged 8 commits into from
Nov 5, 2024

Conversation

micaelae
Copy link
Member

@micaelae micaelae commented Oct 23, 2024

Description

Changes:

  • display recommended quote in BridgeQuoteCard
  • add a placeholder modal for displaying alternative quotes

Open in GitHub Codespaces

Related issues

Fixes: https://consensyssoftware.atlassian.net/browse/MMS-1448

Manual testing steps

  1. Request bridge quotes
  2. Click "Switch" button and verify that new quotes with updated params are requested/shown
  3. Verify that bridge parameters are reset when extension is reopened

Screenshots/Recordings

Before

N/A

After

Screen.Recording.2024-10-21.at.4.39.47.PM.mov

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 micaelae changed the base branch from develop to mb891-3-quote-polling October 23, 2024 00:28
@micaelae micaelae marked this pull request as ready for review October 23, 2024 00:33
@micaelae micaelae requested a review from a team as a code owner October 23, 2024 00:33
@micaelae micaelae requested a review from a team as a code owner October 23, 2024 00:38
@micaelae micaelae requested review from a team and removed request for a team October 23, 2024 00:41
@metamaskbot
Copy link
Collaborator

Builds ready [6dc9d16]
Page Load Metrics (1770 ± 94 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint35720791617419201
domContentLoaded14422268174819091
load14492283177019694
domInteractive15166553818
backgroundConnect787252512
firstReactRender44211943416
getState45415157
initialActions01000
loadScripts10571802127517283
setupStore1080332411
uiStartup163324581981218105
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 18.26 KiB (0.41%)
  • ui: 13.68 KiB (0.18%)
  • common: 2.76 KiB (0.03%)

ui/ducks/bridge/selectors.ts Show resolved Hide resolved
ui/hooks/bridge/useCountdownTimer.ts Outdated Show resolved Hide resolved
ui/pages/bridge/utils/quote.ts Show resolved Hide resolved
ui/ducks/bridge/selectors.ts Outdated Show resolved Hide resolved
ui/pages/bridge/quotes/bridge-quotes-modal.tsx Outdated Show resolved Hide resolved
@metamaskbot
Copy link
Collaborator

Builds ready [106213c]
Page Load Metrics (1859 ± 64 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint16972263185513364
domContentLoaded16862241182812560
load16992269185913464
domInteractive166840157
backgroundConnect986302411
firstReactRender51129862210
getState570192010
initialActions01000
loadScripts12131674133810349
setupStore1271392411
uiStartup18962531207415273
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 16.75 KiB (0.38%)
  • ui: 12.89 KiB (0.17%)
  • common: 3.14 KiB (0.04%)

@micaelae micaelae force-pushed the mb891-3-quote-polling branch 3 times, most recently from a5a28dd to bf5166a Compare October 29, 2024 22:20
Base automatically changed from mb891-3-quote-polling to develop October 30, 2024 15:06
@metamaskbot
Copy link
Collaborator

Builds ready [1637e81]
Page Load Metrics (2515 ± 176 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint313382117731088523
domContentLoaded203537782481368177
load208638082515367176
domInteractive28184694220
backgroundConnect979342110
firstReactRender652231233316
getState873292110
initialActions01000
loadScripts156531121875332159
setupStore1395402512
uiStartup232642162811409196
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: -1.92 KiB (-0.04%)
  • ui: 11.72 KiB (0.15%)
  • common: 3.26 KiB (0.04%)

@metamaskbot
Copy link
Collaborator

Builds ready [2bfa744]
Page Load Metrics (1927 ± 105 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint31024991783511245
domContentLoaded166424881902221106
load167424971927219105
domInteractive17231714823
backgroundConnect986302311
firstReactRender531981073818
getState46217199
initialActions01000
loadScripts12111947141019694
setupStore1074302311
uiStartup187628092165254122
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: -1.92 KiB (-0.04%)
  • ui: 11.22 KiB (0.15%)
  • common: 3.26 KiB (0.04%)

@metamaskbot
Copy link
Collaborator

Builds ready [ca66c36]
Page Load Metrics (2071 ± 78 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint33023781984410197
domContentLoaded17612332203215474
load18082385207116278
domInteractive198953199
backgroundConnect1468342110
firstReactRender832911124220
getState671282412
initialActions01000
loadScripts13151817151412560
setupStore136723157
uiStartup19572642232619292
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: -1.92 KiB (-0.04%)
  • ui: 11.22 KiB (0.15%)
  • common: 3.26 KiB (0.04%)

@micaelae micaelae added this pull request to the merge queue Nov 5, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 5, 2024
@micaelae micaelae added this pull request to the merge queue Nov 5, 2024
Merged via the queue into develop with commit 7b8d2c6 Nov 5, 2024
76 checks passed
@micaelae micaelae deleted the mb891-4-render-quotes branch November 5, 2024 14:44
@github-actions github-actions bot locked and limited conversation to collaborators Nov 5, 2024
@metamaskbot metamaskbot added the release-12.8.0 Issue or pull request that will be included in release 12.8.0 label Nov 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.8.0 Issue or pull request that will be included in release 12.8.0 team-bridge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants