@@ -5,7 +5,7 @@ cl import from ..ui.json_viewer { JsonViewer }
55cl import from ...store .mcp_store { useMcpStore }
66
77def HistoryEntry (props : Any) -> JsxElement {
8- ` entry = props.entry;
8+ hist_entry = props.entry;
99
1010 has expanded : bool = False ;
1111
@@ -21,21 +21,21 @@ def HistoryEntry(props: Any) -> JsxElement {
2121 " pending" : " border-warning/10 hover:border-warning/20"
2222 };
2323
24- entryStatus = ` entry .status if ` entry else " pending" ;
24+ entryStatus = hist_entry .status if hist_entry else " pending" ;
2525 entryIcon = statusIcon.success if entryStatus == " success" else (statusIcon.error if entryStatus == " error" else statusIcon.pending);
2626 entryBgCls = statusBg.success if entryStatus == " success" else (statusBg.error if entryStatus == " error" else statusBg.pending);
2727 entryStatusCls = " text-success" if entryStatus == " success" else (" text-destructive" if entryStatus == " error" else " text-warning" );
28- entryTimestamp = ` entry .timestamp or " " ;
29- entryServerName = ` entry .serverName or " " ;
30- entryDuration = ` entry .durationMs;
28+ entryTimestamp = hist_entry .timestamp or " " ;
29+ entryServerName = hist_entry .serverName or " " ;
30+ entryDuration = hist_entry .durationMs;
3131
3232 return <div className = { f " border rounded-lg overflow-hidden text-xs transition-colors { entryBgCls} " } >
3333 <button
3434 className = " w-full flex items-center gap-2 px-3 py-2 bg-card/30 hover:bg-card/60 transition-colors text-left cursor-pointer"
3535 onClick = { lambda -> None { expanded = not expanded; }}
3636 >
3737 { entryIcon}
38- <span className = " flex-1 font-mono text-foreground/80 truncate" >{ ` entry .method} </span >
38+ <span className = " flex-1 font-mono text-foreground/80 truncate" >{ hist_entry .method} </span >
3939 { entryDuration and <span className = " flex items-center gap-0.5 text-muted-foreground/60" ><Clock size = { 9 } />{ entryDuration} ms </span >}
4040 { <ChevronDown size = { 11 } className = " text-muted-foreground/40 flex-shrink-0" /> if expanded else <ChevronRight size = { 11 } className = " text-muted-foreground/40 flex-shrink-0" />}
4141 </button >
@@ -48,15 +48,15 @@ def HistoryEntry(props: Any) -> JsxElement {
4848
4949 <div >
5050 <p className = " text-muted-foreground mb-1 font-medium text-xs" >Request </p >
51- <JsonViewer data = { ` entry .request} maxHeight = " 150px" />
51+ <JsonViewer data = { hist_entry .request} maxHeight = " 150px" />
5252 </div >
5353
54- { ` entry .response and <div >
54+ { hist_entry .response and <div >
5555 <p className = { f " mb-1 font-medium text-xs { entryStatusCls} " } >Response </p >
56- <JsonViewer data = { ` entry .response} maxHeight = " 200px" />
56+ <JsonViewer data = { hist_entry .response} maxHeight = " 200px" />
5757 </div >}
5858
59- { ` entry .status == " pending" and <p className = " text-warning text-xs italic" >Waiting for response... </p >}
59+ { hist_entry .status == " pending" and <p className = " text-warning text-xs italic" >Waiting for response... </p >}
6060 </div >}
6161 </div >;
6262}
@@ -107,8 +107,8 @@ def:pub HistoryPanel(props: Any) -> JsxElement {
107107 <p className = " text-xs font-medium text-muted-foreground/60" >No logs yet </p >
108108 <p className = " text-xs text-muted-foreground/40" >Requests will appear here </p >
109109 </div >}
110- { len (filtered) > 0 and filtered.map(lambda (`entry : Any) -> Any {
111- return <HistoryEntry key = { ` entry .id} entry = { ` entry } />;
110+ { len (filtered) > 0 and filtered.map(lambda (hist_entry : Any) -> Any {
111+ return <HistoryEntry key = { hist_entry .id} entry = { hist_entry } />;
112112 })}
113113 </div >
114114 </div >;
0 commit comments