Skip to content

Commit d27084b

Browse files
committed
feat(trace): add zoomable timeline, resizable panels, motion inspector
- add timeline viewport zoom via wheel + drag panning + reset - upgrade layout to tree / gantt / inspector with resizable panels - animate inspector + tab switches with framer-motion - add edit diff rendering via @pierre/diffs using raw tool args - restyle trace stats into Ariadne-like pills and denser hierarchy - expose raw tool arguments in trace analytics for inspector rendering
1 parent 9d9415a commit d27084b

File tree

6 files changed

+595
-426
lines changed

6 files changed

+595
-426
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@
3232
"@tauri-apps/api": "^2.9.1",
3333
"@tauri-apps/plugin-dialog": "^2.6.0",
3434
"@tauri-apps/plugin-updater": "^2.10.1",
35+
"@use-gesture/react": "^10.3.1",
3536
"@xterm/addon-fit": "^0.11.0",
3637
"@xterm/xterm": "^6.0.0",
3738
"@xyflow/react": "^12.10.0",
3839
"cmdk": "^1.1.1",
3940
"date-fns": "^3.6.0",
41+
"framer-motion": "^12.38.0",
4042
"highlight.js": "^11.11.1",
4143
"i18next": "^25.8.0",
4244
"i18next-browser-languagedetector": "^8.2.0",
@@ -46,6 +48,7 @@
4648
"react-dom": "^18.3.1",
4749
"react-i18next": "^16.5.4",
4850
"react-is": "^19.2.4",
51+
"react-resizable-panels": "^4.10.0",
4952
"recharts": "^3.7.0",
5053
"ws": "^8.20.0"
5154
},

pnpm-lock.yaml

Lines changed: 70 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/src/domain/trace/extractor.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,11 @@ fn extract_tool_calls(msg: &Value) -> Vec<TraceToolCall> {
673673
id,
674674
name,
675675
arguments_preview: args_preview,
676+
arguments_raw: if args_str.is_empty() {
677+
None
678+
} else {
679+
Some(args_str.to_string())
680+
},
676681
status: "running".to_string(),
677682
result_preview: None,
678683
}

src-tauri/src/domain/trace/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ pub struct TraceToolCall {
5151
pub id: String,
5252
pub name: String,
5353
pub arguments_preview: String,
54+
pub arguments_raw: Option<String>,
5455
pub status: String,
5556
pub result_preview: Option<String>,
5657
}

0 commit comments

Comments
 (0)