Skip to content

Commit 16ecc87

Browse files
Copilotdanmarshall
andcommitted
Use Vega formula transform to add phase field instead of nesting data
Co-authored-by: danmarshall <11507384+danmarshall@users.noreply.github.com>
1 parent 7e94893 commit 16ecc87

1 file changed

Lines changed: 134 additions & 135 deletions

File tree

packages/web-deploy/json/agentic-task-log.idoc.json

Lines changed: 134 additions & 135 deletions
Original file line numberDiff line numberDiff line change
@@ -62,34 +62,36 @@
6262
"type": "inline",
6363
"content": [
6464
{
65-
"phase": "⚙️ Execution Phase 1: Data Loading & Validation",
66-
"logs": [
67-
{
68-
"timestamp": "2024-11-19 10:15:23",
69-
"level": "info",
70-
"message": "Starting data analysis task..."
71-
},
72-
{
73-
"timestamp": "2024-11-19 10:15:24",
74-
"level": "info",
75-
"message": "Loading dataset: sales_q4_2024.csv"
76-
},
77-
{
78-
"timestamp": "2024-11-19 10:15:26",
79-
"level": "success",
80-
"message": "Dataset loaded successfully (15,234 rows, 12 columns)"
81-
},
82-
{
83-
"timestamp": "2024-11-19 10:15:27",
84-
"level": "info",
85-
"message": "Performing data validation and cleaning..."
86-
},
87-
{
88-
"timestamp": "2024-11-19 10:15:29",
89-
"level": "success",
90-
"message": "Data validation complete. No missing values detected."
91-
}
92-
]
65+
"timestamp": "2024-11-19 10:15:23",
66+
"level": "info",
67+
"message": "Starting data analysis task..."
68+
},
69+
{
70+
"timestamp": "2024-11-19 10:15:24",
71+
"level": "info",
72+
"message": "Loading dataset: sales_q4_2024.csv"
73+
},
74+
{
75+
"timestamp": "2024-11-19 10:15:26",
76+
"level": "success",
77+
"message": "Dataset loaded successfully (15,234 rows, 12 columns)"
78+
},
79+
{
80+
"timestamp": "2024-11-19 10:15:27",
81+
"level": "info",
82+
"message": "Performing data validation and cleaning..."
83+
},
84+
{
85+
"timestamp": "2024-11-19 10:15:29",
86+
"level": "success",
87+
"message": "Data validation complete. No missing values detected."
88+
}
89+
],
90+
"dataFrameTransformations": [
91+
{
92+
"type": "formula",
93+
"as": "phase",
94+
"expr": "'⚙️ Execution Phase 1: Data Loading & Validation'"
9395
}
9496
]
9597
},
@@ -114,44 +116,46 @@
114116
"type": "inline",
115117
"content": [
116118
{
117-
"phase": "⚙️ Execution Phase 2: Analysis & Visualization",
118-
"logs": [
119-
{
120-
"timestamp": "2024-11-19 10:16:05",
121-
"level": "info",
122-
"message": "Computing aggregate statistics..."
123-
},
124-
{
125-
"timestamp": "2024-11-19 10:16:07",
126-
"level": "info",
127-
"message": "Grouping data by region: North, South, East, West"
128-
},
129-
{
130-
"timestamp": "2024-11-19 10:16:09",
131-
"level": "success",
132-
"message": "Regional analysis complete"
133-
},
134-
{
135-
"timestamp": "2024-11-19 10:16:10",
136-
"level": "info",
137-
"message": "Generating revenue trends by month..."
138-
},
139-
{
140-
"timestamp": "2024-11-19 10:16:13",
141-
"level": "success",
142-
"message": "Trend analysis complete"
143-
},
144-
{
145-
"timestamp": "2024-11-19 10:16:14",
146-
"level": "info",
147-
"message": "Creating visualizations..."
148-
},
149-
{
150-
"timestamp": "2024-11-19 10:16:18",
151-
"level": "success",
152-
"message": "Generated 3 charts: revenue_by_region.png, monthly_trends.png, top_products.png"
153-
}
154-
]
119+
"timestamp": "2024-11-19 10:16:05",
120+
"level": "info",
121+
"message": "Computing aggregate statistics..."
122+
},
123+
{
124+
"timestamp": "2024-11-19 10:16:07",
125+
"level": "info",
126+
"message": "Grouping data by region: North, South, East, West"
127+
},
128+
{
129+
"timestamp": "2024-11-19 10:16:09",
130+
"level": "success",
131+
"message": "Regional analysis complete"
132+
},
133+
{
134+
"timestamp": "2024-11-19 10:16:10",
135+
"level": "info",
136+
"message": "Generating revenue trends by month..."
137+
},
138+
{
139+
"timestamp": "2024-11-19 10:16:13",
140+
"level": "success",
141+
"message": "Trend analysis complete"
142+
},
143+
{
144+
"timestamp": "2024-11-19 10:16:14",
145+
"level": "info",
146+
"message": "Creating visualizations..."
147+
},
148+
{
149+
"timestamp": "2024-11-19 10:16:18",
150+
"level": "success",
151+
"message": "Generated 3 charts: revenue_by_region.png, monthly_trends.png, top_products.png"
152+
}
153+
],
154+
"dataFrameTransformations": [
155+
{
156+
"type": "formula",
157+
"as": "phase",
158+
"expr": "'⚙️ Execution Phase 2: Analysis & Visualization'"
155159
}
156160
]
157161
},
@@ -176,39 +180,41 @@
176180
"type": "inline",
177181
"content": [
178182
{
179-
"phase": "⚙️ Execution Phase 3: Report Generation",
180-
"logs": [
181-
{
182-
"timestamp": "2024-11-19 10:17:30",
183-
"level": "info",
184-
"message": "Initiating report generation..."
185-
},
186-
{
187-
"timestamp": "2024-11-19 10:17:31",
188-
"level": "info",
189-
"message": "Compiling data summaries and insights..."
190-
},
191-
{
192-
"timestamp": "2024-11-19 10:17:33",
193-
"level": "info",
194-
"message": "Embedding visualizations into report template..."
195-
},
196-
{
197-
"timestamp": "2024-11-19 10:17:38",
198-
"level": "info",
199-
"message": "Rendering report to PDF format..."
200-
},
201-
{
202-
"timestamp": "2024-11-19 10:17:42",
203-
"level": "success",
204-
"message": "Report generated successfully: Q4_Sales_Report_2024.pdf (2.4 MB)"
205-
},
206-
{
207-
"timestamp": "2024-11-19 10:17:43",
208-
"level": "success",
209-
"message": "Task completed in 4 minutes 20 seconds"
210-
}
211-
]
183+
"timestamp": "2024-11-19 10:17:30",
184+
"level": "info",
185+
"message": "Initiating report generation..."
186+
},
187+
{
188+
"timestamp": "2024-11-19 10:17:31",
189+
"level": "info",
190+
"message": "Compiling data summaries and insights..."
191+
},
192+
{
193+
"timestamp": "2024-11-19 10:17:33",
194+
"level": "info",
195+
"message": "Embedding visualizations into report template..."
196+
},
197+
{
198+
"timestamp": "2024-11-19 10:17:38",
199+
"level": "info",
200+
"message": "Rendering report to PDF format..."
201+
},
202+
{
203+
"timestamp": "2024-11-19 10:17:42",
204+
"level": "success",
205+
"message": "Report generated successfully: Q4_Sales_Report_2024.pdf (2.4 MB)"
206+
},
207+
{
208+
"timestamp": "2024-11-19 10:17:43",
209+
"level": "success",
210+
"message": "Task completed in 4 minutes 20 seconds"
211+
}
212+
],
213+
"dataFrameTransformations": [
214+
{
215+
"type": "formula",
216+
"as": "phase",
217+
"expr": "'⚙️ Execution Phase 3: Report Generation'"
212218
}
213219
]
214220
},
@@ -403,51 +409,44 @@
403409
"setTemplate": "executionLog",
404410
"template": {
405411
"div": {
406-
"$bind": ".",
412+
"class": "execution-log",
407413
"$children": [
414+
{
415+
"h3": {
416+
"$children": [
417+
"{{0.phase}}"
418+
]
419+
}
420+
},
408421
{
409422
"div": {
410-
"class": "execution-log",
423+
"$bind": ".",
411424
"$children": [
412-
{
413-
"h3": {
414-
"$children": [
415-
"{{phase}}"
416-
]
417-
}
418-
},
419425
{
420426
"div": {
421-
"$bind": "logs",
427+
"class": "log-entry",
422428
"$children": [
423429
{
424-
"div": {
425-
"class": "log-entry",
430+
"span": {
431+
"class": "log-timestamp",
432+
"$children": [
433+
"[{{timestamp}}]"
434+
]
435+
}
436+
},
437+
{
438+
"span": {
439+
"class": "log-level-{{level}}",
426440
"$children": [
427-
{
428-
"span": {
429-
"class": "log-timestamp",
430-
"$children": [
431-
"[{{timestamp}}]"
432-
]
433-
}
434-
},
435-
{
436-
"span": {
437-
"class": "log-level-{{level}}",
438-
"$children": [
439-
" {{level}}: "
440-
]
441-
}
442-
},
443-
{
444-
"span": {
445-
"class": "log-message",
446-
"$children": [
447-
"{{message}}"
448-
]
449-
}
450-
}
441+
" {{level}}: "
442+
]
443+
}
444+
},
445+
{
446+
"span": {
447+
"class": "log-message",
448+
"$children": [
449+
"{{message}}"
451450
]
452451
}
453452
}

0 commit comments

Comments
 (0)