@@ -26,7 +26,7 @@ import { Status } from "@/src/types/shared/statuses";
26
26
import { postProcessCurrentWeakSupervisionRun } from "@/src/util/components/projects/projectId/heuristics/heuristics-helper" ;
27
27
import { AttributeVisibility } from "@/src/types/components/projects/projectId/settings/data-schema" ;
28
28
import { ChevronDownIcon } from "@heroicons/react/20/solid" ;
29
- import Dropdown2 from "@/submodules/react-components/components/Dropdown2 " ;
29
+ import KernDropdown from "@/submodules/react-components/components/KernDropdown " ;
30
30
import { checkActiveGroups , prefillActiveValues } from "@/src/util/components/projects/projectId/data-browser/prefill-values-helper" ;
31
31
import { getWeakSupervisionRun } from "@/src/services/base/heuristic" ;
32
32
import { getRecordsByStaticSlice , searchRecordsExtended } from "@/src/services/base/data-browser" ;
@@ -625,19 +625,19 @@ export default function SearchGroups() {
625
625
< div className = "flex-grow mr-2.5 flex flex-col mt-2 " >
626
626
< div className = "flex-grow flex flex-row flex-wrap gap-1" >
627
627
< div style = { { width : groupItem . operator != '' ? '49%' : '100%' } } >
628
- < Dropdown2 options = { attributesSortOrder } buttonName = { groupItem . name } backgroundColors = { backgroundColors }
628
+ < KernDropdown options = { attributesSortOrder } buttonName = { groupItem . name } backgroundColors = { backgroundColors }
629
629
selectedOption = { ( option : any ) => selectValueDropdown ( option . name , index , 'name' , group . key ) } fontClass = "font-dmMono" buttonClasses = "text-xs" />
630
630
</ div >
631
631
< div style = { { width : '49%' } } >
632
632
{ groupItem . operator != '' &&
633
- < Dropdown2 options = { operatorsDropdown } buttonName = { groupItem . operator } tooltipsArray = { tooltipsArray } tooltipArrayPlacement = "right" buttonClasses = "text-xs"
633
+ < KernDropdown options = { operatorsDropdown } buttonName = { groupItem . operator } tooltipsArray = { tooltipsArray } tooltipArrayPlacement = "right" buttonClasses = "text-xs"
634
634
selectedOption = { ( option : any ) => selectValueDropdown ( option . value , index , 'operator' , group . key ) } fontClass = "font-dmMono" />
635
635
}
636
636
</ div >
637
637
</ div >
638
638
{ uniqueValuesDict [ groupItem [ 'name' ] ] && groupItem [ 'operator' ] != '' && groupItem [ 'operator' ] != 'BETWEEN' && groupItem [ 'operator' ] != 'IN' && groupItem [ 'operator' ] != 'IN WC' ? (
639
639
< div className = "my-2" >
640
- < Dropdown2 options = { uniqueValuesDict [ groupItem [ 'name' ] ] } buttonName = { groupItem [ 'searchValue' ] ? groupItem [ 'searchValue' ] : 'Select value' }
640
+ < KernDropdown options = { uniqueValuesDict [ groupItem [ 'name' ] ] } buttonName = { groupItem [ 'searchValue' ] ? groupItem [ 'searchValue' ] : 'Select value' }
641
641
selectedOption = { ( option : any ) => selectValueDropdown ( option , index , 'searchValue' , group . key ) } fontClass = "font-dmMono" />
642
642
</ div >
643
643
) : (
@@ -693,7 +693,7 @@ export default function SearchGroups() {
693
693
{ fullSearchStore [ group . key ] && < div className = "flex-grow flex flex-col" >
694
694
< div > Manually labeled</ div >
695
695
{ fullSearchStore [ group . key ] . groupElements [ 'manualLabels' ] && fullSearchStore [ group . key ] . groupElements [ 'manualLabels' ] . length == 0 ? ( < ButtonLabelsDisabled /> ) : (
696
- < Dropdown2 options = { fullSearchStore [ group . key ] . groupElements [ 'manualLabels' ] ?? [ ] } buttonName = { manualLabels . length == 0 ? 'None selected' : manualLabels . join ( ', ' ) } hasCheckboxesThreeStates = { true } keepDrownOpen = { true }
696
+ < KernDropdown options = { fullSearchStore [ group . key ] . groupElements [ 'manualLabels' ] ?? [ ] } buttonName = { manualLabels . length == 0 ? 'None selected' : manualLabels . join ( ', ' ) } hasCheckboxesThreeStates = { true } keepDrownOpen = { true }
697
697
dropdownWidth = "w-80" selectedOption = { ( option : any ) => {
698
698
const labels = [ ...manualLabels , option . name ]
699
699
setManualLabels ( labels ) ;
@@ -703,7 +703,7 @@ export default function SearchGroups() {
703
703
704
704
< div className = "mt-2" > Weakly supervised</ div >
705
705
{ fullSearchStore [ group . key ] . groupElements [ 'weakSupervisionLabels' ] && fullSearchStore [ group . key ] . groupElements [ 'weakSupervisionLabels' ] . length == 0 ? ( < ButtonLabelsDisabled /> ) : (
706
- < Dropdown2 options = { fullSearchStore [ group . key ] . groupElements [ 'weakSupervisionLabels' ] ?? [ ] } buttonName = { weakSupervisionLabels . length == 0 ? 'None selected' : weakSupervisionLabels . join ( ', ' ) } hasCheckboxesThreeStates = { true }
706
+ < KernDropdown options = { fullSearchStore [ group . key ] . groupElements [ 'weakSupervisionLabels' ] ?? [ ] } buttonName = { weakSupervisionLabels . length == 0 ? 'None selected' : weakSupervisionLabels . join ( ', ' ) } hasCheckboxesThreeStates = { true }
707
707
dropdownWidth = "w-80" selectedOption = { ( option : any ) => {
708
708
const labels = [ ...weakSupervisionLabels , option . name ]
709
709
setWeakSupervisionLabels ( labels ) ;
@@ -731,7 +731,7 @@ export default function SearchGroups() {
731
731
732
732
< div className = "mt-2" > Model callback</ div >
733
733
{ fullSearchStore [ group . key ] . groupElements [ 'modelCallbackLabels' ] && fullSearchStore [ group . key ] . groupElements [ 'modelCallbackLabels' ] . length == 0 ? ( < ButtonLabelsDisabled /> ) : (
734
- < Dropdown2 options = { fullSearchStore [ group . key ] . groupElements [ 'modelCallbackLabels' ] ?? [ ] } buttonName = { modelCallBacksLabels . length == 0 ? 'None selected' : modelCallBacksLabels . join ( ', ' ) } hasCheckboxesThreeStates = { true }
734
+ < KernDropdown options = { fullSearchStore [ group . key ] . groupElements [ 'modelCallbackLabels' ] ?? [ ] } buttonName = { modelCallBacksLabels . length == 0 ? 'None selected' : modelCallBacksLabels . join ( ', ' ) } hasCheckboxesThreeStates = { true }
735
735
dropdownWidth = "w-80" selectedOption = { ( option : any ) => {
736
736
const labels = [ ...modelCallBacksLabels , option . name ]
737
737
setModelCallBacksLabels ( labels ) ;
0 commit comments