Skip to content

feat: Add new content on the STX status page#24772

Merged
dan437 merged 2 commits intodevelopfrom
stx-status-page-close-anytime
May 28, 2024
Merged

feat: Add new content on the STX status page#24772
dan437 merged 2 commits intodevelopfrom
stx-status-page-close-anytime

Conversation

@dan437
Copy link
Copy Markdown
Contributor

@dan437 dan437 commented May 24, 2024

Description

On the STX status page you will now see this text for a pending dapp transaction: You may close this window anytime.

Related issues

Fixes:

Manual testing steps

  1. Go to a dapp and submit a transaction with STX enabled
  2. On the STX status page you will see this text for a pending dapp transaction: You may close this window anytime.
  3. The text will be replaced with the Close extension button when the transaction is not pending anymore

Screenshots/Recordings

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.

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.

@dan437 dan437 added the team-transactions Transactions team label May 24, 2024
@dan437 dan437 requested a review from a team as a code owner May 24, 2024 14:08
@github-actions
Copy link
Copy Markdown
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.

@dan437 dan437 force-pushed the stx-status-page-close-anytime branch from 7b69813 to d2aa0b6 Compare May 27, 2024 12:14
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [d2aa0b6]
Page Load Metrics (169 ± 203 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6412586147
domContentLoaded8391173
load532013169423203
domInteractive8391173
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 305 Bytes (0.00%)
  • common: 65 Bytes (0.00%)

@dan437 dan437 force-pushed the stx-status-page-close-anytime branch from d2aa0b6 to d07ef74 Compare May 28, 2024 12:20
dbrans
dbrans previously approved these changes May 28, 2024
if (!isDapp || !isSmartTransactionPending) {
return null;
}
const t = useI18nContext();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a heads-up, it’s best to place hooks at the top of the render to avoid calling them conditionally like this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've updated the code. Ideally we would have it as a part of our linting process, because right now this rule is not enforced there.

@codecov
Copy link
Copy Markdown

codecov bot commented May 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.78%. Comparing base (82fe51c) to head (ca36630).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #24772      +/-   ##
===========================================
+ Coverage    65.77%   65.78%   +0.01%     
===========================================
  Files         1366     1366              
  Lines        54238    54244       +6     
  Branches     14108    14109       +1     
===========================================
+ Hits         35670    35680      +10     
+ Misses       18568    18564       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [ad7d112]
Page Load Metrics (679 ± 509 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint73150922210
domContentLoaded9201131
load6031016791061509
domInteractive9201131
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 278 Bytes (0.00%)
  • common: 65 Bytes (0.00%)

@dan437 dan437 force-pushed the stx-status-page-close-anytime branch from ad7d112 to ca36630 Compare May 28, 2024 16:19
@dan437 dan437 merged commit 2877190 into develop May 28, 2024
@dan437 dan437 deleted the stx-status-page-close-anytime branch May 28, 2024 17:07
@github-actions github-actions bot locked and limited conversation to collaborators May 28, 2024
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [ca36630]
Page Load Metrics (544 ± 455 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint67183993216
domContentLoaded9251352
load552646544947455
domInteractive9251352
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 278 Bytes (0.00%)
  • common: 65 Bytes (0.00%)

@metamaskbot metamaskbot added release-11.18.0 release-11.16.1 Issue or pull request that will be included in release 11.16.1 and removed release-11.18.0 labels May 28, 2024
@metamaskbot
Copy link
Copy Markdown
Collaborator

Missing release label release-11.16.1 on PR. Adding release label release-11.16.1 on PR and removing other release labels(release-11.18.0), as PR was cherry-picked in branch 11.16.1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-11.16.1 Issue or pull request that will be included in release 11.16.1 team-transactions Transactions team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants