From 882800568f8c496e20b1b926b68d92a0e3fc107c Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Tue, 1 Sep 2026 17:22:57 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=A3=BC=EC=A0=9C=EB=A1=9C=20=EA=B0=80?= =?UTF-8?q?=EB=8A=94=20=EB=A7=81=ED=81=AC=EA=B0=80=20=EC=8B=A4=EC=A0=9C?= =?UTF-8?q?=EB=A1=9C=20=EC=A3=BC=EC=A0=9C=20=ED=99=94=EB=A9=B4=EC=97=90=20?= =?UTF-8?q?=EB=8B=BF=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 문서 머리말의 주제 링크는 탐색 필터(`/explore?topic=…`)를 가리키고 있었다. 주제 화면이 주제 셋만 열어 두어 나머지가 404 였기 때문에 우회한 것인데, 그 하드코딩이 없어졌으므로 이제 곧장 주제 화면으로 간다. 축의 주소도 실제로 있는 자리로 맞춘다. `/topics/{주제}/{축}` 이라 적어 두었는데 그런 화면이 없다 — 축은 주제 화면 안의 한 줄이므로 그 줄에 앵커를 달고 그것을 가리킨다. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_011nAjrqNHGPNngN4aUbcyvJ --- public/release-manifest.json | 12 ++++++------ .../contracts/management/canonical-source.json | 4 ++-- .../tech-log/contracts/management/generated.ts | 2 +- .../contracts/management/management-api.openapi.yaml | 2 +- .../tech-log/contracts/public/canonical-source.json | 4 ++-- src/features/tech-log/contracts/public/generated.ts | 3 +++ .../contracts/public/public-api.openapi.yaml | 3 +++ .../tech-log/contracts/studio/canonical-source.json | 2 +- .../public/components/public-document-header.tsx | 9 ++++++--- .../presentation/public/pages/topic-page.tsx | 6 +++++- .../tech-log/public-document-screens.test.tsx | 5 +++-- 11 files changed, 33 insertions(+), 19 deletions(-) diff --git a/public/release-manifest.json b/public/release-manifest.json index d02b28b..61f9f0f 100644 --- a/public/release-manifest.json +++ b/public/release-manifest.json @@ -38,28 +38,28 @@ }, "contractSet": { "setAlgorithm": "CA_CONTRACT_SET_V1", - "setDigest": "sha256:05cc77985a814e457d1113758f2e6985196d5c66c069177de9e0ebdd1f4a40af", + "setDigest": "sha256:316028ca9b408cd5e943f1971792fbdb843392ea51ae415815fbbb8701d03909", "packages": [ { "packageId": "@tech-log/management-contract", "version": "1.0.0", - "digest": "sha256:5452be2aa2ac4164c82db393ae94eb0b7dcfa27c34a26dcd73f26f9f1a8e8998", + "digest": "sha256:61f8360cfb2e638c5d8c5557434b564e39cea517464c33cedcd1c5bf39a58aa8", "runtimeProtocolVersion": 1, - "sourceRevision": "0f4d2cd" + "sourceRevision": "71bab4c" }, { "packageId": "@tech-log/public-contract", "version": "2.1.0", - "digest": "sha256:08b68601bd81c569926e7374a0c95711a5982da332e6edc6c811fe08d2fd19db", + "digest": "sha256:977edf6707dc41a92f58f0f42908864ab8a3c1991d08f5c598319d51dac65235", "runtimeProtocolVersion": 1, - "sourceRevision": "0f4d2cd" + "sourceRevision": "71bab4c" }, { "packageId": "@tech-log/studio-contract", "version": "3.1.0", "digest": "sha256:d2bfbe0a12136f131ccb8c42f8868108ba8d0f0182b347f9b815316c343a970c", "runtimeProtocolVersion": 1, - "sourceRevision": "0f4d2cd" + "sourceRevision": "71bab4c" } ] } diff --git a/src/features/tech-log/contracts/management/canonical-source.json b/src/features/tech-log/contracts/management/canonical-source.json index b52ebe3..3164b75 100644 --- a/src/features/tech-log/contracts/management/canonical-source.json +++ b/src/features/tech-log/contracts/management/canonical-source.json @@ -1,8 +1,8 @@ { "packageId": "@tech-log/management-contract", "version": "1.0.0", - "digest": "sha256:5452be2aa2ac4164c82db393ae94eb0b7dcfa27c34a26dcd73f26f9f1a8e8998", - "sourceRevision": "0f4d2cd", + "digest": "sha256:61f8360cfb2e638c5d8c5557434b564e39cea517464c33cedcd1c5bf39a58aa8", + "sourceRevision": "71bab4c", "operationIds": [ "createCaseDraft", "getCaseForEdit", diff --git a/src/features/tech-log/contracts/management/generated.ts b/src/features/tech-log/contracts/management/generated.ts index b729bc5..34d02f8 100644 --- a/src/features/tech-log/contracts/management/generated.ts +++ b/src/features/tech-log/contracts/management/generated.ts @@ -1520,7 +1520,7 @@ export interface components { featuredCaseIds?: string[]; }; /** @description 주제 안의 접근/구조 하나. slug 는 그 주제 안에서만 유일하다 — 주소가 - * `/topics/{topicSlug}/{variantSlug}` 이고, 다른 주제에서 같은 이름을 쓸 수 있어야 한다. */ + * `/topics/{topicSlug}#{variantSlug}` 이고, 다른 주제에서 같은 이름을 쓸 수 있어야 한다. */ TopicVariantEdit: { /** Format: uuid */ id?: string; diff --git a/src/features/tech-log/contracts/management/management-api.openapi.yaml b/src/features/tech-log/contracts/management/management-api.openapi.yaml index 526053d..3871c60 100644 --- a/src/features/tech-log/contracts/management/management-api.openapi.yaml +++ b/src/features/tech-log/contracts/management/management-api.openapi.yaml @@ -7024,7 +7024,7 @@ components: - title description: |- 주제 안의 접근/구조 하나. slug 는 그 주제 안에서만 유일하다 — 주소가 - `/topics/{topicSlug}/{variantSlug}` 이고, 다른 주제에서 같은 이름을 쓸 수 있어야 한다. + `/topics/{topicSlug}#{variantSlug}` 이고, 다른 주제에서 같은 이름을 쓸 수 있어야 한다. properties: id: type: string diff --git a/src/features/tech-log/contracts/public/canonical-source.json b/src/features/tech-log/contracts/public/canonical-source.json index f59f49d..bf8d3a6 100644 --- a/src/features/tech-log/contracts/public/canonical-source.json +++ b/src/features/tech-log/contracts/public/canonical-source.json @@ -1,8 +1,8 @@ { "packageId": "@tech-log/public-contract", "version": "2.1.0", - "digest": "sha256:08b68601bd81c569926e7374a0c95711a5982da332e6edc6c811fe08d2fd19db", - "sourceRevision": "0f4d2cd", + "digest": "sha256:977edf6707dc41a92f58f0f42908864ab8a3c1991d08f5c598319d51dac65235", + "sourceRevision": "71bab4c", "operationIds": [ "getPublicSite", "getPublicHome", diff --git a/src/features/tech-log/contracts/public/generated.ts b/src/features/tech-log/contracts/public/generated.ts index 3cfb4bf..145273f 100644 --- a/src/features/tech-log/contracts/public/generated.ts +++ b/src/features/tech-log/contracts/public/generated.ts @@ -559,6 +559,9 @@ export interface components { TopicVariantSummary: { slug: string; title: string; + /** @description 이 축이 주제 화면에서 사는 자리(`/topics/{주제}#{축}`). 축은 주제 화면 안의 한 줄이지 + * 따로 선 화면이 아니다 — 자기 화면을 갖게 되면 그때 이 값이 바뀐다. + * */ path: string; summary?: string; /** @description 만들어 보고 무엇을 알게 됐는가. 비교표가 읽는 칸이다. */ diff --git a/src/features/tech-log/contracts/public/public-api.openapi.yaml b/src/features/tech-log/contracts/public/public-api.openapi.yaml index 61640b2..140e418 100644 --- a/src/features/tech-log/contracts/public/public-api.openapi.yaml +++ b/src/features/tech-log/contracts/public/public-api.openapi.yaml @@ -1283,6 +1283,9 @@ components: type: string path: type: string + description: | + 이 축이 주제 화면에서 사는 자리(`/topics/{주제}#{축}`). 축은 주제 화면 안의 한 줄이지 + 따로 선 화면이 아니다 — 자기 화면을 갖게 되면 그때 이 값이 바뀐다. summary: type: string conclusion: diff --git a/src/features/tech-log/contracts/studio/canonical-source.json b/src/features/tech-log/contracts/studio/canonical-source.json index 3f1c55f..0622eed 100644 --- a/src/features/tech-log/contracts/studio/canonical-source.json +++ b/src/features/tech-log/contracts/studio/canonical-source.json @@ -2,7 +2,7 @@ "packageId": "@tech-log/studio-contract", "version": "3.1.0", "digest": "sha256:d2bfbe0a12136f131ccb8c42f8868108ba8d0f0182b347f9b815316c343a970c", - "sourceRevision": "0f4d2cd", + "sourceRevision": "71bab4c", "operationIds": [ "getStudioSession", "getStudioDashboard", 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 f7d00ef..72db228 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 @@ -40,9 +40,12 @@ export function publicRenderModelBase( topic: { id: `topic-${record.topicSlug}`, label: record.topic, - // 공개 문서의 머리말이 실제로 그리는 주제 링크는 이 값이다 — 위의 breadcrumb 과 같은 - // 이유로 탐색 필터를 가리킨다. 둘 중 하나만 고치면 화면에서는 그대로 404 로 간다. - publicPath: `/explore?topic=${encodeURIComponent(record.topicSlug)}`, + /* + 주제 화면으로 보낸다. 오래 탐색 필터(`/explore?topic=…`)를 가리켰던 것은 주제 화면이 + 주제 셋만 열어 두어 나머지가 404 였기 때문이다 — 그 목록이 없어졌으므로 이제 어떤 + 주제든 자기 화면이 있다. + */ + publicPath: `/topics/${encodeURIComponent(record.topicSlug)}`, }, project: { id: `project-${record.projectSlug}`, diff --git a/src/features/tech-log/presentation/public/pages/topic-page.tsx b/src/features/tech-log/presentation/public/pages/topic-page.tsx index d5fa725..0aa2823 100644 --- a/src/features/tech-log/presentation/public/pages/topic-page.tsx +++ b/src/features/tech-log/presentation/public/pages/topic-page.tsx @@ -49,7 +49,11 @@ export function TopicPage() {

{`${axisLabel}별로 무엇을 알게 됐나`}