+
diff --git a/src/features/tech-log/presentation/studio/components/publication-flow-classes.ts b/src/features/tech-log/presentation/studio/components/publication-flow-classes.ts
index ea58d7c..e4ed9b4 100644
--- a/src/features/tech-log/presentation/studio/components/publication-flow-classes.ts
+++ b/src/features/tech-log/presentation/studio/components/publication-flow-classes.ts
@@ -10,6 +10,7 @@ const publicationFlowClassContract = {
gateReady: "studio-publication-gate-ready",
summary: "studio-publication-summary",
changeSummary: "studio-publication-change-summary",
+ publicPath: "studio-publication-public-path",
publishAction: "studio-publication-action",
blocked: "studio-publication-blocked",
noWarnings: "studio-publication-no-warnings",
diff --git a/src/features/tech-log/presentation/studio/components/publish-screen.tsx b/src/features/tech-log/presentation/studio/components/publish-screen.tsx
index 7a93757..1c0e739 100644
--- a/src/features/tech-log/presentation/studio/components/publish-screen.tsx
+++ b/src/features/tech-log/presentation/studio/components/publish-screen.tsx
@@ -335,6 +335,16 @@ export function PublishScreen({
? `게시 버전 v${currentPublication.publishedVersion}에서 저장 버전 v${document.version}으로 반영합니다.`
: `저장 버전 v${document.version}을 처음 게시합니다.`}
+ {/*
+ 어느 주소로 나가는지. 「저장 버전 v5 를 반영합니다」만으로는 이 동작이 무엇을 바꾸는지
+ 알 수 없다 — 게시는 공개 주소 하나를 만들거나 갈아 끼우는 일이고, 작성자가 확인하고
+ 싶은 것도 그 주소다.
+ */}
+ {currentPublication?.publicPath ? (
+
+ 공개 주소 {currentPublication.publicPath}
+
+ ) : null}
{preview ? (
Preview 만료:{" "}
diff --git a/src/features/tech-log/presentation/studio/components/relation-editor.tsx b/src/features/tech-log/presentation/studio/components/relation-editor.tsx
index 698f0ac..36305d6 100644
--- a/src/features/tech-log/presentation/studio/components/relation-editor.tsx
+++ b/src/features/tech-log/presentation/studio/components/relation-editor.tsx
@@ -1,3 +1,5 @@
+import { useState } from "react";
+
import type { components } from "../../../contracts/studio/generated.ts";
import { createNewItemId } from "../../../domain/studio/local-id.ts";
import { DOCUMENT_KIND_LABELS } from "../../shared/document-kind-labels.ts";
@@ -50,7 +52,23 @@ function grouped(catalog: CatalogEntry[]) {
export function RelationEditor({ relations, catalog, evidence = false, onChange }: { relations: RelationInput[]; catalog: CatalogEntry[]; evidence?: boolean; onChange(relations: RelationInput[]): void }) {
const noun = evidence ? "근거" : "관계";
- const groups = grouped(catalog);
+ /*
+ 고를 것이 105개다. 평면 셀렉트에서 그것을 이름으로 찾으려면 목록 전체를 눈으로 훑어야 하고,
+ 종류로 묶어 두어도 한 묶음이 마흔이 넘으면 훑기는 마찬가지다 — 셀렉트는 열어 둔 채 타이핑으로
+ 걸러지지 않는다.
+
+ 그래서 거르는 칸을 위에 둔다. 적은 말이 들어간 것만 셀렉트에 남긴다. 이미 고른 대상은 걸러도
+ 남긴다 — 걸러서 사라지면 그 줄이 무엇을 가리키는지 화면에서 읽을 수 없게 된다.
+ */
+ const [filter, setFilter] = useState("");
+ const needle = filter.trim().toLowerCase();
+ const chosen = new Set(relations.map((relation) => relation.targetId).filter(Boolean));
+ const visible = needle
+ ? catalog.filter(
+ (entry) => entry.label.toLowerCase().includes(needle) || chosen.has(entry.id),
+ )
+ : catalog;
+ const groups = grouped(visible);
const taken = (index: number, id: string) =>
relations.some(
(candidate, candidateIndex) => candidateIndex !== index && candidate.targetId === id,
@@ -66,6 +84,20 @@ export function RelationEditor({ relations, catalog, evidence = false, onChange
return (
{evidence ? "근거 기록" : "관계"}
+
+ 대상 거르기
+ setFilter(event.currentTarget.value)}
+ />
+
+ {needle
+ ? `${visible.length}개가 남았습니다 (전체 ${catalog.length}개)`
+ : `고를 수 있는 대상 ${catalog.length}개`}
+
+
{relations.length === 0 ? {evidence ? "연결한 근거 기록이 없습니다." : "연결한 공개 기록이 없습니다."}
: null}
{relations.map((relation, index) => (
diff --git a/src/features/tech-log/presentation/styles/globals.css b/src/features/tech-log/presentation/styles/globals.css
index 2945515..5c6909c 100644
--- a/src/features/tech-log/presentation/styles/globals.css
+++ b/src/features/tech-log/presentation/styles/globals.css
@@ -3920,3 +3920,25 @@ textarea.studio-control { min-height: 118px; resize: vertical; line-height: 1.65
.search-group .search-page-results {
margin-top: 0;
}
+
+/* 마감 — hover 가 의도로 읽히게 한다 */
+
+/*
+ 색이 즉시 튀면 눌린 것처럼 보이고, 너무 느리면 반응이 없는 것처럼 보인다. 120ms 는 그 사이다.
+ 움직임을 줄이라고 한 사람에게는 위의 `prefers-reduced-motion` 블록이 이 시간을 0 으로 만든다.
+
+ 색만 옮긴다. 자리를 옮기는 전환은 목록에서 줄이 흔들려 보이므로 넣지 않는다.
+*/
+a,
+button,
+summary {
+ transition:
+ color 120ms ease,
+ background-color 120ms ease,
+ border-color 120ms ease;
+}
+
+/* 손잡이는 누를 수 있다는 것이 보여야 한다. */
+summary {
+ cursor: pointer;
+}
diff --git a/src/features/tech-log/presentation/styles/publication-flow.module.css b/src/features/tech-log/presentation/styles/publication-flow.module.css
index bdb6d5f..3944f77 100644
--- a/src/features/tech-log/presentation/styles/publication-flow.module.css
+++ b/src/features/tech-log/presentation/styles/publication-flow.module.css
@@ -579,3 +579,13 @@
padding: 24px 20px;
}
}
+
+/* 게시가 만드는(또는 갈아 끼우는) 공개 주소 */
+
+.publicPath code {
+ padding: 2px 7px;
+ border-radius: 4px;
+ background: var(--canvas);
+ font-family: "IBM Plex Mono", monospace;
+ font-size: 13px;
+}
diff --git a/src/features/tech-log/presentation/styles/studio-editor.css b/src/features/tech-log/presentation/styles/studio-editor.css
index b92e533..d7dec1d 100644
--- a/src/features/tech-log/presentation/styles/studio-editor.css
+++ b/src/features/tech-log/presentation/styles/studio-editor.css
@@ -281,3 +281,20 @@
.studio-app .studio-ordered-item .studio-item-actions { grid-column: 2; }
/* 순서 바꾸기는 이 행의 목적이 아니다 — 글자 크기로 그렇게 말한다. */
.studio-app .studio-ordered-item .studio-item-actions button { font-size: 12px; font-weight: 500; }
+
+/* 미리보기 보기 방식 — 좁은 칸에 갇힌 미리보기는 공개 화면이 아니다 */
+.studio-app .studio-preview-modes { display: inline-flex; gap: 2px; margin-left: 14px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; }
+.studio-app .studio-preview-modes button { min-height: 28px; padding-inline: 10px; border: 0; border-radius: 4px; background: none; color: var(--muted); font-size: 12px; }
+.studio-app .studio-preview-modes button[aria-pressed="true"] { background: var(--canvas); color: var(--ink); font-weight: 640; }
+.studio-app .studio-editor-split[data-preview="full"] { grid-template-columns: minmax(0, 1fr); }
+.studio-app .studio-editor-split[data-preview="hidden"] { grid-template-columns: minmax(0, 1fr); }
+/*
+ 모바일 폭은 실제 좁은 화면의 폭(390px)으로 잘라 본다. 줄여 그리지 않고 그 폭 그대로 두어야
+ 줄바꿈과 접힘이 배포본과 같아진다.
+*/
+.studio-app .studio-editor-preview__body[data-width="mobile"] > * { max-width: 390px; margin-inline: auto; }
+
+/* 관계 대상 거르기 — 105개를 평면 셀렉트에서 이름으로 찾을 수는 없다 */
+.studio-app .studio-relation-filter { display: grid; gap: 5px; margin-bottom: 18px; }
+.studio-app .studio-relation-filter > span { color: var(--muted); font-size: 12px; font-weight: 640; }
+.studio-app .studio-relation-filter > small { color: var(--faint); font-size: 12px; }
diff --git a/src/features/tech-log/presentation/styles/studio.css b/src/features/tech-log/presentation/styles/studio.css
index e6791e1..66ef9ab 100644
--- a/src/features/tech-log/presentation/styles/studio.css
+++ b/src/features/tech-log/presentation/styles/studio.css
@@ -193,9 +193,10 @@
}
@media (max-width: 767px) {
+ /* 좁은 화면의 좌우 여백은 20px 이다. 공개 화면과 같은 값을 쓴다 — 16px 은 글이 테두리에 붙는다. */
.studio-app .studio-header-inner,
.studio-app .studio-mobile-navigation,
- .studio-app .studio-main { width: min(100% - 32px, 1180px); }
+ .studio-app .studio-main { width: min(100% - 40px, 1180px); }
.studio-app .studio-header-inner { min-height: 68px; gap: 16px; }
.studio-app .studio-desktop-navigation { display: none; }
.studio-app .studio-menu-trigger { display: inline-flex; align-items: center; }
@@ -487,3 +488,12 @@
.studio-app .asset-detail-facts dd { margin: 0; color: var(--ink-soft); font-size: 14px; }
.studio-app .asset-detail-facts code { font-family: "IBM Plex Mono", monospace; font-size: 12px; }
.studio-app .asset-detail-usage-title { margin: 24px 0 10px; font-size: 13px; font-weight: 650; }
+
+/* 불러오는 동안의 자리. 빈 화면이 깜빡이는 대신 목록이 올 자리를 미리 잡는다. */
+.studio-app .studio-loading { color: var(--muted); font-size: 15px; }
+.studio-app .studio-loading::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 10px; background: var(--line-strong); vertical-align: middle; animation: studio-loading-sweep 1.1s ease-in-out infinite; }
+
+@keyframes studio-loading-sweep {
+ 0%, 100% { opacity: 0.25; }
+ 50% { opacity: 1; }
+}