feat: port TechLog Studio validation workflow

This commit is contained in:
DongHyeonka
2026-08-15 23:59:08 +09:00
parent 5933265975
commit 9c6906fc6f
20 changed files with 1551 additions and 35 deletions
@@ -1,9 +1,9 @@
import { useEffect, useState, type FormEvent } from "react";
import { Link } from "react-router-dom";
import type { ListDocumentsQuery } from "../../../application/ports/studio-gateway.ts";
import type { DocumentPage } from "../../../contracts/studio/contract.ts";
import { useStudio } from "../use-studio.ts";
import { GuardedStudioLink } from "./guarded-studio-link.tsx";
const kindLabel = {
CASE: "Case",
@@ -94,9 +94,9 @@ export function DocumentList() {
세션에 있는 Case, Reference, Question을 찾고 다음 작업으로 이동합니다.
</p>
</div>
<Link className="studio-primary-action" to="/studio/documents/new">
<GuardedStudioLink className="studio-primary-action" href="/studio/documents/new">
새 문서
</Link>
</GuardedStudioLink>
</header>
<section className="studio-document-tools" aria-label="작업본 검색과 필터">
<form role="search" onSubmit={submitSearch}>
@@ -174,9 +174,9 @@ export function DocumentList() {
<p className="studio-row-label">{kindLabel[item.kind]}</p>
<div className="studio-document-title">
<h2>
<Link to={`/studio/documents/${item.id}/edit`}>
<GuardedStudioLink href={`/studio/documents/${item.id}/edit`}>
{item.title || "제목 없는 작업본"}
</Link>
</GuardedStudioLink>
</h2>
<p>{item.project?.label ?? "프로젝트 미지정"}</p>
</div>
@@ -207,7 +207,9 @@ export function DocumentList() {
<section className="studio-empty-state">
<h2>조건에 맞는 작업본이 없습니다</h2>
<p>검색어 또는 필터를 바꾸거나 새 문서를 만드세요.</p>
<Link to="/studio/documents/new">새 문서 만들기</Link>
<GuardedStudioLink href="/studio/documents/new">
새 문서 만들기
</GuardedStudioLink>
</section>
)}
{page.nextCursor ? (