clients/apps
Alex 089caf57c2
[PM-27757] init new apps state (#17200)
* feat(dirt): add "needs review" state for applications needing initial review

- Add showNeedsReviewState to display warning when all apps lack review dates
- Track noAppsHaveReviewDate flag to identify unreviewed applications
- Add i18n strings for organization items count and review prompt
- Update activity card to show 3 states: all caught up, needs review, new apps
- Apply tw-col-span-2 to needs review card for better visibility

* refactor: split activity card states into separate @if blocks for readability

* fix: set hasLoadedApplicationData when summary data arrives

Previously, hasLoadedApplicationData was only set in the enrichedReportData$
subscription, which fired after reportSummary$ and newApplications$. This
caused a timing issue where showNeedsReviewState would remain false even when
newApplicationsCount === totalApplicationCount because the flag wasn't set yet.

Now we set hasLoadedApplicationData=true as soon as reportSummary$ arrives
with totalApplicationCount > 0, ensuring proper synchronization.

---------

Co-authored-by: Tom <ttalty@bitwarden.com>
2025-11-11 13:11:33 -05:00
..
browser [PM-26056] Consolidated session timeout component (#16988) 2025-11-11 08:15:36 -06:00
cli [PM-23614] Remove activeUserOrgKeys$ from the key service (#17045) 2025-11-06 19:27:13 +01:00
desktop [PM-26056] Consolidated session timeout component (#16988) 2025-11-11 08:15:36 -06:00
web [PM-27757] init new apps state (#17200) 2025-11-11 13:11:33 -05:00