From 23efcf095c3440f9944f2523d95d761442f01d3b Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Tue, 1 Sep 2026 17:46:56 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=A3=BC=EC=A0=9C=EA=B0=80=20=EC=97=86?= =?UTF-8?q?=EB=8A=94=20=EA=B8=B0=EB=A1=9D=EC=9D=B4=20=EC=A3=BD=EC=9D=80=20?= =?UTF-8?q?=EB=A7=81=ED=81=AC=EB=A5=BC=20=EB=8B=AC=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EA=B2=8C=20=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 주제 없이 게시된 기록이 있는데, 화면이 그것을 모르고 `/topics/` 로 가는 이름 없는 링크를 만들고 있었다 — 문서 머리말의 breadcrumb 과 탐색의 「주제 없음」 묶음 둘 다. 프로젝트 조각은 처음부터 조건부였는데 주제 쪽만 아니었다. 관계 목록의 제목도 기본값으로 옮긴다. 부르는 쪽마다 적게 했더니 다섯 자리 중 둘만 고쳐졌고, 같은 목록이 화면에 따라 두 이름으로 나왔다. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_011nAjrqNHGPNngN4aUbcyvJ --- .../components/public-document-header.tsx | 4 +++- .../public/pages/explore-page.tsx | 5 +++- .../public-document-relations.tsx | 8 +++++-- .../public-render/public-record-renderer.tsx | 24 +++++++++---------- 4 files changed, 25 insertions(+), 16 deletions(-) diff --git a/src/features/tech-log/presentation/public/components/public-document-header.tsx b/src/features/tech-log/presentation/public/components/public-document-header.tsx index 72db228..b48fa74 100644 --- a/src/features/tech-log/presentation/public/components/public-document-header.tsx +++ b/src/features/tech-log/presentation/public/components/public-document-header.tsx @@ -45,7 +45,9 @@ export function publicRenderModelBase( 주제 셋만 열어 두어 나머지가 404 였기 때문이다 — 그 목록이 없어졌으므로 이제 어떤 주제든 자기 화면이 있다. */ - publicPath: `/topics/${encodeURIComponent(record.topicSlug)}`, + publicPath: record.topicSlug + ? `/topics/${encodeURIComponent(record.topicSlug)}` + : null, }, project: { id: `project-${record.projectSlug}`, diff --git a/src/features/tech-log/presentation/public/pages/explore-page.tsx b/src/features/tech-log/presentation/public/pages/explore-page.tsx index 587249c..094c7f2 100644 --- a/src/features/tech-log/presentation/public/pages/explore-page.tsx +++ b/src/features/tech-log/presentation/public/pages/explore-page.tsx @@ -73,10 +73,13 @@ export function ExplorePage() { {/* 주제 이름은 그 주제 화면으로 가는 링크다. 목록에서 한 주제가 눈에 들면 그 주제가 무엇에 답하는지로 바로 갈 수 있어야 한다. + + 주제가 없는 기록도 한 묶음으로 모이는데, 그쪽은 갈 곳이 없다 — 링크로 만들면 + `/topics/` 라는 죽은 주소가 된다. */}

- {group.name} + {group.slug ? {group.name} : group.name}

{`${group.records.length}개`}

diff --git a/src/features/tech-log/presentation/shared/public-render/public-document-relations.tsx b/src/features/tech-log/presentation/shared/public-render/public-document-relations.tsx index 0fd8be0..9e12888 100644 --- a/src/features/tech-log/presentation/shared/public-render/public-document-relations.tsx +++ b/src/features/tech-log/presentation/shared/public-render/public-document-relations.tsx @@ -24,8 +24,12 @@ export type PublicRelation = Readonly<{ export function PublicDocumentRelations({ relations, - kicker = "Relations", - title = "이 기록과 연결된 맥락", + /* + 기본값이 곧 이 목록의 뜻이다. 부르는 쪽마다 제목을 적게 했더니 다섯 자리 중 둘만 고쳐졌고, + 같은 목록이 화면에 따라 「이 기록과 연결된 맥락」과 「다음에 읽을 것」 두 이름으로 나왔다. + */ + kicker = "Next", + title = "다음에 읽을 것", }: { relations: ReadonlyArray; kicker?: string; diff --git a/src/features/tech-log/presentation/shared/public-render/public-record-renderer.tsx b/src/features/tech-log/presentation/shared/public-render/public-record-renderer.tsx index 396a606..8d02548 100644 --- a/src/features/tech-log/presentation/shared/public-render/public-record-renderer.tsx +++ b/src/features/tech-log/presentation/shared/public-render/public-record-renderer.tsx @@ -76,8 +76,16 @@ function ModelDocumentHeader({