feat(FN-2557): expand task stats tab with execution insights
- Enrich TaskTokenStatsPanel with timing extraction, workflow runtime summaries, and longest-event highlights from task logs and workflow results - Add an execution details section for mode, runtime status, step progress, retries, recovery state, and runtime links - Wire TaskDetailModal to pass the working task into the stats panel so the Stats tab renders execution context with token usage - Extend TaskDetailModal and TaskTokenStatsPanel tests (plus panel CSS) to cover the new stats sections and loading/empty/token states
This commit is contained in:
@@ -8,6 +8,25 @@
|
||||
gap: var(--space-md);
|
||||
}
|
||||
|
||||
.task-token-stats-panel h4,
|
||||
.task-token-stats-panel h5 {
|
||||
margin: 0;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.task-token-stats-panel h5 {
|
||||
font-size: calc(var(--space-sm) + var(--space-xs));
|
||||
text-transform: uppercase;
|
||||
letter-spacing: calc(var(--space-xs) / 8);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.task-token-stats-panel__section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.task-token-stats-panel__grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(calc(var(--space-2xl) * 3), 1fr));
|
||||
@@ -67,6 +86,35 @@
|
||||
font-size: calc(var(--space-sm) + var(--space-xs));
|
||||
}
|
||||
|
||||
.task-token-stats-panel__details {
|
||||
margin: 0;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(calc(var(--space-2xl) * 5), 1fr));
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.task-token-stats-panel__detail-row {
|
||||
margin: 0;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
background: color-mix(in srgb, var(--surface) 85%, transparent);
|
||||
padding: var(--space-sm) var(--space-md);
|
||||
}
|
||||
|
||||
.task-token-stats-panel__detail-row dt {
|
||||
margin: 0;
|
||||
font-size: calc(var(--space-sm) + var(--space-xs));
|
||||
text-transform: uppercase;
|
||||
letter-spacing: calc(var(--space-xs) / 8);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.task-token-stats-panel__detail-row dd {
|
||||
margin: var(--space-xs) 0 0;
|
||||
color: var(--text);
|
||||
font-size: calc(var(--space-sm) + var(--space-xs));
|
||||
}
|
||||
|
||||
.task-token-stats-panel__empty,
|
||||
.task-token-stats-panel__loading {
|
||||
border: 1px dashed var(--border);
|
||||
@@ -81,7 +129,8 @@
|
||||
padding: var(--space-sm);
|
||||
}
|
||||
|
||||
.task-token-stats-panel__timestamps {
|
||||
.task-token-stats-panel__timestamps,
|
||||
.task-token-stats-panel__details {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user