* feat(dashboard): unified "Att göra" worklist section on Hem
The pilot's core complaint: pending work was scattered across
Transaktioner, Underlag and Ny verifikation with no single starting
point. Hem now carries one flat Att göra ledger — three bands by
session intent (Bokför / Granska & komplettera / Bevaka), every count
read from lib/worklist (the same source as the sidebar badges, so the
numbers can never disagree), and an "Allt klart!" empty state.
Suggested transaction↔invoice matches render inline with one-click
Bekräfta posting to the existing match endpoints; rows fade out
optimistically and counts re-sync from /api/worklist/counts.
Replaces the "Att hantera" alert-card grid — whose warning/destructive
chrome borders violated the design system — with neutral hairline rows;
urgency is now carried by Badge variants only. The "Att göra" KPI tile
switches to the worklist total, and the home page drops eight inline
pending-work queries (incl. the legacy receipts queue, superseded by
the inbox category) in favour of getWorklistCounts().
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(dashboard): address PR #674 review — count/visibility consistency
greptile found two real contradictions in the Att göra section:
- Expiring bank connections rendered a Bevaka row without counting
toward the header total — a user with only an expiring consent read
"0 kvar" next to a visible action row. The section header and the
KPI tile now both show worklist.total + expiring connections.
- deadline_action counted toward the total but had no row, so
deadline-only users saw "Allt klart!" under a non-zero tile. Bevaka
gains a "Moms- och skattedeadlines" row linking to /deadlines.
Invariant after this commit: every count that feeds a displayed total
has a visible row, and the tile and section header always agree.
Also per compliance review: a failed counts refetch after a confirmed
match now logs via console.error (Sentry-observable) instead of being
silently swallowed.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>