File tree 5 files changed +8
-5
lines changed
applications/analysis-wizard
migration-targets/components
5 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ export interface Target {
456
456
labels ?: TargetLabel [ ] ;
457
457
image ?: RulesetImage ;
458
458
ruleset : Ruleset ;
459
- provider ?: string [ ] ;
459
+ provider ?: string ;
460
460
}
461
461
462
462
export interface Metadata {
Original file line number Diff line number Diff line change @@ -93,11 +93,12 @@ export const SimpleSelectCheckbox: React.FC<ISimpleSelectBasicProps> = ({
93
93
onOpenChange = { setIsOpen }
94
94
toggle = { ( toggleref : React . Ref < MenuToggleElement > ) => (
95
95
< MenuToggle
96
+ aria-label = { toggleAriaLabel }
97
+ id = { toggleId }
96
98
ref = { toggleref }
97
99
onClick = { onToggleClick }
98
100
style = { { width : width && width + "px" } }
99
101
isExpanded = { isOpen }
100
- id = { toggleId }
101
102
>
102
103
< span className = { spacing . mrSm } > { placeholderText } </ span >
103
104
{ selectedItems . length > 0 && (
@@ -110,6 +111,7 @@ export const SimpleSelectCheckbox: React.FC<ISimpleSelectBasicProps> = ({
110
111
< SelectList >
111
112
{ selectOptions . map ( ( option , index ) => (
112
113
< SelectOption
114
+ id = { `checkbox-for-${ option . value } ` }
113
115
hasCheckbox
114
116
key = { option . value }
115
117
isFocused = { index === 0 }
Original file line number Diff line number Diff line change @@ -110,14 +110,15 @@ export const TargetCard: React.FC<TargetCardProps> = ({
110
110
111
111
return (
112
112
< Card
113
+ id = { `target-card-${ target . name . replace ( / \s / g, "-" ) } ` }
113
114
onClick = { handleCardClick }
114
115
isSelectable
115
116
isSelected = { isCardSelected }
116
117
className = "pf-v5-l-stack pf-v5-l-stack__item pf-m-fill"
117
118
>
118
119
< CardHeader
119
120
selectableActions = { {
120
- selectableActionId : "" + target . id ,
121
+ selectableActionId : "target-name- " + target . name ,
121
122
selectableActionAriaLabelledby : `${ target . name } -selectable-action-label` ,
122
123
isChecked : isCardSelected ,
123
124
} }
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ export const SetTargets: React.FC<SetTargetsProps> = ({ applications }) => {
184
184
onChange = { ( selection ) => {
185
185
setProvider ( selection as string [ ] ) ;
186
186
} }
187
- toggleId = "language -select-toggle"
187
+ toggleId = "action -select-toggle"
188
188
/>
189
189
{ values . selectedTargets . length === 0 &&
190
190
values . customRulesFiles . length === 0 &&
Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ export const CustomTargetForm: React.FC<CustomTargetFormProps> = ({
307
307
} ,
308
308
} ) ,
309
309
} ,
310
- provider : [ providerType ] || [ "Java" ] ,
310
+ provider : providerType || "Java" ,
311
311
} ;
312
312
313
313
if ( target ) {
You can’t perform that action at this time.
0 commit comments