# Bug OP-11842 - Erroneous behavior on Notification center page when there are +99 notifications and we mark all as read

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-11842

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.5.0 |
| Observed in versions |  |
| Sprint | 12.5.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Have more than 99 unread notifications ready for you in notification center page when you log in
2.  Click on the bell icon to see all your notifications
3.  Click on Mark all as read

### What is the buggy behavior?

  - Not all the notifications are marked as read, because the number is still greater than 0
  - Since there seems to be some kind of filter applied for viewing notifications, there is a text string with a grammatical error, saying: "Looks like you're all caught up for X filter."

### What is the expected behavior?

When the "Mark all as read" button is clicked:

  - All the notifications in the current filter view ("Inbox", "Mentioned", "Assignee"... including specific project views) should be marked as read.
      - The number should then be zero for that view.
  - Change the empty state string of the message for the filtered views to:
      - "Looks like you are all caught up for the '{filter name}' view" *(change: the ending bit)*
  - Change the empty state string for the project views to:
      - "Looks like you are all caught up with the selected project" *(change: "you are" instead of "you're")*

### Screenshots and other files

I have attached a video.

### Environment information

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

- [ ] Hosted cloud edition
- [ ] Packaged installation
    - What distribution?
- [ ] Docker All-in-one container
- [ ] Docker-compose installation
- [x] Other (please specify): QA Stage 12.4.3
