Avijit Ghosh commited on
Commit
7016d85
·
1 Parent(s): 59fd310

feat(evaluation): eye toggles for category visibility, grey NA pills with colored borders, Show all/Hide all

Browse files
Files changed (1) hide show
  1. app/evaluation/[id]/page.client.tsx +20 -8
app/evaluation/[id]/page.client.tsx CHANGED
@@ -207,10 +207,10 @@ export default function EvaluationDetailsPage() {
207
  </CardTitle>
208
  <div className="flex items-center gap-2">
209
  <Button size="sm" variant="outline" onClick={selectAll}>
210
- Select all
211
  </Button>
212
  <Button size="sm" variant="outline" onClick={deselectAll}>
213
- Deselect all
214
  </Button>
215
  </div>
216
  </div>
@@ -255,9 +255,15 @@ export default function EvaluationDetailsPage() {
255
  </Button>
256
  )}
257
  <span className="ml-2">
258
- <Badge variant="secondary" className="cursor-pointer">
259
- {category.name}
260
- </Badge>
 
 
 
 
 
 
261
  </span>
262
  </label>
263
  )
@@ -303,9 +309,15 @@ export default function EvaluationDetailsPage() {
303
  </Button>
304
  )}
305
  <span className="ml-2">
306
- <Badge variant="destructive" className="cursor-pointer">
307
- {category.name}
308
- </Badge>
 
 
 
 
 
 
309
  </span>
310
  </label>
311
  )
 
207
  </CardTitle>
208
  <div className="flex items-center gap-2">
209
  <Button size="sm" variant="outline" onClick={selectAll}>
210
+ Show all
211
  </Button>
212
  <Button size="sm" variant="outline" onClick={deselectAll}>
213
+ Hide all
214
  </Button>
215
  </div>
216
  </div>
 
255
  </Button>
256
  )}
257
  <span className="ml-2">
258
+ {isNA ? (
259
+ <span className="inline-flex items-center rounded-md px-2 py-0.5 text-xs font-medium bg-muted/30 text-muted-foreground border-2 border-purple-500">
260
+ {category.name}
261
+ </span>
262
+ ) : (
263
+ <Badge variant="secondary" className="cursor-pointer">
264
+ {category.name}
265
+ </Badge>
266
+ )}
267
  </span>
268
  </label>
269
  )
 
309
  </Button>
310
  )}
311
  <span className="ml-2">
312
+ {isNA ? (
313
+ <span className="inline-flex items-center rounded-md px-2 py-0.5 text-xs font-medium bg-muted/30 text-muted-foreground border-2 border-red-500">
314
+ {category.name}
315
+ </span>
316
+ ) : (
317
+ <Badge variant="destructive" className="cursor-pointer">
318
+ {category.name}
319
+ </Badge>
320
+ )}
321
  </span>
322
  </label>
323
  )