nexus/server
hougangdev 36e4e67025 fix(sidebar-badges): include approvals in inbox badge count
When a company has "require board approval for new agents" enabled,
hiring an agent creates a pending approval that requires the user
(as a board member) to approve before the agent can start working.
However, the sidebar inbox badge did not include pending approvals
in its count, so there was no visual indicator that action was needed.
Users had no way of knowing an approval was waiting unless they
happened to open the Inbox page manually.

The root cause: the sidebar-badges service correctly included
approvals in the inbox total, but the route handler overwrites
badges.inbox to add alertsCount and staleIssueCount — and in
doing so dropped badges.approvals from the sum.

Add badges.approvals to the inbox count recalculation so that
pending and revision-requested approvals surface in the sidebar
notification badge alongside failed runs, alerts, stale work,
and join requests.

Affected files:
- server/src/routes/sidebar-badges.ts
2026-03-07 17:38:07 +08:00
..
src fix(sidebar-badges): include approvals in inbox badge count 2026-03-07 17:38:07 +08:00
CHANGELOG.md chore: release v0.2.7 2026-03-04 14:51:33 -06:00
package.json force @types/node@24 in the server 2026-03-05 14:37:48 -03:00
tsconfig.json feat: integrate Changesets for multi-package npm publishing 2026-03-03 14:46:16 -06:00
vitest.config.ts Add API server with routes, services, and middleware 2026-02-16 13:31:58 -06:00