project-nomad/admin/tests/unit
Chris Sherwood 7d7459bc14 feat(KB): group admin docs into single row in Stored Files (RFC #883 §9)
Project NOMAD's bundled docs (`/app/docs/*.md` and `README.md`) each
embed as their own KB source — currently rendering as 12+ individual
rows that swamp user-uploaded content in the Stored Files table.
Collapse them into one informational row:

> Project NOMAD documentation · 12 files · Managed by NOMAD

The admin-docs row hides the Delete button (those files would be
re-embedded on the next sync anyway, so deleting is a footgun). User
uploads and ZIMs keep their existing per-row Delete UX.

Also adds deterministic sort: ZIMs → user uploads → admin docs → other,
alphabetical within each bucket. Pure frontend change — `/api/rag/files`
response shape unchanged.

Decision logic extracted to `kb_file_grouping.ts` with 9 unit tests
covering bucket classification, sort order, count noun pluralization,
and empty-input handling.
2026-05-16 20:30:08 -07:00
..
global_map_banner.spec.ts fix(UI): improve global map banner display logic (#702) 2026-04-28 20:55:25 -07:00
kb_file_grouping.spec.ts feat(KB): group admin docs into single row in Stored Files (RFC #883 §9) 2026-05-16 20:30:08 -07:00
kb_ingest_decision.spec.ts feat(KB): per-file ingest state machine (Phase 1 of RFC #883) (#888) 2026-05-15 22:51:06 -07:00
kb_ratio_lookup.spec.ts feat(KB): ratio registry for disk + time estimates (Phase 1B of RFC #883) 2026-05-16 20:23:47 -07:00
zim_filename.spec.ts fix(ZIM): preserve co-existing Wikipedia corpora on cleanup (#884) 2026-05-15 22:29:17 -07:00