Skip to content

Commit 22f9d6e

Browse files
authored
improvement(dashboard): improve dashboard performance, enrich charts, consolidate routes (#1662)
* improvement(dashboard): improve dashboard performance, enrich charts, consolidate routes * cleanup
1 parent 0cb6154 commit 22f9d6e

File tree

9 files changed

+1048
-707
lines changed

9 files changed

+1048
-707
lines changed

apps/sim/app/api/logs/route.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ export async function GET(request: NextRequest) {
301301

302302
// Only process trace spans and detailed cost in full mode
303303
let traceSpans = []
304+
let finalOutput: any
304305
let costSummary = (log.cost as any) || { total: 0 }
305306

306307
if (params.details === 'full' && log.executionData) {
@@ -316,6 +317,12 @@ export async function GET(request: NextRequest) {
316317
log.cost && Object.keys(log.cost as any).length > 0
317318
? (log.cost as any)
318319
: extractCostSummary(blockExecutions)
320+
321+
// Include finalOutput if present on executionData
322+
try {
323+
const fo = (log.executionData as any)?.finalOutput
324+
if (fo !== undefined) finalOutput = fo
325+
} catch {}
319326
}
320327

321328
const workflowSummary = {
@@ -346,6 +353,7 @@ export async function GET(request: NextRequest) {
346353
totalDuration: log.totalDurationMs,
347354
traceSpans,
348355
blockExecutions,
356+
finalOutput,
349357
enhanced: true,
350358
}
351359
: undefined,

apps/sim/app/api/workspaces/[id]/execution-history/[workflowId]/route.ts

Lines changed: 0 additions & 305 deletions
This file was deleted.

0 commit comments

Comments
 (0)