# Code maintenance OP-20735 - Migrate Angular components to `OnPush` change detection

Project: OpenProject
Status: needs review
URL: https://community.openproject.org/work_packages/OP-20735

## OPEN POINTS

_No work packages_

## Subtasks

| ID | Subject | Type | Status | Assignee | Project | Target versions |
| --- | --- | --- | --- | --- | --- | --- |
| OP-20738 | Migrate dashboard and grid state for OnPush | Implementation | review approved | Alexander Coles | OpenProject | 18.1.0 |
| OP-20736 | Migrate audited Angular components to OnPush | Implementation | closed |  | OpenProject | 18.1.0 |
| OP-20737 | Fix state notifications for Angular OnPush migration | Implementation | needs review |  | OpenProject | 18.2.0 |

## Details

| Attribute | Value |
| --- | --- |
| Assignee | Alexander Coles |
| Accountable |  |
| Designer |  |
| Developers | Alexander Coles |
| Requires doc change | No |
| Date |  |
| Priority | Medium |
| Target versions | 18.1.0 |
| Sprint |  |
| Backlog bucket |  |
| Module |  |
| Accessibility | No |
| List |  |
| Labels |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| Work |  |
| Remaining work |  |

## Description

Migrate suitable Angular components from `Eager` to `OnPush` change detection and add basic Vitest rendering coverage where it is missing.

### Scope:

*   Audit component inputs, asynchronous updates and change-detection notifications before converting each component.
    
*   Backfill simple sanity specs, including update rendering where relevant.
    
*   Preserve Eager where mutable state or missing notifications require further work.
    

Dashboard, My Page and grid/widget change detection remain unchanged. The intentional rollback is documented in https://github.com/opf/openproject/pull/20533; the earlier comprehensive grid-state migration is https://github.com/opf/openproject/pull/20039.

Five simple edit-field conversions were deferred after review found custom actions changing shared inFlight state without notifying the fields. Their new value-rendering specs are retained as groundwork.
