@@ -29,7 +29,7 @@ interface FilterState {
2929
3030// CVA configuration for stat badges
3131const statBadge = cva (
32- 'inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs font-normal tracking-normal ' ,
32+ 'inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs font-normal' ,
3333 {
3434 defaultVariants : {
3535 clickable : false ,
@@ -515,7 +515,7 @@ export const ClaudePrototype = () => {
515515 className = 'rounded'
516516 />
517517 </ th >
518- < th scope = 'col' className = 'px-3 py-3 text-left text-xs text-gray-500 tracking-wider ' >
518+ < th scope = 'col' className = 'px-3 py-3 text-left text-xs text-gray-500' >
519519 < div className = 'relative' >
520520 < div className = 'flex items-center gap-1' >
521521 < div className = 'relative flex-1' >
@@ -528,7 +528,26 @@ export const ClaudePrototype = () => {
528528 className = 'w-full pl-9 pr-3 py-1.5 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500'
529529 />
530530 </ div >
531- { filterControls ( filters , updateFilter ) }
531+ < div className = 'relative flex overflow-hidden' >
532+ < Badge
533+ type = 'unsent'
534+ text = 'unsent only'
535+ selected = { filters . sentFilter === 'unsent' }
536+ onClick = { ( ) => updateFilter ( 'sentFilter' , 'unsent' ) }
537+ />
538+ < Badge
539+ type = 'blank'
540+ text = 'both'
541+ selected = { filters . sentFilter === 'all' }
542+ onClick = { ( ) => updateFilter ( 'sentFilter' , 'all' ) }
543+ />
544+ < Badge
545+ type = 'sent'
546+ text = 'sent only'
547+ selected = { filters . sentFilter === 'sent' }
548+ onClick = { ( ) => updateFilter ( 'sentFilter' , 'sent' ) }
549+ />
550+ </ div >
532551 </ div >
533552 </ div >
534553 </ th >
@@ -544,49 +563,6 @@ export const ClaudePrototype = () => {
544563 </ div >
545564 )
546565}
547- function filterControls (
548- filters : FilterState ,
549- updateFilter : < K extends keyof FilterState > ( key : K , value : FilterState [ K ] ) => void ,
550- ) {
551- return (
552- < >
553- < div className = 'relative flex overflow-hidden' >
554- < Badge
555- type = 'archived'
556- text = 'show archived'
557- selected = { filters . showArchived }
558- onClick = { ( ) => updateFilter ( 'showArchived' , true ) }
559- />
560- < Badge
561- type = 'hideArchived'
562- text = 'hide archived'
563- selected = { ! filters . showArchived }
564- onClick = { ( ) => updateFilter ( 'showArchived' , false ) }
565- />
566- </ div >
567- < div className = 'relative flex overflow-hidden' >
568- < Badge
569- type = 'unsent'
570- text = 'unsent only'
571- selected = { filters . sentFilter === 'unsent' }
572- onClick = { ( ) => updateFilter ( 'sentFilter' , 'unsent' ) }
573- />
574- < Badge
575- type = 'blank'
576- text = 'both'
577- selected = { filters . sentFilter === 'all' }
578- onClick = { ( ) => updateFilter ( 'sentFilter' , 'all' ) }
579- />
580- < Badge
581- type = 'sent'
582- text = 'sent only'
583- selected = { filters . sentFilter === 'sent' }
584- onClick = { ( ) => updateFilter ( 'sentFilter' , 'sent' ) }
585- />
586- </ div >
587- </ >
588- )
589- }
590566
591567function commentRow (
592568 row : CommentTableRow ,
0 commit comments