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: Add link to pending transaction alert #28721

Merged
merged 7 commits into from
Dec 12, 2024
Merged

feat: Add link to pending transaction alert #28721

merged 7 commits into from
Dec 12, 2024

Conversation

pedronfigueiredo
Copy link
Contributor

@pedronfigueiredo pedronfigueiredo commented Nov 26, 2024

Description

This PR substitutes a purely text based alert for pending transactions with one that includes a hyperlink to the docs.

Open in GitHub Codespaces

Related issues

Fixes: #28308

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Screenshot 2024-12-02 at 11 13 58

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.

@pedronfigueiredo pedronfigueiredo added the team-confirmations Push issues to confirmations team label Nov 26, 2024
@pedronfigueiredo pedronfigueiredo self-assigned this Nov 26, 2024
@pedronfigueiredo pedronfigueiredo requested review from a team as code owners November 26, 2024 11:09
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
Copy link
Collaborator

Builds ready [a272f3d]
Page Load Metrics (1859 ± 88 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint61022651800335161
domContentLoaded16002254182218790
load16542268185918388
domInteractive246639147
backgroundConnect9207384220
firstReactRender15114322612
getState442601014924
initialActions00000
loadScripts11921746138616077
setupStore6100172311
uiStartup187128982173282135
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 1.74 KiB (0.02%)
  • common: 170 Bytes (0.00%)

@SayaGT
Copy link

SayaGT commented Dec 2, 2024

Hey Pedro let's not have a hover state for this. Let's use primary/ defualt for the line below to indicate it's clickable. Otherwise it looks good to me. Thanks!

Learn how to cancel or speed up a transaction.

@metamaskbot
Copy link
Collaborator

Builds ready [490939f]
Page Load Metrics (1946 ± 57 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint17442135193811354
domContentLoaded17012084191311254
load17092132194612057
domInteractive267436115
backgroundConnect983332713
firstReactRender169029188
getState54187952814
initialActions01000
loadScripts1293160114579445
setupStore711911
uiStartup19622519225614770
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 1.84 KiB (0.02%)
  • common: 170 Bytes (0.00%)

Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

Hey @pedronfigueiredo, one question—could we also check the HTML that is rendered? I want to ensure we aren't rendering <p> within <p> and that the HTML is semantically correct. Also, could you fill out the PR description so I can better understand what this PR entails? 🙏

@@ -31,7 +31,7 @@ export interface BannerBaseStyleUtilityProps extends StyleUtilityProps {
/**
* The description is the content area below BannerBase title
*/
description?: string;
description?: string | React.ReactNode;
Copy link
Contributor

Choose a reason for hiding this comment

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

The description is wrapped by p tag what are we passing here that requires a node? The banners should also accept a children prop which might be more suited for a custom node.

@pedronfigueiredo pedronfigueiredo requested a review from a team as a code owner December 4, 2024 15:03
Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines 20 to 28
<Text color={TextColor.primaryDefault}>
<a
href={ZENDESK_URLS.SPEEDUP_CANCEL}
key="link"
target="_blank"
rel="noreferrer noopener"
>
{t('pendingTransactionAlertMessageHyperlink')}
</a>
Copy link
Contributor

Choose a reason for hiding this comment

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

non-blocking: If you wanted to use a design system component here for consistency you could use
import { ButtonLink } from '../../../../../components/component-library';
and

Suggested change
<Text color={TextColor.primaryDefault}>
<a
href={ZENDESK_URLS.SPEEDUP_CANCEL}
key="link"
target="_blank"
rel="noreferrer noopener"
>
{t('pendingTransactionAlertMessageHyperlink')}
</a>
<ButtonLink
href={ZENDESK_URLS.SPEEDUP_CANCEL}
key="link"
target="_blank"
rel="noreferrer noopener"
>
{t('pendingTransactionAlertMessageHyperlink')}
</ButtonLink>

@metamaskbot
Copy link
Collaborator

Builds ready [be44db1]
Page Load Metrics (1901 ± 224 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint90627201775332159
domContentLoaded152235541868450216
load156736451901466224
domInteractive24156463617
backgroundConnect7154303517
firstReactRender14101262110
getState713281345024
initialActions00000
loadScripts108028521435380182
setupStore69613199
uiStartup180042922196588282
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 1.86 KiB (0.02%)
  • common: 170 Bytes (0.00%)

OGPoyraz
OGPoyraz previously approved these changes Dec 10, 2024
vinistevam
vinistevam previously approved these changes Dec 10, 2024
@pedronfigueiredo pedronfigueiredo added this pull request to the merge queue Dec 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 11, 2024
@pedronfigueiredo pedronfigueiredo added this pull request to the merge queue Dec 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 11, 2024
@pedronfigueiredo pedronfigueiredo added this pull request to the merge queue Dec 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 11, 2024
@pedronfigueiredo pedronfigueiredo added this pull request to the merge queue Dec 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 11, 2024
@pedronfigueiredo pedronfigueiredo added this pull request to the merge queue Dec 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 11, 2024
@pedronfigueiredo pedronfigueiredo added this pull request to the merge queue Dec 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 11, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [286dd74]
Page Load Metrics (1859 ± 61 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint16392198186312259
domContentLoaded16312169182812158
load16362205185912761
domInteractive287540147
backgroundConnect793352411
firstReactRender1879482512
getState66117157
initialActions01000
loadScripts11661647137110551
setupStore77614178
uiStartup18662487208116077
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 1.86 KiB (0.02%)
  • common: 170 Bytes (0.00%)

@pedronfigueiredo pedronfigueiredo added this pull request to the merge queue Dec 12, 2024
Merged via the queue into main with commit 09b4c80 Dec 12, 2024
75 checks passed
@pedronfigueiredo pedronfigueiredo deleted the pnf/28308 branch December 12, 2024 10:58
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2024
@metamaskbot metamaskbot added the release-12.10.1 Issue or pull request that will be included in release 12.10.1 label Dec 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.10.1 Issue or pull request that will be included in release 12.10.1 team-confirmations Push issues to confirmations team
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Missing link on pending transaction alert
6 participants