{axisLabel}
+{variant.title}
+ {/* + 결론이 이 축의 값어치다. 요약은 이것이 무엇인가만 말하므로, 결론이 있으면 그쪽을 먼저 + 보이고 요약은 그 아래 한 줄로 남긴다. + */} +{variant.summary}
+ ) : null} + +{`이 ${axisLabel}의 기록`}
+{`${ordered.length}개`}
+diff --git a/home-comparison-after.png b/home-comparison-after.png new file mode 100644 index 0000000..c79c11b Binary files /dev/null and b/home-comparison-after.png differ diff --git a/home-comparison-section.png b/home-comparison-section.png new file mode 100644 index 0000000..fede5b9 Binary files /dev/null and b/home-comparison-section.png differ diff --git a/public/release-manifest.json b/public/release-manifest.json index 55bbb19..8518f76 100644 --- a/public/release-manifest.json +++ b/public/release-manifest.json @@ -38,28 +38,28 @@ }, "contractSet": { "setAlgorithm": "CA_CONTRACT_SET_V1", - "setDigest": "sha256:6547e98a79ff5e09afeac849036d559481fc8abc6e232a2b5ce5c9841a071a25", + "setDigest": "sha256:cb8c02d87ac373d46de335091e435400ae1374002da9a446ee203b02c1dd58ec", "packages": [ { "packageId": "@tech-log/management-contract", "version": "1.0.0", "digest": "sha256:61f8360cfb2e638c5d8c5557434b564e39cea517464c33cedcd1c5bf39a58aa8", "runtimeProtocolVersion": 1, - "sourceRevision": "a58ad30" + "sourceRevision": "b93d62a" }, { "packageId": "@tech-log/public-contract", "version": "2.1.0", - "digest": "sha256:a964914040740a1223c33b5aeaf7724a8a0c78d91063bf3f1b7d7594c314a395", + "digest": "sha256:10b922715a4149f2dcf4d5925fb1d3e3e820a6d14d9e4a91d7a325027684280d", "runtimeProtocolVersion": 1, - "sourceRevision": "a58ad30" + "sourceRevision": "b93d62a" }, { "packageId": "@tech-log/studio-contract", "version": "3.1.0", "digest": "sha256:d2bfbe0a12136f131ccb8c42f8868108ba8d0f0182b347f9b815316c343a970c", "runtimeProtocolVersion": 1, - "sourceRevision": "a58ad30" + "sourceRevision": "b93d62a" } ] } diff --git a/src/contracts/route-runtime-contract.ts b/src/contracts/route-runtime-contract.ts index 31e4dc6..495d1ac 100644 --- a/src/contracts/route-runtime-contract.ts +++ b/src/contracts/route-runtime-contract.ts @@ -5,6 +5,7 @@ export type RouteCodecId = | "ReferenceResourceListQuery" | "TechLogExploreKindParams" | "TechLogSlugParams" + | "TechLogTopicVariantParams" | "TechLogVersionParams" | "TechLogDocumentIdParams" | "TechLogPublicationEventIdParams" diff --git a/src/features/tech-log/adapters/http/http-public-content-gateway.ts b/src/features/tech-log/adapters/http/http-public-content-gateway.ts index 6b5acbd..44f8a41 100644 --- a/src/features/tech-log/adapters/http/http-public-content-gateway.ts +++ b/src/features/tech-log/adapters/http/http-public-content-gateway.ts @@ -141,6 +141,7 @@ export function createHttpPublicContentGateway( const wantsKnowledge = !filters.kind || filters.kind !== "QUESTION"; const query = { ...(filters.topic ? { topic: filters.topic } : {}), + ...(filters.variant ? { variant: filters.variant } : {}), ...(filters.project ? { project: filters.project } : {}), }; const [knowledge, questions] = await Promise.all([ diff --git a/src/features/tech-log/adapters/static/public-query.ts b/src/features/tech-log/adapters/static/public-query.ts index 7e67a45..dbb2f29 100644 --- a/src/features/tech-log/adapters/static/public-query.ts +++ b/src/features/tech-log/adapters/static/public-query.ts @@ -15,14 +15,14 @@ import type { PublicContentQueries, PublicTopic, PublicTopicDetail, + RecordFilters, } from "../../application/ports/public-content-queries.ts"; -export type RecordFilters = { - kind?: RecordKind; - topic?: string; - project?: string; - openQuestionsOnly?: boolean; -}; +/* + 포트의 것을 그대로 쓴다. 여기 따로 적어 두었더니 포트에 필터가 하나 늘 때 이쪽만 모르는 + 상태가 됐고, `satisfies` 는 메서드 매개변수가 bivariant 라 그것을 잡지 못했다. +*/ +export type { RecordFilters }; export type SearchablePublicEntity = { contentType: RecordKind | "PROJECT" | "RELEASE"; @@ -62,6 +62,12 @@ export function listRecords(filters: RecordFilters = {}): PublicRecord[] { .toLocaleLowerCase("ko-KR"); return publicRecords + /* + 정적 자료에는 축이 없다 — 사람이 Studio 에서 거는 값이라 픽스처가 지어낼 수 없다. 축으로 + 걸러 달라는 요청은 아무것도 고르지 않는 것으로 답한다. 없는 것을 있는 척하면 이 어댑터로 + 그린 화면이 서버로 바꿨을 때 달라진다. + */ + .filter(() => !filters.variant) .filter((record) => !filters.kind || record.kind === filters.kind) .filter( (record) => diff --git a/src/features/tech-log/application/ports/public-content-queries.ts b/src/features/tech-log/application/ports/public-content-queries.ts index f9aca89..e590038 100644 --- a/src/features/tech-log/application/ports/public-content-queries.ts +++ b/src/features/tech-log/application/ports/public-content-queries.ts @@ -267,6 +267,8 @@ export type HomeFocusItem = { export type RecordFilters = { kind?: RecordKind; topic?: string; + /** 주제 안의 축. 주제 안에서만 유일하므로 `topic` 과 함께 준다. */ + variant?: string; project?: string; openQuestionsOnly?: boolean; }; diff --git a/src/features/tech-log/contracts/management/canonical-source.json b/src/features/tech-log/contracts/management/canonical-source.json index f1bbd5a..54e1939 100644 --- a/src/features/tech-log/contracts/management/canonical-source.json +++ b/src/features/tech-log/contracts/management/canonical-source.json @@ -2,7 +2,7 @@ "packageId": "@tech-log/management-contract", "version": "1.0.0", "digest": "sha256:61f8360cfb2e638c5d8c5557434b564e39cea517464c33cedcd1c5bf39a58aa8", - "sourceRevision": "a58ad30", + "sourceRevision": "b93d62a", "operationIds": [ "createCaseDraft", "getCaseForEdit", diff --git a/src/features/tech-log/contracts/public/canonical-source.json b/src/features/tech-log/contracts/public/canonical-source.json index a6a31b2..27de2ec 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:a964914040740a1223c33b5aeaf7724a8a0c78d91063bf3f1b7d7594c314a395", - "sourceRevision": "a58ad30", + "digest": "sha256:10b922715a4149f2dcf4d5925fb1d3e3e820a6d14d9e4a91d7a325027684280d", + "sourceRevision": "b93d62a", "operationIds": [ "getPublicSite", "getPublicHome", diff --git a/src/features/tech-log/contracts/public/generated.ts b/src/features/tech-log/contracts/public/generated.ts index dd048f4..0e75af9 100644 --- a/src/features/tech-log/contracts/public/generated.ts +++ b/src/features/tech-log/contracts/public/generated.ts @@ -564,8 +564,9 @@ export interface components { TopicVariantSummary: { slug: string; title: string; - /** @description 이 축이 주제 화면에서 사는 자리(`/topics/{주제}#{축}`). 축은 주제 화면 안의 한 줄이지 - * 따로 선 화면이 아니다 — 자기 화면을 갖게 되면 그때 이 값이 바뀐다. + /** @description 이 축의 공개 주소(`/topics/{주제}/{축}`). 그 축에 걸린 기록만 모아 보여 준다. + * 한동안 주제 화면 안의 앵커였는데, 주제 화면에서는 그 링크가 자기 자신을 가리켜 + * 눌러도 아무 일이 없었다. * */ path: string; summary?: string; @@ -1108,6 +1109,10 @@ export interface operations { query?: { type?: "CASE" | "REFERENCE" | "CONCEPT"; topic?: string; + /** @description 주제 안의 축 slug. 그 축에 걸린 기록만 남긴다. `topic` 과 함께 준다 — 축 slug 는 + * 주제 안에서만 유일하다. + * */ + variant?: string; project?: string; tag?: string; year?: number; @@ -1155,6 +1160,10 @@ export interface operations { query?: { status?: "OPEN" | "INVESTIGATING" | "PAUSED" | "RESOLVED"; topic?: string; + /** @description 주제 안의 축 slug. 그 축에 걸린 기록만 남긴다. `topic` 과 함께 준다 — 축 slug 는 + * 주제 안에서만 유일하다. + * */ + variant?: string; project?: string; tag?: string; sort?: "UPDATED_DESC" | "OPENED_DESC" | "RESOLVED_DESC"; 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 4f0e4d0..914884e 100644 --- a/src/features/tech-log/contracts/public/public-api.openapi.yaml +++ b/src/features/tech-log/contracts/public/public-api.openapi.yaml @@ -119,6 +119,13 @@ paths: in: query schema: type: string + - name: variant + in: query + description: | + 주제 안의 축 slug. 그 축에 걸린 기록만 남긴다. `topic` 과 함께 준다 — 축 slug 는 + 주제 안에서만 유일하다. + schema: + type: string - name: project in: query schema: @@ -200,6 +207,13 @@ paths: in: query schema: type: string + - name: variant + in: query + description: | + 주제 안의 축 slug. 그 축에 걸린 기록만 남긴다. `topic` 과 함께 준다 — 축 slug 는 + 주제 안에서만 유일하다. + schema: + type: string - name: project in: query schema: @@ -1291,8 +1305,9 @@ components: path: type: string description: | - 이 축이 주제 화면에서 사는 자리(`/topics/{주제}#{축}`). 축은 주제 화면 안의 한 줄이지 - 따로 선 화면이 아니다 — 자기 화면을 갖게 되면 그때 이 값이 바뀐다. + 이 축의 공개 주소(`/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 b2d6621..d04cd6c 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": "a58ad30", + "sourceRevision": "b93d62a", "operationIds": [ "getStudioSession", "getStudioDashboard", diff --git a/src/features/tech-log/contracts/tech-log-public-contract-contribution.ts b/src/features/tech-log/contracts/tech-log-public-contract-contribution.ts index 21e56b5..a731990 100644 --- a/src/features/tech-log/contracts/tech-log-public-contract-contribution.ts +++ b/src/features/tech-log/contracts/tech-log-public-contract-contribution.ts @@ -98,6 +98,7 @@ const HTTP_CONTRACTS = Object.freeze([ const value = input as unknown as Readonly<{ type?: string; topic?: string; + variant?: string; project?: string; page?: number; size?: number; @@ -108,6 +109,7 @@ const HTTP_CONTRACTS = Object.freeze([ const value = input as unknown as Readonly<{ status?: string; topic?: string; + variant?: string; project?: string; page?: number; size?: number; diff --git a/src/features/tech-log/contracts/tech-log-route-contract.ts b/src/features/tech-log/contracts/tech-log-route-contract.ts index 08c510b..10ae3f8 100644 --- a/src/features/tech-log/contracts/tech-log-route-contract.ts +++ b/src/features/tech-log/contracts/tech-log-route-contract.ts @@ -30,6 +30,7 @@ const TECH_LOG_ROUTE_SPECS = [ defineSpec({ routeId: "TECH_LOG_CONCEPT", path: "/concepts/:slug", layoutGroup: "PUBLIC", paramsSchema: "TechLogSlugParams", searchSchema: null, title: "개념", navigationLabel: null, navigationOrder: null }), defineSpec({ routeId: "TECH_LOG_QUESTION", path: "/questions/:slug", layoutGroup: "PUBLIC", paramsSchema: "TechLogSlugParams", searchSchema: null, title: "Open Question", navigationLabel: null, navigationOrder: null }), defineSpec({ routeId: "TECH_LOG_TOPIC", path: "/topics/:slug", layoutGroup: "PUBLIC", paramsSchema: "TechLogSlugParams", searchSchema: null, title: "Topic", navigationLabel: null, navigationOrder: null }), + defineSpec({ routeId: "TECH_LOG_TOPIC_VARIANT", path: "/topics/:slug/:variant", layoutGroup: "PUBLIC", paramsSchema: "TechLogTopicVariantParams", searchSchema: null, title: "Topic", navigationLabel: null, navigationOrder: null }), defineSpec({ routeId: "TECH_LOG_PROJECTS", path: "/projects", layoutGroup: "PUBLIC", paramsSchema: null, searchSchema: null, title: "프로젝트", navigationLabel: "프로젝트", navigationOrder: 20 }), defineSpec({ routeId: "TECH_LOG_PROJECT", path: "/projects/:slug", layoutGroup: "PUBLIC", paramsSchema: "TechLogSlugParams", searchSchema: null, title: "프로젝트", navigationLabel: null, navigationOrder: null }), defineSpec({ routeId: "TECH_LOG_PROJECT_RECORDS", path: "/projects/:slug/records", layoutGroup: "PUBLIC", paramsSchema: "TechLogSlugParams", searchSchema: null, title: "프로젝트 기록", navigationLabel: null, navigationOrder: null }), 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 06e7501..3c8a9fa 100644 --- a/src/features/tech-log/presentation/public/pages/topic-page.tsx +++ b/src/features/tech-log/presentation/public/pages/topic-page.tsx @@ -111,11 +111,7 @@ export function TopicPage() {