Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
93f4198
Fix violations of the @elastic/eui/no-unnamed-radio-group ESLint rule
alexwizp Jul 31, 2025
d11b30d
Update pack_type_selectable.tsx
alexwizp Jul 31, 2025
5a365b0
Update scaling_form.tsx
alexwizp Jul 31, 2025
46cddcc
Update layer_template.tsx
alexwizp Jul 31, 2025
e64975c
[CI] Auto-commit changed files from 'node scripts/eslint_all_files --…
kibanamachine Jul 31, 2025
1a8be24
Merge branch 'main' into jul-31
alexwizp Jul 31, 2025
3ccd13a
fix jest
alexwizp Jul 31, 2025
3a6b160
Merge branch 'main' into jul-31
alexwizp Jul 31, 2025
56bf94d
fix typo
alexwizp Jul 31, 2025
624c4a0
Merge remote-tracking branch 'origin/main' into jul-31
alexwizp Jul 31, 2025
81c32a2
fix types
alexwizp Aug 1, 2025
412aaa5
Merge branch 'main' into jul-31
alexwizp Aug 1, 2025
ebb667f
Update installation_mode_selection_step.tsx
alexwizp Aug 1, 2025
8d08c50
Update set_deployment_mode.tsx
alexwizp Aug 1, 2025
b16df5b
Merge branch 'main' into jul-31
alexwizp Aug 1, 2025
d7dbc0d
fix typo
alexwizp Aug 1, 2025
0f2ef7b
Merge branch 'main' into jul-31
alexwizp Aug 1, 2025
a7f8d0e
Merge branch 'main' into jul-31
alexwizp Aug 3, 2025
87cca7c
Merge branch 'main' into jul-31
alexwizp Aug 4, 2025
885c63c
Merge branch 'main' into jul-31
alexwizp Aug 4, 2025
95a3eb4
Merge remote-tracking branch 'origin/main' into jul-31
alexwizp Aug 6, 2025
9dfbac6
Merge branch 'main' into jul-31
alexwizp Aug 7, 2025
9a9be86
Merge branch 'main' into jul-31
alexwizp Aug 11, 2025
64e29d2
Merge branch 'main' into jul-31
alexwizp Aug 11, 2025
c592def
Merge remote-tracking branch 'origin/main' into jul-31
alexwizp Aug 11, 2025
f9af868
Update x-pack/solutions/security/plugins/security_solution/public/man…
alexwizp Aug 12, 2025
22e155a
Merge branch 'main' into jul-31
alexwizp Aug 12, 2025
492973d
Merge branch 'main' into jul-31
alexwizp Aug 12, 2025
86044bf
Merge branch 'main' into jul-31
alexwizp Aug 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export const LinkEditor = ({
}
setSelectedLinkType(id as LinkType);
}}
name="linkType"
/>
</EuiFormRow>
<LinkDestination
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export const OptionsListEditorOptions = ({
setSingleSelect(newSingleSelect);
updateState({ singleSelect: newSingleSelect });
}}
name="selectionType"
/>
</EuiFormRow>
{allowExpensiveQueries && compatibleSearchTechniques.length > 1 && (
Expand All @@ -155,6 +156,7 @@ export const OptionsListEditorOptions = ({
setSearchTechnique(newSearchTechnique);
updateState({ searchTechnique: newSearchTechnique });
}}
name="searchTechnique"
/>
</EuiFormRow>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,21 @@

import React from 'react';
import { EuiFormRow, EuiRadioGroup } from '@elastic/eui';
import camelCase from 'lodash/camelCase';

import { FieldHook, getFieldValidityAndErrorMessage } from '../../hook_form_lib';

interface Props {
field: FieldHook;
euiFieldProps?: Record<string, any>;
idAria?: string;
name?: string;
[key: string]: any;
}

export const RadioGroupField = ({ field, euiFieldProps = {}, idAria, ...rest }: Props) => {
export const RadioGroupField = ({ field, euiFieldProps = {}, idAria, name, ...rest }: Props) => {
const { isInvalid, errorMessage } = getFieldValidityAndErrorMessage(field);
const radioGroupName = name || camelCase(field.label || 'optionsGroup');

return (
<EuiFormRow
Expand All @@ -37,6 +40,7 @@ export const RadioGroupField = ({ field, euiFieldProps = {}, idAria, ...rest }:
options={[]}
onChange={field.setValue}
data-test-subj="input"
name={radioGroupName}
{...euiFieldProps}
/>
</EuiFormRow>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export const ImportModeControl = ({ initialValues, updateSelection }: ImportMode
onChange={() => onChange({ createNewCopies: false })}
>
<EuiRadioGroup
name="importModeOverwrite"
options={[overwriteEnabled, overwriteDisabled]}
idSelected={overwrite ? overwriteEnabled.id : overwriteDisabled.id}
onChange={(id: string) => onChange({ overwrite: id === overwriteEnabled.id })}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ class UrlPanelContentComponent extends Component<UrlPanelContentProps, State, Wi
return (
<EuiFormRow helpText={generateLinkAsHelp}>
<EuiRadioGroup
name="exportUrlAs"
options={this.renderExportUrlAsOptions()}
idSelected={this.state.exportUrlAs}
onChange={this.handleExportUrlAs}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ export const FullTimeRangeSelector: FC<FullTimeRangeSelectorProps> = (props) =>
idSelected={frozenDataPreference}
onChange={setPreference}
compressed
name="frozenDataPreference"
/>
</EuiPanel>
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const ShrinkField: FunctionComponent<Props> = ({ phase }) => {
{isUsingShardSize === undefined ? null : (
<>
<EuiRadioGroup
name={`${phase}ShrinkMethod`}
options={[
{
id: `${phase}-configureShardCount`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export const EndpointSelection = React.memo<EndpointSelectionProps>(
<EuiSpacer size="m" />
<EuiFlexItem>
<EuiRadioGroup
name="endpointPathSelection"
options={options}
idSelected={selectedPath}
disabled={isGenerating}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const ConnectorSelector = React.memo<ConnectorSelectorProps>(
<EuiFlexGroup direction="row" alignItems="center" justifyContent="spaceBetween">
<EuiFlexItem>
<EuiRadio
name="connectorSelector"
label={connector.name}
id={connector.id}
value={connector.id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const DeploymentModeStepContent = ({
]}
idSelected={`${deploymentMode}_${radioSuffix}`}
onChange={onChangeCallback}
name={`radio group ${radioSuffix}`}
name={`deploymentMode${radioSuffix}`}
/>
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ export const AgentPolicyAdvancedOptionsContent: React.FunctionComponent<Props> =
agent_features: id === 'hostname' ? [] : [{ name: 'fqdn', enabled: true }],
});
}}
name="radio group"
name="hostNameFormat"
/>
</EuiFormRow>
</EuiDescribedFormGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ export const PackagePolicyInputStreamConfig = memo<Props>(
},
});
}}
name="dataStreamType"
/>
</EuiFormRow>
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export const OutputFormKafkaAuthentication: React.FunctionComponent<{
}
>
<EuiRadioGroup
name="kafkaConnectionType"
style={{ display: 'flex', gap: 30 }}
data-test-subj={'settingsOutputsFlyout.kafkaConnectionTypeRadioInput'}
options={kafkaConnectionTypeOptions}
Expand Down Expand Up @@ -322,6 +323,7 @@ export const OutputFormKafkaAuthentication: React.FunctionComponent<{
}
>
<EuiRadioGroup
name="kafkaSaslMechanism"
style={{ display: 'flex', gap: 30 }}
data-test-subj={'settingsOutputsFlyout.kafkaSaslInput'}
options={kafkaSaslOptions}
Expand Down Expand Up @@ -405,6 +407,7 @@ export const OutputFormKafkaAuthentication: React.FunctionComponent<{
<EuiSpacer size="m" />
<EuiFormRow fullWidth>
<EuiRadioGroup
name="kafkaAuthMethod"
style={{ display: 'flex', gap: 30 }}
data-test-subj={'settingsOutputsFlyout.kafkaAuthenticationRadioInput'}
options={kafkaAuthenticationsOptions}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export const OutputFormKafkaPartitioning: React.FunctionComponent<{
data-test-subj={'settingsOutputsFlyout.kafkaPartitioningRadioInput'}
options={kafkaPartitioningOptions}
compressed
name="kafkaPartitioningStrategy"
{...inputs.kafkaPartitionTypeInput.props}
/>
</EuiFormRow>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export const OutputFormKafkaTopics: React.FunctionComponent<{ inputs: OutputForm
data-test-subj={'editOutputFlyout.kafkaTopicsRadioInput'}
options={kafkaTopicsOptions}
compressed
name="kafkaTopics"
{...inputs.kafkaTopicsInput.props}
/>
</EuiFormRow>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ export const SSLFormSection: React.FunctionComponent<Props> = (props) => {
data-test-subj={'fleetServerHosts.clientAuthenticationRadioInput'}
options={clientAuthenticationsOptions}
compressed
name="clientAuth"
{...inputs.sslClientAuthInput.props}
/>
</EuiFormRow>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const InstallationModeSelectionStep = ({
]}
idSelected={`${mode}_${radioSuffix}`}
onChange={onChangeCallback}
name={`radio group ${radioSuffix}`}
name={`installationMode${radioSuffix}`}
/>
) : (
<React.Fragment />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export const PipelinesCsvUploader: FC<Props> = ({
options={options}
idSelected={action}
onChange={(id) => setAction(id as FieldCopyAction)}
name="defaultAction"
/>
</EuiFormRow>

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ export class LayerTemplate extends Component<RenderWizardArguments, State> {

<EuiFormRow>
<EuiRadioGroup
name="boundariesSource"
options={BOUNDARIES_OPTIONS}
idSelected={this.state.leftSource}
onChange={this._onLeftSourceChange}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ export class ScalingForm extends Component<Props, State> {
const clusteringRadio = (
<EuiRadio
id={SCALING_TYPES.CLUSTERS}
name="scalingType"
label={this._getClustersOptionLabel()}
checked={this.props.scalingType === SCALING_TYPES.CLUSTERS}
onChange={() => this._onScalingTypeSelect(SCALING_TYPES.CLUSTERS)}
Expand Down Expand Up @@ -275,13 +276,15 @@ export class ScalingForm extends Component<Props, State> {
<div>
<EuiRadio
id={SCALING_TYPES.MVT}
name="scalingType"
label={this._getMvtOptionLabel()}
checked={this.props.scalingType === SCALING_TYPES.MVT}
onChange={() => this._onScalingTypeSelect(SCALING_TYPES.MVT)}
/>
{this._renderClusteringRadio()}
<EuiRadio
id={SCALING_TYPES.LIMIT}
name="scalingType"
label={this._getLimitOptionLabel()}
checked={this.props.scalingType === SCALING_TYPES.LIMIT}
onChange={() => this._onScalingTypeSelect(SCALING_TYPES.LIMIT)}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ export function NavigationPanel({ center, settings, updateMapSetting, zoom }: Pr
options={initialLocationOptions}
idSelected={settings.initialLocation}
onChange={onInitialLocationChange}
name="initialMapLocation"
/>
</EuiFormRow>
{renderInitialLocationInputs()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export const SetViewForm = React.memo<SetViewFormProps>(({ settings, zoom, cente
`}
>
<EuiRadioGroup
name="coordinateSystem"
options={COORDINATE_SYSTEM_OPTIONS}
idSelected={coordinateSystem}
onChange={onCoordinateSystemChange}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ export function CustomSelectionTable({
)}
{singleSelection && (
<EuiRadio
name="jobSelection"
id={item[tableItemId]}
data-test-subj={`${item[tableItemId]}-radio-button`}
checked={isItemSelected(item[tableItemId])}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ export const CustomUrlEditor: FC<CustomUrlEditorProps> = ({
display="rowCompressed"
>
<EuiRadioGroup
name="linkToType"
options={getLinkToOptions()}
idSelected={type}
onChange={onTypeChange}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export const EntityConfig: FC<EntityConfigProps> = ({
}
>
<EuiRadioGroup
name="entitySortBy"
options={sortOptions}
idSelected={forceSortByName ? 'name' : config?.sort?.by}
onChange={(id) => {
Expand All @@ -132,6 +133,7 @@ export const EntityConfig: FC<EntityConfigProps> = ({
}
>
<EuiRadioGroup
name="entitySortOrder"
options={orderOptions}
idSelected={config?.sort?.order}
onChange={(id) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const PackTypeSelectableComponent = ({
title={
<EuiRadio
id={'osquery_pack_type_policy'}
name="packType"
label={i18n.translate('xpack.osquery.pack.form.policyLabel', {
defaultMessage: 'Policy',
})}
Expand All @@ -107,6 +108,7 @@ const PackTypeSelectableComponent = ({
title={
<EuiRadio
id={'osquery_pack_type_global'}
name="packType"
label={i18n.translate('xpack.osquery.pack.form.globalLabel', {
defaultMessage: 'Global',
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export const CopyModeControl = ({ initialValues, updateSelection }: CopyModeCont
onChange={(id: string) => onChange({ overwrite: id === overwriteEnabled.id })}
disabled={createNewCopies}
data-test-subj={'cts-copyModeControl-overwriteRadioGroup'}
name="overwriteOption"
/>
</EuiCheckableCard>
</EuiFormFieldset>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ export const EsqlQueryExpression: React.FC<
setRadioIdSelected(optionId);
setParam('groupBy', optionId);
}}
name="alertGroup"
/>
</EuiFormRow>
<EuiSpacer />
Expand Down
Loading
Loading