File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ export const para = router({
82
82
"task.due_date" ,
83
83
"task.seen" ,
84
84
"task.trial_count" ,
85
+ "task.created_at" ,
85
86
86
87
eb
87
88
. selectFrom ( "trial_data" )
Original file line number Diff line number Diff line change @@ -138,6 +138,20 @@ function Benchmarks() {
138
138
*/
139
139
}
140
140
141
+ { /* simple sort pill POC (see TODO above) */ }
142
+ < button
143
+ onClick = { ( ) => handleSort ( "created_at" ) }
144
+ className = { `${ $button . pilled } ` }
145
+ style = { {
146
+ display : "flex" ,
147
+ maxWidth : "fit-content" ,
148
+ alignItems : "center" ,
149
+ gap : "4px" ,
150
+ } }
151
+ >
152
+ < Sort /> Sort by date
153
+ </ button >
154
+
141
155
{ /* simple sort pill POC (see TODO above) */ }
142
156
< button
143
157
onClick = { ( ) => handleSort ( "first_name" ) }
Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ export type Benchmark = SelectableForTable<"benchmark">;
5
5
export type ChangeEvent = React . ChangeEvent < HTMLInputElement > ;
6
6
export type FormEvent = React . FormEvent < HTMLFormElement > ;
7
7
8
- export type SortProperty = "first_name" ;
8
+ export type SortProperty = "first_name" | "created_at" ;
9
9
export type SortDirection = "asc" | "desc" ;
You can’t perform that action at this time.
0 commit comments