feat: 增加失败历史详情渲染功能,展示失败反馈信息

This commit is contained in:
catlog22
2026-01-21 18:32:52 +08:00
parent a7c8ea04f1
commit 82b8fcc608
2 changed files with 142 additions and 2 deletions

View File

@@ -331,6 +331,79 @@
word-break: break-word;
}
/* Failure History Detail */
.failure-history-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.failure-history-item {
padding: 0.75rem;
background: hsl(var(--destructive) / 0.06);
border: 1px solid hsl(var(--destructive) / 0.15);
border-radius: 0.5rem;
}
.failure-history-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.5rem;
color: hsl(var(--destructive));
}
.failure-history-count {
font-size: 0.875rem;
font-weight: 500;
}
.failure-history-timestamp {
margin-left: auto;
}
.failure-history-content {
display: flex;
flex-direction: column;
gap: 0.375rem;
padding-left: 0.5rem;
}
.failure-history-task,
.failure-history-error {
display: flex;
align-items: center;
gap: 0.375rem;
}
.failure-history-message pre {
margin: 0;
white-space: pre-wrap;
}
.failure-history-stacktrace {
margin-top: 0.375rem;
}
.failure-history-stacktrace summary {
margin-bottom: 0.25rem;
}
.failure-history-stacktrace pre {
margin: 0;
background: hsl(var(--background));
padding: 0.5rem;
border-radius: 0.25rem;
border: 1px solid hsl(var(--border));
}
.detail-label-sm {
font-size: 0.75rem;
font-weight: 500;
color: hsl(var(--muted-foreground));
min-width: 60px;
}
/* Priority Badges */
.issue-priority {
display: inline-flex;