feat(viewer): show document summary together with the original (TODO.md L5)

This commit is contained in:
2026-08-26 19:11:15 -04:00
parent 1925bb66a8
commit 9efffcb428
8 changed files with 501 additions and 7 deletions
+4 -1
View File
@@ -143,11 +143,14 @@ def test_content_known_pair_maps_to_doc_content() -> None:
)
assert r.status_code == 200
body = r.json()
assert set(body) == {"source", "path", "title", "format", "content", "indexed_at", "chunks"}
assert set(body) == {
"source", "path", "title", "format", "summary", "content", "indexed_at", "chunks"
}
assert body["source"] == "Homelab"
assert body["path"] == "notes/deep mark.md"
assert body["title"] == "Deep Mark"
assert body["format"] == "md"
assert body["summary"] is None # markdown doc → no summary (phase 36)
assert body["content"] == "# Deep Mark\n\nbody"
assert body["indexed_at"] == "2026-08-22T01:02:03+00:00"
assert body["chunks"] == 3