Skip to content

feat: add multiple alert component#23664

Merged
vinistevam merged 53 commits intodevelopfrom
feat/multiple-alert-modal-component
May 1, 2024
Merged

feat: add multiple alert component#23664
vinistevam merged 53 commits intodevelopfrom
feat/multiple-alert-modal-component

Conversation

@vinistevam
Copy link
Copy Markdown
Contributor

@vinistevam vinistevam commented Mar 23, 2024

This PR aims to introduce a multiple alert component leveraging AlertModal component and improving by adding an extra navigation to go through existing non-confirmed alerts. Additionally, reducers, ducks and hooks are also included to support and manage the alert state.

Description

Open in GitHub Codespaces

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/2244

Manual testing steps

The component will start to be used in the following tickets.

Screenshots/Recordings

image

image

image

Before

After

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.

@vinistevam vinistevam added the team-confirmations-system-deprecated DEPRECATED: please use "team-confirmations" instead label Mar 23, 2024
@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.

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [59334f1]
Page Load Metrics (682 ± 440 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint662771295928
domContentLoaded1096302210
load532259682917440
domInteractive1096302210
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 1.11 KiB (0.01%)
  • common: 134 Bytes (0.00%)

@vinistevam vinistevam marked this pull request as ready for review March 25, 2024 10:00
@vinistevam vinistevam requested a review from a team as a code owner March 25, 2024 10:00
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [9d99df2]
Page Load Metrics (810 ± 460 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint663121396330
domContentLoaded9117322512
load622426810958460
domInteractive9117322512
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 1.11 KiB (0.01%)
  • common: 134 Bytes (0.00%)

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 25, 2024

Codecov Report

Attention: Patch coverage is 92.30769% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 67.31%. Comparing base (9c50ce2) to head (947d51b).
Report is 2 commits behind head on develop.

Files Patch % Lines
...erts/multiple-alert-modal/multiple-alert-modal.tsx 94.29% 2 Missing ⚠️
...p/confirmations/alerts/alert-modal/alert-modal.tsx 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #23664      +/-   ##
===========================================
+ Coverage    67.28%   67.31%   +0.03%     
===========================================
  Files         1275     1276       +1     
  Lines        49707    49741      +34     
  Branches     12916    12922       +6     
===========================================
+ Hits         33444    33481      +37     
+ Misses       16263    16260       -3     

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

OGPoyraz
OGPoyraz previously approved these changes Apr 26, 2024
matthewwalsh0
matthewwalsh0 previously approved these changes Apr 29, 2024
Base automatically changed from feat/single-alert-modal-component to develop April 29, 2024 10:37
@vinistevam vinistevam dismissed stale reviews from matthewwalsh0 and OGPoyraz April 29, 2024 10:37

The base branch was changed.

@vinistevam vinistevam requested review from a team as code owners April 29, 2024 10:37
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [28f9430]
Page Load Metrics (1768 ± 746 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint652001123115
domContentLoaded107319147
load53378917681554746
domInteractive107319147
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@vinistevam vinistevam added the team-confirmations Push issues to confirmations team label Apr 30, 2024
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [947d51b]
Page Load Metrics (958 ± 596 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint58179893015
domContentLoaded87016147
load4632999581242596
domInteractive87016147
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@vinistevam vinistevam merged commit 9f8cf68 into develop May 1, 2024
@vinistevam vinistevam deleted the feat/multiple-alert-modal-component branch May 1, 2024 05:30
@github-actions github-actions bot locked and limited conversation to collaborators May 1, 2024
@gauthierpetetin gauthierpetetin added the release-12.0.0 Issue or pull request that will be included in release 12.0.0 label Jun 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-12.0.0 Issue or pull request that will be included in release 12.0.0 team-confirmations Push issues to confirmations team team-confirmations-system-deprecated DEPRECATED: please use "team-confirmations" instead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants