You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
38
38
39
39
### Added
40
40
41
+
-**Knowledge-base document viewer CT coverage remediation** (Issue #1277): Added ~1,400 lines of new Playwright component tests across the four highest-uncovered files in `frontend/src/components/knowledge_base/document/` — `DocumentKnowledgeBase.tsx` (1,961 LOC / 25.5%), `right_tray/ChatTray.tsx` (1,417 / 25.3%), `unified_feed/RelationshipActionModal.tsx` (549 / 16.2%), and `unified_feed/UnifiedContentFeed.tsx` (577 / 29.8%). All new tests use the existing `*TestWrapper` pattern and drive the UI through `--reporter=list` as required by CLAUDE.md.
42
+
-`frontend/tests/RelationshipActionModal.ct.tsx` — Expanded from 3 to 16 specs. New coverage: corpus-loaded rendering, role-picker + add-to-existing flow with callback assertion, structural-relationship filtering, create-mode search + label-list filtering, "no labelset" warning, create-label form round-trip (open, cancel, submit via `SMART_LABEL_SEARCH_OR_CREATE` mock, change selected label), create-mode submit enablement, full submission (source/target pill assignment → `onCreate(labelId, sourceIds, targetIds)` verification), cancel → `onClose`, `getAnnotationPreview` ellipsis truncation at 30 chars, and singular/plural `Selected: N annotation(s)` rendering.
43
+
-`frontend/tests/RelationshipActionModalTestWrapper.tsx` — Extended to accept `withCorpus` / `hasLabelset` / `relationLabels` / `onAddToExisting` / `onCreate` / `onClose` / `corpusId` props. Seeds `corpusStateAtom` via an internal `CorpusSetupInner` children-wrapping effect component (children-wrapping rather than null-returning to satisfy Playwright CT's babel transform, which silently fails to mount otherwise).
44
+
-`frontend/tests/RelationshipActionModalFixtures.ts` — New plain `.ts` fixtures file hosting `buildRelationLabel`. Kept separate from the `.tsx` wrapper to avoid the Playwright CT split-import rule (pitfall #16 in `CLAUDE.md`).
45
+
-`frontend/tests/UnifiedContentFeed.ct.tsx` — Expanded with 8 new specs: multi-select selection-toolbar appearance & count, Select All, Clear, "Add to Relationship" opens `RelationshipActionModal`, read-only hides the checkbox, `noCorpus` hides the toolbar entirely, sort-by-type, note search-query filter, annotation rawText search-query filter, structural filter, `STRUCTURAL_LABEL_PREFIX` always-hidden invariant, and content-type routing (relationship-only).
46
+
-`frontend/tests/UnifiedContentFeedTestWrapper.tsx` — Added `noCorpus`, `showStructural`, `searchText`, and `textSearchMatches` props so the new tests can exercise the no-corpus and structural branches without mounting the component directly.
47
+
-`frontend/tests/ChatTray.ct.tsx` — Added 10 new specs covering empty conversation list, Back-to-Conversations (exitConversation + refetch), ASYNC_ERROR → Reconnect banner, new-chat FAB path, no-op Enter on empty input, sub-90% no character counter, Shift+Enter newline, context-meter rendering via `ASYNC_FINISH``context_status`, compaction banner via `ASYNC_THOUGHT` with `compaction` metadata, SYNC_CONTENT standalone assistant message, and readOnly-style start path.
48
+
-`frontend/tests/DocumentKnowledgeBase.ct.tsx` — Added 2 new specs covering the `!documentId` invalid-document error modal and its Close-button `handleClose` callback.
49
+
- Verification: full CT suite (`yarn test:ct --reporter=list`) — **1,523 passed, 3 skipped, 0 failed**.
50
+
41
51
-**Component test coverage for `ModernDocumentItem` and `DocumentRelationshipModal`** (Issue #1280): Added ~1,600 lines of Playwright CT coverage for two high-traffic document components that were lacking happy-path tests.
42
52
-`frontend/tests/ModernDocumentItem.ct.tsx` — New 750-line suite covering card/list view rendering (thumbnails, badges, metadata), selection state, permission-gated action buttons (CAN_UPDATE / read-only), action behaviors (view, edit, remove, open, download), backend-locked processing state, context menu actions, and version-history / relationship badges.
43
53
-`frontend/tests/DocumentRelationshipModal.ct.tsx` — Extended suite now covers state transitions (moves / removes across columns), Add Source/Target search flow, label picker with pre-populated labels, label change, RELATIONSHIP and NOTES submit mutations, mutation failure handling, inline create-label flow, `SMART_LABEL_SEARCH_OR_CREATE`, the missing-corpus error state, and the useMemo filter bodies (`availableDocuments`, `filteredRelationshipLabels`).
0 commit comments