From 7acde27f2eb7572c07109f83c1c18efa581b975c Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Tue, 1 Sep 2026 19:59:42 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Studio=20=EA=B0=80=20=EB=AA=BB=20?= =?UTF-8?q?=EC=9D=BD=EC=9D=80=20=EA=B2=83=EC=9D=84=20=EC=97=86=EB=8A=94=20?= =?UTF-8?q?=EA=B2=83=EC=9C=BC=EB=A1=9C=20=EA=B7=B8=EB=A6=AC=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=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 홈 「지금 집중하는 것」 편집기는 열린 질문과 결정을 못 읽으면 빈 배열로 삼키고 「이 프로젝트에 열린 질문이 없습니다」라고 적었다. 실제로는 넷이 있었고 공개 사이트에도 나오고 있었다 — 작성자에게는 자기가 아직 쓰지 않은 것으로 보였다. 거짓말을 하느니 못 읽었다고 말한다. 작업본 인트로가 「Case, Reference, Question, Decision」이었다. 바로 아래 필터는 새 이름이라 한 화면에 두 벌이 있었다. 공개 프로젝트·프로필 문구도 같이 고친다. 관계 대상 select 를 종류별로 묶는다. 평면 목록은 문서가 늘수록 나빠지는데 25개에서 49개가 됐다 — 종류는 카탈로그가 이미 알려 주고 있었고 화면만 버리고 있었다. 이유 칸은 이제 공개 화면에 그대로 나가므로 한 줄 input 에서 여러 줄로 바꾼다. 본문에 코드·표·목록을 넣는 도구를 둔다. 주제 화면에 비교표를 두자고 정해 놓고도 그 표를 작성할 수단이 문법을 외우는 것뿐이었다. 인라인 코드 스타일이 세 컨테이너에 따로 있어 어디에도 속하지 않는 자리 — 문서 머리말의 요약 — 에서는 코드가 본문과 같은 민무늬로 나왔다. 그 칸에 이름을 준다. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_011nAjrqNHGPNngN4aUbcyvJ --- .../adapters/static/public-content.ts | 2 +- .../public/pages/profile-page.tsx | 2 +- .../public/pages/projects-page.tsx | 2 +- .../shared/public-render/prose-text.tsx | 7 +- .../studio/components/case-fields.tsx | 3 +- .../studio/components/concept-fields.tsx | 3 +- .../studio/components/document-list.tsx | 2 +- .../studio/components/home-focus-editor.tsx | 17 +++- .../studio/components/markdown-toolbar.tsx | 99 +++++++++++++++++++ .../studio/components/relation-editor.tsx | 91 ++++++++++++++++- .../tech-log/presentation/styles/globals.css | 17 ++++ .../presentation/styles/studio-editor.css | 11 +++ .../tech-log/markdown-toolbar.test.ts | 62 ++++++++++++ .../tech-log/public-index-screens.test.tsx | 2 +- 14 files changed, 308 insertions(+), 12 deletions(-) create mode 100644 src/features/tech-log/presentation/studio/components/markdown-toolbar.tsx create mode 100644 tests/features/tech-log/markdown-toolbar.test.ts diff --git a/src/features/tech-log/adapters/static/public-content.ts b/src/features/tech-log/adapters/static/public-content.ts index eda7293..270bd52 100644 --- a/src/features/tech-log/adapters/static/public-content.ts +++ b/src/features/tech-log/adapters/static/public-content.ts @@ -856,7 +856,7 @@ export const profile: Profile = { }, { title: "프로젝트 맥락으로 다시 연결합니다", - description: "Case와 Reference, Question, Decision이 따로 흩어지지 않게 실제 작업과 연결합니다.", + description: "검증 기록과 적용 기준, 열린 질문, 설계 결정이 따로 흩어지지 않게 실제 작업과 연결합니다.", }, ], currentProjectSlugs: ["backend-skeleton", "auth-lab"], diff --git a/src/features/tech-log/presentation/public/pages/profile-page.tsx b/src/features/tech-log/presentation/public/pages/profile-page.tsx index 84fdef5..70c94c4 100644 --- a/src/features/tech-log/presentation/public/pages/profile-page.tsx +++ b/src/features/tech-log/presentation/public/pages/profile-page.tsx @@ -19,7 +19,7 @@ const principles = [ { title: "프로젝트 맥락으로 다시 연결합니다", description: - "Case와 Reference, Question, Decision이 따로 흩어지지 않게 실제 작업과 연결합니다.", + "검증 기록과 적용 기준, 열린 질문, 설계 결정이 따로 흩어지지 않게 실제 작업과 연결합니다.", }, ] as const; diff --git a/src/features/tech-log/presentation/public/pages/projects-page.tsx b/src/features/tech-log/presentation/public/pages/projects-page.tsx index 705e057..37fb127 100644 --- a/src/features/tech-log/presentation/public/pages/projects-page.tsx +++ b/src/features/tech-log/presentation/public/pages/projects-page.tsx @@ -23,7 +23,7 @@ export function ProjectsPage() {

Projects

프로젝트

- Case와 Reference, Question을 실제 설계 목표와 결정의 흐름으로 묶어 + 검증 기록과 적용 기준, 열린 질문을 실제 설계 목표와 결정의 흐름으로 묶어 봅니다.

diff --git a/src/features/tech-log/presentation/shared/public-render/prose-text.tsx b/src/features/tech-log/presentation/shared/public-render/prose-text.tsx index 534e22f..d7b1b57 100644 --- a/src/features/tech-log/presentation/shared/public-render/prose-text.tsx +++ b/src/features/tech-log/presentation/shared/public-render/prose-text.tsx @@ -25,7 +25,12 @@ function renderInlineCode(text: string, keyPrefix: string): ReactNode[] { if (parts.length % 2 === 0) return [text]; return parts.map((part, index) => index % 2 === 1 ? ( - {part} + /* + 클래스를 붙인다. 인라인 코드 스타일이 `.document-body`·`.question-options`·`.code-block` + 세 곳에 따로 있었고, 그 어디에도 속하지 않는 자리 — 문서 머리말의 요약 — 에서는 코드가 + 본문과 같은 19px 민무늬로 나왔다. 이 칸은 화면 어디에나 놓이므로 자기 이름을 갖는다. + */ + {part} ) : ( {part} ), diff --git a/src/features/tech-log/presentation/studio/components/case-fields.tsx b/src/features/tech-log/presentation/studio/components/case-fields.tsx index 89dd5b2..6a01c3b 100644 --- a/src/features/tech-log/presentation/studio/components/case-fields.tsx +++ b/src/features/tech-log/presentation/studio/components/case-fields.tsx @@ -5,6 +5,7 @@ import type { Asset, AssetKind } from "../../../contracts/studio/contract.ts"; import { useStudioAssetGateway } from "../use-studio.ts"; import { AssetPicker, buildEvidenceDirective } from "./asset-picker.tsx"; import { AssetUploadDialog } from "./asset-upload-dialog.tsx"; +import { MarkdownToolbar } from "./markdown-toolbar.tsx"; import { FieldNotice, type FieldIssue } from "./field-issues.tsx"; type CaseInput = components["schemas"]["CaseInput"]; @@ -100,7 +101,7 @@ export function CaseFields({