Skip to content

fix: Revert "feat(14507): improve error message for failed txn in activity… #31137

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

Merged
merged 5 commits into from
Apr 8, 2025

Conversation

dbrans
Copy link
Contributor

@dbrans dbrans commented Mar 20, 2025

… details view (#29338)"

This reverts commit d510d5c.

NOTE

transaction-status-label.test.js was full of conflicts. I rewrote the tests based on what I could piece together.

Description

This change was intentional, but it turned out to be incorrect. @DDDDDanica based her PR on this ticket linked below, which refers to a Figma file. However, the missing context is that the Figma file included designs specifically for Smart Transactions.

[UX Improvement]: Transaction Failure Message Not Easily Found #14507:

Expected final result
https://www.figma.com/design/ZzVQ6iu13C67K807Z1bg5I/Smart-Transactions-1.0?node-id=4296-25303&t=XN3hVQrE3oWM0lCA-1

Open in GitHub Codespaces

Related issues

Manual testing steps

  1. Go to this page...

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.

Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot metamaskbot added the team-extension-platform Extension Platform team label Mar 20, 2025
@dbrans dbrans marked this pull request as ready for review March 20, 2025 00:57
@dbrans dbrans changed the title Revert "feat(14507): improve error message for failed txn in activity… fix: Revert "feat(14507): improve error message for failed txn in activity… Mar 20, 2025
@dbrans dbrans enabled auto-merge March 20, 2025 00:58
@metamaskbot
Copy link
Collaborator

Builds ready [2bedafb]
Page Load Metrics (2678 ± 1464 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint142912854262929991440
domContentLoaded137812663250229191401
load142012862267830481464
domInteractive24197554823
backgroundConnect3489616619091
firstReactRender14232514723
getState55829113263
initialActions01000
loadScripts98911427201627151304
setupStore7424569445
uiStartup157116866355039771910
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: -1007 Bytes (-0.01%)
  • common: -146 Bytes (-0.00%)

@dbrans dbrans requested a review from dan437 March 21, 2025 01:11
@httpJunkie
Copy link
Contributor

httpJunkie commented Mar 21, 2025

So this PR reverts the Banner and reimplements the tooltip feature instead?
Am I correct in assuming that the Before and after of this PR: #29338

Will be changed in favor of using the tooltip and removing the banner?

When I send a Failed Transaction after deployng failing contract on test dapp, and inspect the failed transactions. I see:
failed-transaction

Just getting clarification that this PR is intended to remove the banner and revert this view to having the failed (with hover) functionality.

@dbrans
Copy link
Contributor Author

dbrans commented Mar 21, 2025

@httpJunkie, That is correct: shouldShowTooltip was introduced in #29338 to to show or suppress the tooltip.

This PR reverts all the changes in #29338.

@darkwing darkwing removed their request for review March 24, 2025 15:47
Copy link
Contributor

@digiwand digiwand left a comment

Choose a reason for hiding this comment

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

mostly lgtm! one request to readd

support for
'should render statusText properly when is custodyStatusDisplayText is defined' / 'should display the correct status text and tooltip'

or
'renders ${name} properly and tooltip' / 'renders pure text for status when shouldShowTooltip is specified as false'


Nice persisting the specific query tests rather than the snapshot tests for ui/components/app/transaction-status-label/transaction-status-label.test.js 👍🏼

@metamaskbot
Copy link
Collaborator

Builds ready [1c8a598]
Page Load Metrics (3281 ± 1498 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint161015598310630541467
domContentLoaded154714650285428741380
load162316020328131201498
domInteractive2641211911153
backgroundConnect1061176425243117
firstReactRender421831034019
getState301221250244117
initialActions01000
loadScripts114013386217826561275
setupStore1549318713866
uiStartup206218446580635761717
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: -1007 Bytes (-0.01%)
  • common: -146 Bytes (-0.00%)

@dbrans dbrans requested a review from digiwand March 27, 2025 18:59
@dbrans dbrans requested review from bschorchit and a team March 28, 2025 10:57
@dbrans dbrans added this pull request to the merge queue Apr 8, 2025
Merged via the queue into main with commit 5f8f6b5 Apr 8, 2025
144 checks passed
@dbrans dbrans deleted the djb/revert-pr-29338 branch April 8, 2025 15:34
@github-actions github-actions bot locked and limited conversation to collaborators Apr 8, 2025
@metamaskbot metamaskbot added the release-12.17.0 Issue or pull request that will be included in release 12.17.0 label Apr 8, 2025
@@ -372,8 +372,6 @@ function TransactionListItemInner({
showSpeedUp={shouldShowSpeedUp}
isEarliestNonce={isEarliestNonce}
onCancel={cancelTransaction}
showCancel={isPending && !hasCancelled && !isBridgeTx}
showErrorBanner={Boolean(error)}
Copy link
Contributor

Choose a reason for hiding this comment

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

this looks like the banner message:

"This transaction would have cost you extra fees, so we stopped it. Your money is still in your wallet." for all transaction message errors detected. This may have been misleading.

@digiwand
Copy link
Contributor

digiwand commented Apr 9, 2025

as mentioned in a Slack thread, this appears to have been cherry-picked into v12.16 cc: @dbrans

@@ -64,10 +62,9 @@
}

&__operations {
margin: 0 16px 16px 16px;
margin: 0 0 16px 16px;
Copy link
Contributor

Choose a reason for hiding this comment

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

CleanShot 2025-04-11 at 09 40 46
CleanShot 2025-04-11 at 09 40 59

we can resurrect this to fix an outstanding, no padding issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.17.0 Issue or pull request that will be included in release 12.17.0 team-extension-platform Extension Platform team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants