권한·도구 결과 카드 시각 구분 강화
권한 요청과 도구 결과 transcript chip을 상태별 색상으로 분리했습니다. 미리보기 권장, 주의 필요, 검토 권장, 승인 후 계속, 후속 점검을 색과 라벨로 더 즉시 구분되게 정리했습니다. README와 DEVELOPMENT 문서를 갱신했고 dotnet build 기준 경고 0 / 오류 0을 확인했습니다.
This commit is contained in:
@@ -104,14 +104,29 @@ public partial class ChatWindow
|
||||
guidance = permissionPresentation.ActionHint;
|
||||
|
||||
if (permissionPresentation.RequiresPreview)
|
||||
chipRow.Children.Add(CreateAgentMetaChip("미리보기 권장", "\uE8A7", secondaryText, hintBg, borderColor));
|
||||
chipRow.Children.Add(CreateAgentMetaChip(
|
||||
"미리보기 권장",
|
||||
"\uE8A7",
|
||||
BrushFromHex("#1D4ED8"),
|
||||
BrushFromHex("#EFF6FF"),
|
||||
BrushFromHex("#BFDBFE")));
|
||||
|
||||
if (evt.Type == AgentEventType.PermissionRequest)
|
||||
{
|
||||
if (string.Equals(permissionPresentation.Severity, "high", StringComparison.OrdinalIgnoreCase))
|
||||
chipRow.Children.Add(CreateAgentMetaChip("주의 필요", "\uE814", secondaryText, hintBg, borderColor));
|
||||
chipRow.Children.Add(CreateAgentMetaChip(
|
||||
"주의 필요",
|
||||
"\uE814",
|
||||
BrushFromHex("#B91C1C"),
|
||||
BrushFromHex("#FEF2F2"),
|
||||
BrushFromHex("#FECACA")));
|
||||
else if (string.Equals(permissionPresentation.Severity, "medium", StringComparison.OrdinalIgnoreCase))
|
||||
chipRow.Children.Add(CreateAgentMetaChip("검토 권장", "\uE946", secondaryText, hintBg, borderColor));
|
||||
chipRow.Children.Add(CreateAgentMetaChip(
|
||||
"검토 권장",
|
||||
"\uE946",
|
||||
BrushFromHex("#A16207"),
|
||||
BrushFromHex("#FFFBEB"),
|
||||
BrushFromHex("#FDE68A")));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,12 +135,27 @@ public partial class ChatWindow
|
||||
guidance = toolResultPresentation.FollowUpHint;
|
||||
|
||||
if (toolResultPresentation.NeedsAttention)
|
||||
chipRow.Children.Add(CreateAgentMetaChip("확인 필요", "\uE814", secondaryText, hintBg, borderColor));
|
||||
chipRow.Children.Add(CreateAgentMetaChip(
|
||||
"확인 필요",
|
||||
"\uE814",
|
||||
BrushFromHex("#B91C1C"),
|
||||
BrushFromHex("#FEF2F2"),
|
||||
BrushFromHex("#FECACA")));
|
||||
|
||||
if (string.Equals(toolResultPresentation.StatusKind, "approval_required", StringComparison.OrdinalIgnoreCase))
|
||||
chipRow.Children.Add(CreateAgentMetaChip("승인 후 계속", "\uE8D7", secondaryText, hintBg, borderColor));
|
||||
chipRow.Children.Add(CreateAgentMetaChip(
|
||||
"승인 후 계속",
|
||||
"\uE8D7",
|
||||
BrushFromHex("#C2410C"),
|
||||
BrushFromHex("#FFF7ED"),
|
||||
BrushFromHex("#FED7AA")));
|
||||
else if (string.Equals(toolResultPresentation.StatusKind, "partial", StringComparison.OrdinalIgnoreCase))
|
||||
chipRow.Children.Add(CreateAgentMetaChip("후속 점검", "\uE7BA", secondaryText, hintBg, borderColor));
|
||||
chipRow.Children.Add(CreateAgentMetaChip(
|
||||
"후속 점검",
|
||||
"\uE7BA",
|
||||
BrushFromHex("#A16207"),
|
||||
BrushFromHex("#FFFBEB"),
|
||||
BrushFromHex("#FDE68A")));
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(guidance))
|
||||
|
||||
Reference in New Issue
Block a user