Skip to content

feat: new notification components#22509

Merged
matteoscurati merged 41 commits intodevelopfrom
feature/push-notifications-items
Mar 8, 2024
Merged

feat: new notification components#22509
matteoscurati merged 41 commits intodevelopfrom
feature/push-notifications-items

Conversation

@matteoscurati
Copy link
Copy Markdown
Contributor

@matteoscurati matteoscurati commented Jan 12, 2024

Description

The notifications team is working to introduce a new type of notifications within the extension. These notifications will be listed in a menu where the user can access basic information. By clicking on an single notification, the user will be able to access detailed data.

This PR introduces the necessary components to display individual items within the list and the various types of details for each notification type.

Related issues

Manual testing steps

Currently, the individual components can be tested within Storybook. For each created component, there is a corresponding story for testing and demonstration purposes.

Screenshots/Recordings

Before

After

These are two screenshots taken from the Figma design created by the design team. They represent the notifications list page and the notification detail page.

Notifications list
https://www.figma.com/file/c7GgNw2kScGrVyRGAPhwEd/Notifications?type=design&node-id=1030%3A98661&mode=design&t=MHqDKTFq36ifnkqJ-1

Notification details page
https://www.figma.com/file/c7GgNw2kScGrVyRGAPhwEd/Notifications?type=design&node-id=1030%3A98983&mode=design&t=MHqDKTFq36ifnkqJ-1

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained what problem this PR is solving and how it is solved.
  • I've linked related issues
  • I've included manual testing steps
  • I've included screenshots/recordings if applicable
  • 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.
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

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.

@matteoscurati matteoscurati added the team-notifications-deprecated DEPRECATED: please use "team-assets" instead label Jan 12, 2024
@matteoscurati matteoscurati requested a review from a team as a code owner January 12, 2024 09:05
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 12, 2024

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 INVALID-PR-TEMPLATE PR's body doesn't match template label Jan 12, 2024
@matteoscurati
Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@metamaskbot metamaskbot removed the INVALID-PR-TEMPLATE PR's body doesn't match template label Jan 12, 2024
Copy link
Copy Markdown
Contributor

@darkwing darkwing left a comment

Choose a reason for hiding this comment

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

Just a few comments here

@matteoscurati matteoscurati force-pushed the feature/push-notifications-items branch from fdec73a to e08e8da Compare January 15, 2024 10:58
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [e08e8da]
Page Load Metrics (1183 ± 57 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint912531184421
domContentLoaded9177294723
load9601486118312057
domInteractive9177294723
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 35.88 KiB (0.51%)
  • common: 0 Bytes (0.00%)

@legobeat legobeat changed the title feat: ✨ new notification components to render notification i… feat: new notification components Jan 15, 2024
@matteoscurati matteoscurati requested review from a team, brad-decker and kumavis as code owners January 18, 2024 11:39
@matteoscurati matteoscurati force-pushed the feature/push-notifications-items branch from 6b88a8e to 153d73c Compare February 27, 2024 14:50
@matteoscurati
Copy link
Copy Markdown
Contributor Author

@darkwing I had already reviewed your comments and now, due to some conflicts, I have performed a force push.
Do you think it's possible to merge this PR? The components don't affect anything that's in production :)

@matteoscurati matteoscurati requested review from darkwing and removed request for a team, brad-decker and kumavis February 27, 2024 16:29
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [5b788e0]
Page Load Metrics (1309 ± 379 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint901941362814
domContentLoaded976352110
load8521451309789379
domInteractive976352110
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 37.56 KiB (0.53%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [9c30fa5]
Page Load Metrics (1220 ± 410 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint762611414923
domContentLoaded1182342211
load6022721220853410
domInteractive1182342211
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 37.56 KiB (0.53%)
  • common: 0 Bytes (0.00%)

@matteoscurati matteoscurati assigned darkwing and unassigned darkwing Mar 4, 2024
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [daee18b]
Page Load Metrics (1182 ± 442 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint812761344321
domContentLoaded126933168
load6526381182921442
domInteractive126933168
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 37.82 KiB (0.54%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [a4a547e]
Page Load Metrics (1433 ± 383 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint752111394019
domContentLoaded980342110
load7123621433798383
domInteractive980342110
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 37.82 KiB (0.54%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [f66151c]
Page Load Metrics (886 ± 433 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint702721245326
domContentLoaded1098312412
load572180886902433
domInteractive1098312412
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 37.82 KiB (0.54%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [9166964]
Page Load Metrics (1234 ± 368 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint772041343215
domContentLoaded107932209
load6420031234767368
domInteractive107932209
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 37.82 KiB (0.54%)
  • common: 0 Bytes (0.00%)

amount,
}: NotificationListItemProps) => {
const handleClick = () => {
console.log('clicked', id);
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.

As a cleanup, lets remove all console.logs once we start integrating these components.

Note to others - these components are not connected in any way inside the extension. But will soon be integrated in followup PRs.

Copy link
Copy Markdown
Contributor

@Prithpal-Sooriya Prithpal-Sooriya left a comment

Choose a reason for hiding this comment

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

Nice, lets get this first notifications PR in 🎉

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [aaad20f]
Page Load Metrics (1000 ± 395 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint652551334622
domContentLoaded1077442210
load5319591000823395
domInteractive1077442210
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 37.82 KiB (0.54%)
  • common: 0 Bytes (0.00%)

@matteoscurati matteoscurati merged commit 6c810aa into develop Mar 8, 2024
@matteoscurati matteoscurati deleted the feature/push-notifications-items branch March 8, 2024 12:29
@github-actions github-actions bot locked and limited conversation to collaborators Mar 8, 2024
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Mar 8, 2024
@metamaskbot metamaskbot added the release-11.14.0 Issue or pull request that will be included in release 11.14.0 label Mar 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-11.14.0 Issue or pull request that will be included in release 11.14.0 team-notifications-deprecated DEPRECATED: please use "team-assets" instead

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants