# Feature OP-11568 - Keep state of Activity tab when switching forth and back to another tab

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

## Planning

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

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Accessibility | No |

## People

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

## Estimates and progress

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

## Description

**As** a contributor to a work package  
**I want to** to keep the state of the *Activity* tab when I switch to another tab and back  
**so that** that I don't lose any comment message that I was in the process of composing.

*Example:*

*In the notifications center, I want to comment on a work package. I start writing a comment. Then I want to check the work package's descritpion which is in the Overview tab. Or I want to reference a work package which I know is also referenced in the Relations tab and I simply want to look up its ID. Or I want to check/look up files in the files tab, or I want to add a file, ... In all those cases I am in the process of writing a at times lengthy comment and I don't want to lose it just because I switched the tab.*

The problem is not only present in the notifications center.

I believe the underlying problem is that the *Activity* tab updates its front-end state when it gets selected. I don't know the reason for it (<mention class="mention" data-id="9177" data-type="user" data-text="@Oliver Günther">@Oliver Günther</mention>, do you know why it is like that?). If the *Activity* would keep its state many comment messages would not get lost and a lot of frustrating would be saved.

**Acceptance criteria**

  - Switching to and back to another tab of the same work package will not lose the content of the comment input field.
  - Works in all context where work package tabs are present
      - work package full view
      - work package split view
      - notification center
      - BCF module
      - Revit addin
