File tree Expand file tree Collapse file tree 6 files changed +17
-7
lines changed Expand file tree Collapse file tree 6 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ async def get_diff_table(
122
122
"metric_key" : metric_key ,
123
123
"curr_python_version_str" : f"{ selected_commit .python_major } .{ selected_commit .python_minor } .{ selected_commit .python_patch } " ,
124
124
"curr_result_id" : result .id ,
125
+ "has_flamegraph" : result .flamegraph_html is not None ,
125
126
}
126
127
127
128
# Try to find previous commit's data for comparison
Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ class DiffTableRow(BaseModel):
140
140
prev_python_version_str : Optional [str ] = None
141
141
curr_python_version_str : str
142
142
curr_result_id : str
143
+ has_flamegraph : bool = False
143
144
144
145
145
146
class PythonVersionFilterOption (BaseModel ):
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ services:
42
42
image : node:20-alpine
43
43
working_dir : /app
44
44
environment :
45
- NEXT_PUBLIC_API_BASE : http://localhost:8000
45
+ NEXT_PUBLIC_API_BASE : http://localhost:8000/api
46
46
ports :
47
47
- " 9002:9002"
48
48
depends_on :
Original file line number Diff line number Diff line change @@ -98,11 +98,16 @@ function EnvironmentCard({
98
98
) }
99
99
</ div >
100
100
</ div >
101
- < div className = "flex items-center gap-2" >
102
- < Badge variant = "secondary" >
103
- { environment . commit_count } commits
104
- </ Badge >
105
- < Badge variant = "outline" > { environment . run_count } runs</ Badge >
101
+ < div className = "flex flex-col items-end gap-2" >
102
+ < div className = "text-xs text-muted-foreground font-mono" >
103
+ Identifier: { environment . id }
104
+ </ div >
105
+ < div className = "flex items-center gap-2" >
106
+ < Badge variant = "secondary" >
107
+ { environment . commit_count } commits
108
+ </ Badge >
109
+ < Badge variant = "outline" > { environment . run_count } runs</ Badge >
110
+ </ div >
106
111
</ div >
107
112
</ div >
108
113
</ CardHeader >
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ interface EnhancedDiffTableRow {
74
74
75
75
// Result ID for flamegraph
76
76
curr_result_id ?: string ;
77
+ has_flamegraph ?: boolean ;
77
78
}
78
79
import CommitTooltipContent from '@/components/diff/CommitTooltipContent' ;
79
80
@@ -348,6 +349,7 @@ function DiffTableContent() {
348
349
curr_python_version_str : baseRow . curr_python_version_str ,
349
350
prev_python_version_str : baseRow . prev_python_version_str ,
350
351
curr_result_id : baseRow . curr_result_id ,
352
+ has_flamegraph : baseRow . has_flamegraph ,
351
353
352
354
// High watermark data
353
355
high_watermark_curr : hwRow ?. curr_metric_value || 0 ,
@@ -1177,7 +1179,7 @@ function DiffTableContent() {
1177
1179
{ row . total_allocated_curr . toLocaleString ( ) }
1178
1180
</ TableCell >
1179
1181
< TableCell className = "text-center" >
1180
- { row . curr_result_id ? (
1182
+ { row . curr_result_id && row . has_flamegraph ? (
1181
1183
< Button
1182
1184
variant = "outline"
1183
1185
size = "sm"
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ export type DiffTableRow = {
67
67
prev_python_version_str ?: string ;
68
68
curr_python_version_str : string ;
69
69
curr_result_id : string ;
70
+ has_flamegraph ?: boolean ;
70
71
} ;
71
72
72
73
export type AuthToken = {
You can’t perform that action at this time.
0 commit comments