fix: 관계 요약이 화면까지 닿게 한다
라벨은 고쳤는데 요약이 여전히 비어 있었다. 값이 경계 세 곳을 지나며 사라진다: 평탄화가 담고(고침), 렌더 모델로 바꿀 때 버리고, 화면 목록으로 넘길 때 또 버렸다. 렌더 모델 계약(ResolvedRelation)에 담을 자리 자체가 없었고 additionalProperties: false 라 실을 수도 없었다. 계약에 summary 를 더하고(required 아님 — 이미 나가 있는 응답을 깨지 않는다) 세 경계를 모두 잇는다. Studio 미리보기도 같은 렌더 모델을 쓰므로 그쪽에서도 같은 요약이 보인다. 가드는 요약이 화면에 그려지는 것과, 그것이 링크 이름에는 들어가지 않는 것을 함께 본다 — 이름에 들어가면 관계 목록을 훑을 때 링크 하나가 문단이 된다. 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
642afa878c
commit
a3ed23e073
@@ -41,6 +41,8 @@ export function publicRenderModelBase(
|
||||
title: relation.title,
|
||||
publicPath: relation.path,
|
||||
reason: relation.reason,
|
||||
/* 계약이 관계마다 주는 요약. 여기서 버리면 목록에 제목만 남는다. */
|
||||
summary: relation.summary,
|
||||
order: index + 1,
|
||||
})),
|
||||
renderContext: {
|
||||
|
||||
@@ -121,6 +121,7 @@ function publicRelations(
|
||||
reason: relation.reason,
|
||||
title: relation.title,
|
||||
path: relation.publicPath,
|
||||
summary: relation.summary,
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user