Skip to content

Document displayWarning as deprecated#17465

Merged
Gudahtt merged 1 commit intodevelopfrom
document-display-warning-as-deprecated
Jan 30, 2023
Merged

Document displayWarning as deprecated#17465
Gudahtt merged 1 commit intodevelopfrom
document-display-warning-as-deprecated

Conversation

@Gudahtt
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt commented Jan 27, 2023

The displayWarning action creator will show the error in various different places in the UI. This is confusing for users, we should stop doing this.

Instead we can consider each error case separately. If there is a scenario where it's appropriate to tell a user about an error, we should build that case into the relevant UI and use localized error messages.

Manual Testing Steps

No functional changes, just inline docs.

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

If further QA is required (e.g. new feature, complex testing steps, large refactor), add the Extension QA Board label.

In this case, a QA Engineer approval will be be required.

The `displayWarning` action creator will show the error in various
different places in the UI. This is confusing for users, we should stop
doing this.

Instead we can consider each error case separately. If there is a
scenario where it's appropriate to tell a user about an error, we
should build that case into the relevant UI and use localized error
messages.
@Gudahtt Gudahtt marked this pull request as ready for review January 27, 2023 15:12
@Gudahtt Gudahtt requested a review from a team as a code owner January 27, 2023 15:12
@Gudahtt Gudahtt requested a review from jpuri January 27, 2023 15:12
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [6303dcd]
Page Load Metrics (1493 ± 117 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint953031334421
domContentLoaded105918631454244117
load105918661493244117
domInteractive105918631454244117
Bundle size diffs
  • background: 0 bytes
  • ui: 0 bytes
  • common: 0 bytes

Copy link
Copy Markdown
Contributor

@brad-decker brad-decker left a comment

Choose a reason for hiding this comment

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

LGTM :)

@Gudahtt Gudahtt merged commit 55d8ec0 into develop Jan 30, 2023
@Gudahtt Gudahtt deleted the document-display-warning-as-deprecated branch January 30, 2023 13:07
@github-actions github-actions bot locked and limited conversation to collaborators Jan 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants