gpt-engineer-app[bot] commited on
Commit ·
c0b478a
1
Parent(s): e43d3b8
Changes
Browse files
src/routes/dashboard.index.tsx
CHANGED
|
@@ -172,12 +172,29 @@ function IncidentDetail({ incident, onRerun, onDelete }: { incident: Incident; o
|
|
| 172 |
</div>
|
| 173 |
</div>
|
| 174 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 175 |
{incident.status === "analyzing" && <AgentPipeline />}
|
| 176 |
|
| 177 |
{incident.status === "failed" && (
|
| 178 |
-
<div className="rounded-xl border border-destructive/40 bg-destructive/10 p-6">
|
| 179 |
-
<
|
| 180 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 181 |
</div>
|
| 182 |
)}
|
| 183 |
|
|
|
|
| 172 |
</div>
|
| 173 |
</div>
|
| 174 |
|
| 175 |
+
{incident.status === "pending" && (
|
| 176 |
+
<div className="rounded-xl border border-primary/40 bg-primary/5 p-6 flex items-center justify-between gap-4">
|
| 177 |
+
<div>
|
| 178 |
+
<p className="font-medium text-sm">Awaiting analysis</p>
|
| 179 |
+
<p className="text-xs text-muted-foreground mt-1">Qwen hasn't analyzed this incident yet. Kick off the multi-agent pipeline now.</p>
|
| 180 |
+
</div>
|
| 181 |
+
<Button onClick={onRerun} className="bg-primary text-primary-foreground hover:bg-primary/90 gap-1.5">
|
| 182 |
+
<Cpu className="h-3.5 w-3.5"/> Analyze now
|
| 183 |
+
</Button>
|
| 184 |
+
</div>
|
| 185 |
+
)}
|
| 186 |
+
|
| 187 |
{incident.status === "analyzing" && <AgentPipeline />}
|
| 188 |
|
| 189 |
{incident.status === "failed" && (
|
| 190 |
+
<div className="rounded-xl border border-destructive/40 bg-destructive/10 p-6 flex items-start justify-between gap-4">
|
| 191 |
+
<div>
|
| 192 |
+
<p className="font-medium text-sm text-destructive">Analysis failed</p>
|
| 193 |
+
<p className="text-xs text-muted-foreground mt-1 font-mono">{incident.error}</p>
|
| 194 |
+
</div>
|
| 195 |
+
<Button onClick={onRerun} variant="outline" size="sm" className="gap-1.5 shrink-0">
|
| 196 |
+
<RefreshCw className="h-3.5 w-3.5"/> Retry
|
| 197 |
+
</Button>
|
| 198 |
</div>
|
| 199 |
)}
|
| 200 |
|