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({