feat(FN-3604): add chat unread indicator to header and mobile nav

Implements a chat unread indicator across the header and mobile nav bar, driven by a new unread-response tracker in the app state, with tests and a docs update for the feature.

Fusion-Task-Id: FN-3604
This commit is contained in:
Fusion
2026-05-06 18:46:45 -07:00
committed by gsxdsm
parent c5ea44a41d
commit d370f305e9
9 changed files with 202 additions and 3 deletions

View File

@@ -138,6 +138,16 @@ describe("Header", () => {
expect(onChangeView).toHaveBeenCalledWith("list");
});
it("shows chat unread indicator when chatHasUnreadResponse is true and chat is not active", () => {
renderHeader({ onChangeView: noop, view: "board", chatHasUnreadResponse: true });
expect(screen.getByLabelText("Unread chat response")).toBeInTheDocument();
});
it("hides chat unread indicator when chat view is active", () => {
renderHeader({ onChangeView: noop, view: "chat", chatHasUnreadResponse: true });
expect(screen.queryByLabelText("Unread chat response")).toBeNull();
});
it("has correct aria attributes for accessibility", () => {
renderHeader({ onChangeView: noop, view: "board" });
const boardBtn = screen.getByTitle("Board view");