@@ -125,23 +125,33 @@ <h1 class="text-center mb-4">
125
125
< div class ="form-section ">
126
126
< h3 class ="mb-3 "> < i class ="bi bi-sliders "> </ i > Filter Options</ h3 >
127
127
< div class ="row ">
128
- < div class ="col-md-4 mb-3 ">
128
+ < div class ="col-md-3 mb-3 ">
129
129
< label for ="duration " class ="form-label "> Duration</ label >
130
130
< select class ="form-select " id ="duration ">
131
131
< option value ="24h "> Last 24 hours</ option >
132
132
< option value ="48h "> Last 48 hours</ option >
133
133
< option value ="7d "> Last 7 days</ option >
134
134
</ select >
135
135
</ div >
136
- < div class ="col-md-4 mb-3 ">
136
+ < div class ="col-md-3 mb-3 ">
137
137
< label for ="kind " class ="form-label "> Kind</ label >
138
138
< select class ="form-select " id ="kind ">
139
139
< option value ="kbuild "> Kernel Builds</ option >
140
140
< option value ="job "> Test Jobs</ option >
141
141
< option value ="checkout "> Checkouts</ option >
142
142
</ select >
143
143
</ div >
144
- < div class ="col-md-4 mb-3 d-flex align-items-end ">
144
+ < div class ="col-md-3 mb-3 ">
145
+ < label for ="limit " class ="form-label "> Limit</ label >
146
+ < select class ="form-select " id ="limit ">
147
+ < option value ="1000 " selected > 1,000</ option >
148
+ < option value ="10000 "> 10,000</ option >
149
+ < option value ="20000 "> 20,000</ option >
150
+ < option value ="30000 "> 30,000</ option >
151
+ < option value ="100000 "> 100,000</ option >
152
+ </ select >
153
+ </ div >
154
+ < div class ="col-md-6 mb-3 d-flex align-items-end ">
145
155
< button type ="button " class ="btn btn-generate btn-primary w-100 " id ="generateBtn ">
146
156
< i class ="bi bi-play-circle "> </ i > Generate Statistics
147
157
</ button >
@@ -303,14 +313,15 @@ <h6>Nodes with result "${result}":</h6>
303
313
function generateStatistics ( ) {
304
314
var duration = $ ( '#duration' ) . val ( ) ;
305
315
var kind = $ ( '#kind' ) . val ( ) ;
316
+ var limit = $ ( '#limit' ) . val ( ) ;
306
317
307
318
showLoading ( ) ;
308
319
309
320
// Build API URL with filters
310
321
var dateFilter = getDurationFilter ( duration ) ;
311
322
var url = apiurl + '/latest/nodes?kind=' + encodeURIComponent ( kind ) +
312
323
'&created__gt=' + encodeURIComponent ( dateFilter ) +
313
- '&limit=1000' ;
324
+ '&limit=' + encodeURIComponent ( limit ) ;
314
325
315
326
console . log ( 'Fetching statistics from:' , url ) ;
316
327
0 commit comments