OlhenShu / GreenCityProjectStage

0 stars 0 forks source link

Notifications #215

Open OlhenShu opened 11 months ago

OlhenShu commented 11 months ago

As a registered user, I want to receive notifications so I can be informed about friend requests on the site.

Scenario 1: User receives a new notification Acceptance Criteria: GIVEN The user is logged in WHEN The user receives a new notification THEN The bell icon turns green AND Displays the current number of unread notifications. Mockup Scenario 2:** User views the list of notifications GIVEN The user has received new notifications WHEN The user clicks on the bell icon THEN A dropdown list appears with new messages related only to greencity.

BR1: Each notification in the dropdown list must contain the Section it relates to, the time the notification was received, and the text of the notification.

Scenario 3: User navigates to the notifications section GIVEN The user has opened the dropdown list of notifications WHEN The user clicks on the "All notifications" button

image

THEN The user is taken to the Notifications tab. image

Scenario 4: User clicks on a notification and navigates to the related page GIVEN The user has opened the "All notifications" section WHEN The user clicks on a specific notification THEN The user is directed to the page related to the notification AND The viewed notification changes its status to "viewed" AND Changes color from green to gray in the notifications section AND Is removed from the dropdown list on the bell icon AND The number of notifications decreases (number = new notifications - viewed).

Scenario 5: User has viewed all notifications GIVEN The user has received notifications WHEN The user views all notifications THEN The bell icon turns gray AND Notifications are removed from the dropdown list.

BR2: All notifications are stored in the Notifications section.

Out of scope

Labels to be added "User story", Correspondind Functionality (e.g. User), Priority ("pri: "), "Corresponding Epic"

Tasks

    • [ ] sample task.