# Feature COMMS-223 - Trigger browser confirmation dialog when clicking on 'Mark all as read'

Project: Stream Communicator
Status: closed
URL: https://community.openproject.org/work_packages/COMMS-223

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 16.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Modules and project features / Notification center |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers | Kabiru Mwenja |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As an** OpenProject user  
**I want to** avoid inadvertently marking all my notifications as read  
**So that** I don't lose valuable information such as which work packages need my attention

**Context**

This is a short-term solution to fix two problems:

  - The 'Mark as read' button is too long and the buttons overlap on mobile
    
      - This will eventually be replaced with an icon button in the scope of Primerised sub-headers <mention class="mention" data-id="60332" data-type="work_package" data-text="##60332">##60332</mention>

  - There is no warning to the user before the action is executed
    
      - There will eventually be an undo action for this, so no warning will be necessary: <mention class="mention" data-id="61404" data-type="work_package" data-text="##61404">##61404</mention>

**Acceptance criteria**

In Notification center,  

  - *\[~~open\] Change the label on the Mark all as read' button to "Clear all"~~*
    
      - ~~DE: "Liste leeren"~~
    
      - ~~FR: "Vider la liste"~~
    
      - ~~ES: "Leer todos"~~

  - Show a native browser confirmation with the following text:
    
      - Message: "This will mark all notifications in this view as read. Are you sure you want to do this?"

  - When no unread notifications exist (and therefore the button doesn't do anything), the button goes into a disabled state.
    
    <br>

**Technical notes**

  - Please keep existing translation strings instead of creating a new one:
    
      - Key: `js.notifications.center.mark_all_read`

**Permissions and visibility considerations**

  - None
