test(FN-4308): complete Step 4 — add card and modal aggregation regressions

Fusion-Task-Id: FN-4308
Fusion-Task-Lineage: d0a46a8f-2245-4ddc-99b4-06d78e87db16
This commit is contained in:
Fusion
2026-05-13 09:17:13 -07:00
committed by gsxdsm
parent bd1069c4e6
commit 48ed516e70
3 changed files with 67 additions and 3 deletions

View File

@@ -70,9 +70,9 @@ export function __test_clearDiffStatsCache(): void {
* Fetches diff stats for a task's Changes tab.
*
* For active worktree-backed tasks, this keeps the TaskCard count aligned with
* the Changes tab. For done tasks, it uses the same endpoint so the card does
* not fall back to `mergeDetails.filesChanged`, which is computed at merge time
* and can differ from the endpoint's count.
* the Changes tab. For done tasks, it always uses `/api/tasks/:id/diff`, whose
* server-side aggregation is the canonical source (including multi-commit
* lineage unions), instead of trusting `mergeDetails.filesChanged`.
*
* @param taskId - Task identifier
* @param column - Current task column