fix: UX 리뷰의 출시 차단 다섯 건을 고친다
B1. 검증·미리보기 화면이 CSS 없이 배포됐다. `workflow.module.css` 를 import 하는 파일이 하나도 없었고, Vite 의 CSS Module 은 import 되어야 번들에 들어간다. 제목이 62px 가 아니라 16px 로 나왔고 미리보기의 링크 두 개가 공백 없이 붙었다. 규칙이 전부 `:global()` 이었으므로 모듈일 이유가 없다 — studio.css 로 옮겼다. B2. Asset 라이브러리에 스타일이 없고 진입 경로도 없었다. 네 클래스에 규칙이 하나도 없어 key·상태·사용 수가 공백 없이 이어 붙었다. 스무 개짜리 목록에 썸네일도 없어 무엇을 고르는지 눌러 봐야 알았다. 내비게이션에도 없어서 URL 을 직접 쳐야 닿았다 — "정리하는 화면" 에 정리하러 갈 길이 없었다. B3. 삭제에 확인이 없었다. 문서·주제·프로젝트·릴리즈·Asset 전부 한 번에 영구 삭제였고, 그 「삭제」가 행에서 시각적으로 가장 강한 요소였다(16px/600 빨강). 정작 그 행에서 해야 할 일인 「검증하기」는 13px/400 이었다. 확인 창을 하나 만들어 다섯 곳에 붙이고, 행의 우선순위를 되돌렸다. B4(일부). robots.txt 가 광고하던 sitemap 이 404 였다. 무엇이 게시됐는지는 서버만 알므로 정적 파일이 아니라 조회로 만든다(백엔드 커밋 참조). robots.txt 가 그 주소를 가리키게 했다. B5. 라우트 프리픽스 밖 URL 이 nginx 의 맨 `Not Found` 로 끝났다. 404 상태는 그대로 두고 — 크롤러에게 링크가 깨졌다고 말하는 것이 그것이다 — 본문만 앱을 주도록 `error_page 404 @not_found` 를 뒀다. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PTnWufiY9ATv57egkKKVAV
This commit is contained in:
co-authored by
Claude Opus 5
parent
28dce83398
commit
bb6eba00db
@@ -1,4 +1,5 @@
|
||||
import { useCallback, useEffect, useState, type FormEvent } from "react";
|
||||
import { DestructiveConfirmDialog } from "./destructive-confirm-dialog.tsx";
|
||||
|
||||
import type { ProjectIndexItem, TopicEdit } from "../../../contracts/management/contract.ts";
|
||||
import { managementFailureMessage } from "../../../application/ports/management-gateway-error.ts";
|
||||
@@ -40,6 +41,13 @@ export function TaxonomyManager() {
|
||||
const [loading, setLoading] = useState(true);
|
||||
const [error, setError] = useState("");
|
||||
const [pending, setPending] = useState(false);
|
||||
/*
|
||||
주제와 프로젝트는 다른 기록이 매달려 있는 자리다. 지우기 직전에 무엇이 지워지는지 이름으로
|
||||
보여 주고 한 번 묻는다 — 목록에서 두 줄 아래를 눌렀다는 것을 여기서 잡는다.
|
||||
*/
|
||||
const [pendingDelete, setPendingDelete] = useState<
|
||||
{ kind: "TOPIC"; topic: TopicEdit } | { kind: "PROJECT"; project: ProjectIndexItem } | null
|
||||
>(null);
|
||||
const [generation, setGeneration] = useState(0);
|
||||
|
||||
const [topicName, setTopicName] = useState("");
|
||||
@@ -154,6 +162,7 @@ export function TaxonomyManager() {
|
||||
try {
|
||||
await managementGateway.deleteTopic(topic.id, topic.version);
|
||||
setRequestAnnouncement(`주제 ${topic.name} 을(를) 삭제했습니다.`);
|
||||
setPendingDelete(null);
|
||||
reload();
|
||||
} catch (error) {
|
||||
setError(managementFailureMessage(error, "주제를 삭제하지 못했습니다."));
|
||||
@@ -169,6 +178,7 @@ export function TaxonomyManager() {
|
||||
try {
|
||||
await managementGateway.deleteProject(project.id, project.version);
|
||||
setRequestAnnouncement(`프로젝트 ${project.name} 을(를) 삭제했습니다.`);
|
||||
setPendingDelete(null);
|
||||
reload();
|
||||
} catch (error) {
|
||||
setError(managementFailureMessage(error, "프로젝트를 삭제하지 못했습니다."));
|
||||
@@ -310,7 +320,10 @@ export function TaxonomyManager() {
|
||||
className="studio-secondary-button studio-danger-button"
|
||||
type="button"
|
||||
disabled={pending}
|
||||
onClick={() => void removeTopic(topic)}
|
||||
onClick={() => {
|
||||
setError("");
|
||||
setPendingDelete({ kind: "TOPIC", topic });
|
||||
}}
|
||||
>
|
||||
삭제
|
||||
</button>
|
||||
@@ -387,7 +400,10 @@ export function TaxonomyManager() {
|
||||
className="studio-secondary-button studio-danger-button"
|
||||
type="button"
|
||||
disabled={pending}
|
||||
onClick={() => void removeProject(project)}
|
||||
onClick={() => {
|
||||
setError("");
|
||||
setPendingDelete({ kind: "PROJECT", project });
|
||||
}}
|
||||
>
|
||||
삭제
|
||||
</button>
|
||||
@@ -400,6 +416,28 @@ export function TaxonomyManager() {
|
||||
)}
|
||||
</>
|
||||
) : null}
|
||||
<DestructiveConfirmDialog
|
||||
open={pendingDelete !== null}
|
||||
pending={pending}
|
||||
title={pendingDelete?.kind === "PROJECT" ? "프로젝트를 삭제합니다" : "주제를 삭제합니다"}
|
||||
targetName={
|
||||
pendingDelete?.kind === "PROJECT"
|
||||
? pendingDelete.project.name
|
||||
: (pendingDelete?.topic.name ?? "")
|
||||
}
|
||||
description={
|
||||
pendingDelete?.kind === "PROJECT"
|
||||
? "이 프로젝트에 매달린 기록이 있으면 서버가 거절합니다."
|
||||
: "이 주제에 매달린 기록이 있으면 서버가 거절합니다."
|
||||
}
|
||||
error={error}
|
||||
onCancel={() => setPendingDelete(null)}
|
||||
onConfirm={() => {
|
||||
if (!pendingDelete) return;
|
||||
if (pendingDelete.kind === "PROJECT") void removeProject(pendingDelete.project);
|
||||
else void removeTopic(pendingDelete.topic);
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user