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]: Notification List UI Implementation #2711

Merged

Conversation

Ayush8923
Copy link
Contributor

@Ayush8923 Ayush8923 commented Dec 11, 2024

closes: #2661

Visible/Frontend Changes

  • Implement the Notification List UI as per this comment.
  • Create the different components for the Notification-items.
  • Create Two tabs for all notifications and unread notifications.
  • Update the notification settings icon to display three dots instead of the settings icon, and show the settings menu items upon clicking the dots.

Copy link
Contributor

Deployed to https://pr-2711.aam-digital.net/

@Ayush8923 Ayush8923 self-assigned this Dec 11, 2024
Copy link
Member

@sleidig sleidig left a comment

Choose a reason for hiding this comment

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

Looking pretty good already.

A few more optimizations for UI & UX:

  • menu icons should have some width to cleanly align:
    image
  • that menu (mark unread / delete upon blue dot) should auto-close after clicking one option, in my opinion
  • same for the top "..." menu. "Mark all read" should close the action menu (but keep the notifications list open).

@Ayush8923
Copy link
Contributor Author

that menu (mark unread / delete upon blue dot) should auto-close after clicking one option, in my opinion

@sleidig I tried to implement the functionality in this way, but the mat-menu is not closing due to the use of stopPropagation. When I use stopPropagation in a mat-menu item, the mat-menu doesn't close. However, when I remove stopPropagation, both mat-menu close. So, I implemented it in such a way that whenever the user selects any mat-menu item, the mat-menu does not close. If the user wants to close it, they can do so. Could you please suggest a solution if you have one?

same for the top "..." menu. "Mark all read" should close the action menu (but keep the notifications list open).

Same for this.

@Ayush8923
Copy link
Contributor Author

Ayush8923 commented Dec 19, 2024

Deployed to https://pr-2711.aam-digital.net/

@george-neha I have made some updates to the notification list UI. Please check the notification list UI in the mentioned URL and let us know if you have any suggestions. Also, I have modified the notification time and when the user hovers in the notification time then in the tooltip the actual date and time will be shown.

  1. For notifications 7 or more days ago, show the number of days (e.g. "10d", "15d").
  2. For even longer timespans (30+ days), we can display the month and year (e.g. "Jan 2024").

@george-neha
Copy link

Working as per discussed functionality and UI. Can be moved to tech review.
@Ayush8923- Can this be aligned?
image

Copy link
Member

@sleidig sleidig left a comment

Choose a reason for hiding this comment

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

Made some small improvements. Looks fine now 👍

src/app/features/notification/notification.component.html Outdated Show resolved Hide resolved
@sleidig sleidig merged commit e4dbf3f into feat/1055_notifications-final Dec 27, 2024
12 checks passed
@sleidig sleidig deleted the feat/notification-final-integration branch December 27, 2024 14:15
sleidig added a commit that referenced this pull request Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

View list of notifications in the app See unread notifications indicator in the app
3 participants