Skip to content

[EDR Workflows][Trusted Devices] Allow user to add multiple conditions in trusted devices form#268011

Open
parkiino wants to merge 28 commits into
elastic:mainfrom
parkiino:task/trusted-devices-ui-update
Open

[EDR Workflows][Trusted Devices] Allow user to add multiple conditions in trusted devices form#268011
parkiino wants to merge 28 commits into
elastic:mainfrom
parkiino:task/trusted-devices-ui-update

Conversation

@parkiino
Copy link
Copy Markdown
Contributor

@parkiino parkiino commented May 6, 2026

Summary

  • Trusted devices form allows for multiple conditions via the AND button
  • Duplicate fields warning added
  • Unit tests

Screenshots

New AND button

image

Adding multiple conditions

image

Duplicate fields error

image

Updated trusted devices card with multiple conditions

image

@parkiino parkiino added release_note:enhancement Team:Defend Workflows “EDR Workflows” sub-team of Security Solution backport:skip This PR does not require backporting v9.5.0 labels May 8, 2026
@parkiino parkiino marked this pull request as ready for review May 8, 2026 03:59
@parkiino parkiino requested a review from a team as a code owner May 8, 2026 03:59
@infra-vault-gh-plugin-prod
Copy link
Copy Markdown

Pinging @elastic/security-defend-workflows (Team:Defend Workflows)

@elastic-vault-github-plugin-prod elastic-vault-github-plugin-prod Bot requested a review from a team as a code owner May 8, 2026 04:14
Copy link
Copy Markdown
Contributor

@gergoabraham gergoabraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work! 🚀 here are some small findings

Copy link
Copy Markdown
Contributor

@paul-tavares paul-tavares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did only a code review. Left a few comments that I'm sure you will address, so I'm 👍 it

return allFields;
};

const OPERATOR_OPTIONS = [
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have a few module level const on this file that are mutable. I would suggest you make them immutable or set the types to be Readonly<> to prevent accidental mutation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type expected on the component that uses those consts actually expect a mutable type

<EuiFlexItem>
<EuiFormRow label={showLabels ? 'Value' : undefined}>
<EuiComboBox
placeholder="Enter or select value"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This need i18n

</EuiFlexItem>
<EuiFlexItem grow={false}>
{/* Unicode nbsp so the button aligns with other fields when labels are shown */}
<EuiFormRow label={showLabels ? '\u00A0' : undefined}>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm. Using a space for alignment is not ideal. Perhaps you need to have your button be "flush" (if it supports that)?

EuiTextArea,
EuiTitle,
} from '@elastic/eui';
import styled from 'styled-components';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use @emotion/styled instead. styled-component is something we are moving away from

@parkiino parkiino requested a review from gergoabraham May 22, 2026 05:16
Copy link
Copy Markdown
Contributor

@gergoabraham gergoabraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks and works well! 🚀 thanks for the updates

@parkiino parkiino enabled auto-merge (squash) May 22, 2026 15:15
@parkiino parkiino disabled auto-merge May 22, 2026 16:11
@parkiino parkiino added the ci:cloud-deploy Create or update a Cloud deployment label May 26, 2026
@sukhwindersingh-qasource sukhwindersingh-qasource added the ci:cloud-persist-deployment Persist cloud deployment indefinitely label May 28, 2026
@sukhwindersingh-qasource
Copy link
Copy Markdown

/ci

@sukhwindersingh-qasource
Copy link
Copy Markdown

/ci

@kibanamachine
Copy link
Copy Markdown
Contributor

kibanamachine commented Jun 1, 2026

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 12.1MB 12.1MB +3.1KB

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting ci:cloud-deploy Create or update a Cloud deployment ci:cloud-persist-deployment Persist cloud deployment indefinitely release_note:enhancement Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v9.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants