feat: 주제의 논지와 축을 Studio 에서 쓸 수 있게 한다
「주제·프로젝트」 화면은 주제를 만들고 지울 수만 있었다. 이름과 slug 말고는 쓸 자리가 없어, 주제가 답하는 질문(논지)도 축의 이름도 어디에도 적을 수 없었다 — 공개 주제 화면이 그 둘을 읽는데 쓸 곳이 없으니 늘 비어 있었다. 주제 편집 화면을 프로젝트 편집기와 같은 자리·같은 클래스로 둔다. 축(variant)은 주제 안의 접근/구조 하나다. 인증 경계라면 SPA·BFF·Mediator 가 각각 하나고, 각자 만들어 보고 무엇을 알게 됐는지가 다르다. 비교표가 읽는 것은 요약이 아니라 그 결론이라, 두 칸을 따로 둔다 — 기록의 요약 첫 줄을 잘라 쓰면 안 되는 자리다. 프로젝트에도 논지 칸을 둔다. 목적은 시작할 때 쓰는 글이고 논지는 끝나고 쓰는 글이다. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011nAjrqNHGPNngN4aUbcyvJ
This commit is contained in:
co-authored by
Claude Opus 5
parent
15e6ea8f15
commit
3616502463
@@ -15,6 +15,7 @@ import type {
|
||||
ReleaseIndexPage,
|
||||
ReleaseUpdateRequest,
|
||||
TopicEdit,
|
||||
TopicVariantEdit,
|
||||
} from "../../contracts/management/contract.ts";
|
||||
import type {
|
||||
DeletableDocumentKind,
|
||||
@@ -77,6 +78,15 @@ export function createHttpManagementGateway(
|
||||
listTopics: () => run<TopicEdit[]>("listStudioTopics", {}),
|
||||
createTopic: (input: TopicEdit) => run<TopicEdit>("createTopic", input),
|
||||
updateTopic: (id: string, body: TopicEdit) => run<TopicEdit>("updateTopic", { id, body }),
|
||||
listTopicVariants: (topicId: string) =>
|
||||
run<TopicVariantEdit[]>("listTopicVariants", { id: topicId }),
|
||||
createTopicVariant: (topicId: string, body: TopicVariantEdit) =>
|
||||
run<TopicVariantEdit>("createTopicVariant", { id: topicId, body }),
|
||||
updateTopicVariant: (topicId: string, variantId: string, body: TopicVariantEdit) =>
|
||||
run<TopicVariantEdit>("updateTopicVariant", { id: topicId, variantId, body }),
|
||||
deleteTopicVariant: async (topicId: string, variantId: string, expectedVersion: number) => {
|
||||
await run<void>("deleteTopicVariant", { id: topicId, variantId, expectedVersion });
|
||||
},
|
||||
deleteTopic: async (id: string, expectedVersion: number) => {
|
||||
await run<void>("deleteTopic", { id, expectedVersion });
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user