feat: 기록의 맥락을 읽기 난간의 앞뒤 한 칸으로 모은다

제목 아래 맥락 블록(ContextNavigator)과 난간의 Related 가 같은 것을 두 번
말하고 있었다. 난간 하나만 남기고, 거기에 주제가 정한 사고 순서의 바로
앞·뒤 한 칸을 둔다. 기록 화면은 그 순서를 알아야 하므로 자기 주제의 기록
목록을 함께 받는다.

주제의 사고 순서는 종류마다 한 편이 아니라 전부를 세우고, 관계가 가리키는
프로젝트 결정을 기준 다음 칸에 끼운다. 답이 나온 질문은 흐름에는 남되
「아직 답하지 못한 질문」으로 다시 서지 않는다.

문서 머리말의 빵부스러기는 프로젝트/주제만 남기고 종류는 링크가 아닌 한
줄로 내린다. 홈의 「종류별로 읽기」는 주 내비가 이미 데려가므로 내린다.

`tests/component/inline-line-breaks.test.tsx` 는 머리말의 `<p>` 를 전부
세고 있어서 종류 한 줄이 늘자 깨졌다. 요약만 세도록 좁혔다 — 문단 나누기를
망가뜨리면 여전히 실패한다.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cfj8mZ9QmT3MEKonzM5xPj
This commit is contained in:
DongHyeonka
2026-09-16 21:41:30 +09:00
co-authored by Claude Opus 5
parent 8c57ed7d57
commit 99c05c567d
25 changed files with 547 additions and 622 deletions
+11 -2
View File
@@ -98,9 +98,18 @@ describe("문서 머리말의 요약", () => {
/>
</MemoryRouter>,
);
const paragraphs = container.querySelectorAll(".public-document-header p");
/*
머리말에는 요약 말고도 종류를 적은 한 줄(`.section-kicker`)이 있다. 이 가드가 보는 것은
요약이 문단으로 나뉘는가이므로 그 줄은 빼고 센다 — 예전처럼 머리말의 `<p>` 를 전부 세면
머리말에 줄이 하나 늘 때마다 요약과 상관없이 깨진다.
*/
const paragraphs = container.querySelectorAll(
".public-document-header p:not(.section-kicker)",
);
expect(paragraphs).toHaveLength(2);
expect(container.querySelectorAll(".public-document-header p br")).toHaveLength(1);
expect(
container.querySelectorAll(".public-document-header p:not(.section-kicker) br"),
).toHaveLength(1);
expect(paragraphs[0]).toHaveTextContent("둘 다 메모리에 있다.");
expect(paragraphs[1]).toHaveTextContent("인스턴스를 늘리면 설계가 필요하다.");
});