Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EDR Workflows] Fix breakpoints on protections settings cards in Fleet #191262

Merged

Conversation

szwarckonrad
Copy link
Contributor

@szwarckonrad szwarckonrad commented Aug 26, 2024

Due to the lack of a defined xxl breakpoint, the protection card's toggle is not displayed on the Fleet integration page.

Screen.Recording.2024-08-26.at.10.37.36.mov

With addition of xxl breakpoint condition for EuiShowFor component the view is being rendered as expected

Screen.Recording.2024-08-26.at.11.36.27.mov

No regression was observed on the Security Management pages.

Screen.Recording.2024-08-26.at.11.37.16.mov

Works as expected on 8.15 branch.

@szwarckonrad szwarckonrad self-assigned this Aug 26, 2024
@szwarckonrad szwarckonrad added Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v8.15.0 v8.16.0 release_note:skip Skip the PR/issue when compiling release notes labels Aug 26, 2024
@szwarckonrad szwarckonrad linked an issue Aug 26, 2024 that may be closed by this pull request
@szwarckonrad szwarckonrad changed the title [EDR Workflows] Fix breakpoints on protections settings cards in Fleet. [EDR Workflows] Fix breakpoints on protections settings cards in Fleet Aug 26, 2024
@szwarckonrad szwarckonrad marked this pull request as ready for review August 26, 2024 10:36
@szwarckonrad szwarckonrad requested a review from a team as a code owner August 26, 2024 10:36
@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

@tomsonpl tomsonpl left a comment

Choose a reason for hiding this comment

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

🚀

@@ -127,7 +127,7 @@ export const SettingCard: FC<SettingCardProps> = memo(
)}
</EuiFlexGroup>
</EuiFlexItem>
<EuiShowFor sizes={['m', 'l', 'xl']}>
<EuiShowFor sizes={['m', 'l', 'xl', 'xxl']}>
Copy link
Member

Choose a reason for hiding this comment

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

If there's no test for this toggle being visible on the card then we should add that test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍
Added

@@ -61,4 +61,16 @@ describe('Policy form SettingCard component', () => {
expect(renderResult.getByTestId('test-rightCornerContainer')).not.toBeEmptyDOMElement();
expect(renderResult.getByTestId('test-rightContent'));
});

it('should show right corner content in viewport width greater than 1600px', () => {
Copy link
Member

Choose a reason for hiding this comment

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

🔥

Copy link
Member

@ashokaditya ashokaditya left a comment

Choose a reason for hiding this comment

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

🚢 !!

@kibana-ci
Copy link
Collaborator

kibana-ci commented Aug 26, 2024

💛 Build succeeded, but was flaky

Failed CI Steps

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 18.0MB 18.0MB +12.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @szwarckonrad

@szwarckonrad szwarckonrad merged commit 64b79d7 into elastic:main Aug 26, 2024
44 checks passed
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 26, 2024
elastic#191262)

Due to the lack of a defined xxl breakpoint, the protection card's
toggle is not displayed on the Fleet integration page.

https://github.com/user-attachments/assets/59b19051-997d-4fba-84e9-56dca45cf91e

With addition of `xxl` breakpoint condition for `EuiShowFor` component
the view is being rendered as expected

https://github.com/user-attachments/assets/6933269d-f266-4096-8bf1-4234cd7b2302

No regression was observed on the Security Management pages.

https://github.com/user-attachments/assets/a0f412a6-daa9-4595-8293-2d44aae3078a

Works as expected on `8.15` branch.

(cherry picked from commit 64b79d7)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.15

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Aug 26, 2024
…in Fleet (#191262) (#191298)

# Backport

This will backport the following commits from `main` to `8.15`:
- [[EDR Workflows] Fix breakpoints on protections settings cards in
Fleet (#191262)](#191262)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Konrad
Szwarc","email":"konrad.szwarc@elastic.co"},"sourceCommit":{"committedDate":"2024-08-26T16:42:17Z","message":"[EDR
Workflows] Fix breakpoints on protections settings cards in Fleet
(#191262)\n\nDue to the lack of a defined xxl breakpoint, the protection
card's\r\ntoggle is not displayed on the Fleet integration
page.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/59b19051-997d-4fba-84e9-56dca45cf91e\r\n\r\nWith
addition of `xxl` breakpoint condition for `EuiShowFor` component\r\nthe
view is being rendered as
expected\r\n\r\n\r\nhttps://github.com/user-attachments/assets/6933269d-f266-4096-8bf1-4234cd7b2302\r\n\r\nNo
regression was observed on the Security Management
pages.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/a0f412a6-daa9-4595-8293-2d44aae3078a\r\n\r\nWorks
as expected on `8.15`
branch.","sha":"64b79d725dae3a3aff4246d3315e36f6837cc9b6","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Defend
Workflows","8.15 candidate","v8.16.0","v8.15.1"],"title":"[EDR
Workflows] Fix breakpoints on protections settings cards in
Fleet","number":191262,"url":"https://github.com/elastic/kibana/pull/191262","mergeCommit":{"message":"[EDR
Workflows] Fix breakpoints on protections settings cards in Fleet
(#191262)\n\nDue to the lack of a defined xxl breakpoint, the protection
card's\r\ntoggle is not displayed on the Fleet integration
page.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/59b19051-997d-4fba-84e9-56dca45cf91e\r\n\r\nWith
addition of `xxl` breakpoint condition for `EuiShowFor` component\r\nthe
view is being rendered as
expected\r\n\r\n\r\nhttps://github.com/user-attachments/assets/6933269d-f266-4096-8bf1-4234cd7b2302\r\n\r\nNo
regression was observed on the Security Management
pages.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/a0f412a6-daa9-4595-8293-2d44aae3078a\r\n\r\nWorks
as expected on `8.15`
branch.","sha":"64b79d725dae3a3aff4246d3315e36f6837cc9b6"}},"sourceBranch":"main","suggestedTargetBranches":["8.15"],"targetPullRequestStates":[{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/191262","number":191262,"mergeCommit":{"message":"[EDR
Workflows] Fix breakpoints on protections settings cards in Fleet
(#191262)\n\nDue to the lack of a defined xxl breakpoint, the protection
card's\r\ntoggle is not displayed on the Fleet integration
page.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/59b19051-997d-4fba-84e9-56dca45cf91e\r\n\r\nWith
addition of `xxl` breakpoint condition for `EuiShowFor` component\r\nthe
view is being rendered as
expected\r\n\r\n\r\nhttps://github.com/user-attachments/assets/6933269d-f266-4096-8bf1-4234cd7b2302\r\n\r\nNo
regression was observed on the Security Management
pages.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/a0f412a6-daa9-4595-8293-2d44aae3078a\r\n\r\nWorks
as expected on `8.15`
branch.","sha":"64b79d725dae3a3aff4246d3315e36f6837cc9b6"}},{"branch":"8.15","label":"v8.15.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Konrad Szwarc <konrad.szwarc@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.15 candidate release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v8.15.1 v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[EDR Workflows] Cannot turn off protections via Fleet
6 participants