feat(documents): show global undated count chip on the filter toggle
Some checks failed
CI / Unit & Component Tests (pull_request) Failing after 2m50s
CI / OCR Service Tests (pull_request) Successful in 22s
CI / Backend Unit Tests (pull_request) Failing after 4m3s
CI / fail2ban Regex (pull_request) Successful in 46s
CI / Semgrep Security Scan (pull_request) Successful in 21s
CI / Compose Bucket Idempotency (pull_request) Successful in 1m3s
Some checks failed
CI / Unit & Component Tests (pull_request) Failing after 2m50s
CI / OCR Service Tests (pull_request) Successful in 22s
CI / Backend Unit Tests (pull_request) Failing after 4m3s
CI / fail2ban Regex (pull_request) Successful in 46s
CI / Semgrep Security Scan (pull_request) Successful in 21s
CI / Compose Bucket Idempotency (pull_request) Successful in 1m3s
Surface the backend's global undatedCount on the "Nur undatierte" toggle as a count chip — the total undated documents matching the current filter across all pages, not the page slice. The loader forwards undatedCount straight through (defaulting to 0); the chip hides at 0 and stays visible regardless of the toggle state so it advertises the triage backlog size. generate:api was hand-edited (undatedCount added to DocumentSearchResult) — CI must re-run npm run generate:api to confirm parity. Refs #668 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -85,6 +85,7 @@ export async function load({ url, fetch }) {
|
||||
pageNumber: 0,
|
||||
pageSize: PAGE_SIZE,
|
||||
totalPages: 0,
|
||||
undatedCount: 0,
|
||||
q,
|
||||
from,
|
||||
to,
|
||||
@@ -116,6 +117,8 @@ export async function load({ url, fetch }) {
|
||||
pageNumber: result.data?.pageNumber ?? page,
|
||||
pageSize: result.data?.pageSize ?? PAGE_SIZE,
|
||||
totalPages: result.data?.totalPages ?? 0,
|
||||
// Global undated count for the active filter, across all pages (issue #668).
|
||||
undatedCount: result.data?.undatedCount ?? 0,
|
||||
q,
|
||||
from,
|
||||
to,
|
||||
|
||||
Reference in New Issue
Block a user