ui/client/features/processes/domain/GcCounts
Pure (DOMAIN-001): -- turning the dry-run gc report into what the drawer shows: one total count, and the plain-words lines the "Details" popover lists.
Cockpit client (features), next. Source: ui/client/features/processes/domain/GcCounts.ts.
Functions#
gcCleanupCount()#
gcCleanupCount(
gc):number
Defined in: ui/client/features/processes/domain/GcCounts.ts:8
The single number the drawer's "N item(s) can be cleaned up" line shows: every dead worktree, orphaned branch and stale-approval record the sweep found, added together. 0 when there is nothing to report, or the report has not arrived yet.
Parameters#
gc
GcReport | null
Returns#
number
gcDetailLines()#
gcDetailLines(
gc):GcDetailLine[]
Defined in: ui/client/features/processes/domain/GcCounts.ts:14
One line per item, in plain words, for the "Details" popover.
Parameters#
gc
GcReport | null