Skip to content

[Security Solution] [Onboarding] a11y: Fix incorrect navigation after Save on AI assistant modal dialog#219935

Merged
agusruidiazgd merged 7 commits intoelastic:mainfrom
agusruidiazgd:fix/a11y-security-issue-204211
May 21, 2025
Merged

[Security Solution] [Onboarding] a11y: Fix incorrect navigation after Save on AI assistant modal dialog#219935
agusruidiazgd merged 7 commits intoelastic:mainfrom
agusruidiazgd:fix/a11y-security-issue-204211

Conversation

@agusruidiazgd
Copy link
Contributor

@agusruidiazgd agusruidiazgd commented May 2, 2025

Summary

Closes: #204211

Screen.Recording.2025-05-02.at.15.19.16.mov

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

@agusruidiazgd agusruidiazgd added Project:Accessibility release_note:skip Skip the PR/issue when compiling release notes v9.0.0 Team:Threat Hunting:Explore ci:cloud-deploy Create or update a Cloud deployment v9.1.0 v8.19.0 labels May 2, 2025
@agusruidiazgd agusruidiazgd self-assigned this May 2, 2025
@agusruidiazgd agusruidiazgd requested a review from a team as a code owner May 2, 2025 13:21
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-accessibility (Project:Accessibility)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting-explore (Team:Threat Hunting:Explore)

@agusruidiazgd
Copy link
Contributor Author

@elasticmachine merge upstream

className="actConnectorModal"
css={css`
z-index: 9000;
width: ${actionTypeRegistry.get(actionType.id).modalWidth};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ESLint auto-fix

@agusruidiazgd
Copy link
Contributor Author

@elasticmachine merge upstream

@agusruidiazgd
Copy link
Contributor Author

@elasticmachine merge upstream

@agusruidiazgd
Copy link
Contributor Author

@elasticmachine merge upstream

<React.Fragment key={`config.${id}`}>
<FormRow id={`config.${id}`} {...restConfigSchema} readOnly={readOnly} />
<FormRow
euiFieldProps={{ 'aria-invalid': isEdit }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why isEdit, shouldn't this depend on whether the form is valid?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I realized that it wasn’t necessary to manually add an aria-invalid attribute, because when you pass the isInvalid prop, EUI automatically adds aria-invalid="true" to the input so I've removed this lines of code.

also @adcoelho I noticed that the isEdit boolean is not used in this component, should we remove it ?

@agusruidiazgd agusruidiazgd requested a review from adcoelho May 20, 2025 12:37
@elasticmachine
Copy link
Contributor

elasticmachine commented May 20, 2025

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #15 / Cloud Security Posture Findings Page - Grouping "after all" hook in "Findings Page - Grouping"

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
triggersActionsUi 1.4MB 1.4MB +192.0B

History

cc @agusruidiazgd

@agusruidiazgd agusruidiazgd merged commit 63f75bd into elastic:main May 21, 2025
7 checks passed
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

26 similar comments
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @agusruidiazgd

agusruidiazgd added a commit that referenced this pull request Sep 15, 2025
…n after Save on AI assistant modal dialog (#219935) (#221119)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Security Solution] [Onboarding] a11y: Fix incorrect navigation after
Save on AI assistant modal dialog
(#219935)](#219935)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Agustina Nahir
Ruidiaz","email":"61565784+agusruidiazgd@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-05-21T09:51:43Z","message":"[Security
Solution] [Onboarding] a11y: Fix incorrect navigation after Save on AI
assistant modal dialog (#219935)\n\n## Summary\n\nCloses:
https://github.com/elastic/kibana/issues/204211\n\n\nhttps://github.com/user-attachments/assets/ce60a37a-913d-4c17-bf3c-0192b1e99ddc\n\n\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"63f75bd15126deb2f5cf02434302565a7a2cdd73","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Project:Accessibility","release_note:skip","v9.0.0","Team:Threat
Hunting:Explore","backport:prev-minor","ci:cloud-deploy","v9.1.0","v8.19.0"],"title":"[Security
Solution] [Onboarding] a11y: Fix incorrect navigation after Save on AI
assistant modal
dialog","number":219935,"url":"https://github.com/elastic/kibana/pull/219935","mergeCommit":{"message":"[Security
Solution] [Onboarding] a11y: Fix incorrect navigation after Save on AI
assistant modal dialog (#219935)\n\n## Summary\n\nCloses:
https://github.com/elastic/kibana/issues/204211\n\n\nhttps://github.com/user-attachments/assets/ce60a37a-913d-4c17-bf3c-0192b1e99ddc\n\n\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"63f75bd15126deb2f5cf02434302565a7a2cdd73"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.19"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/219935","number":219935,"mergeCommit":{"message":"[Security
Solution] [Onboarding] a11y: Fix incorrect navigation after Save on AI
assistant modal dialog (#219935)\n\n## Summary\n\nCloses:
https://github.com/elastic/kibana/issues/204211\n\n\nhttps://github.com/user-attachments/assets/ce60a37a-913d-4c17-bf3c-0192b1e99ddc\n\n\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"63f75bd15126deb2f5cf02434302565a7a2cdd73"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine kibanamachine added v8.19.4 and removed backport missing Added to PRs automatically when the are determined to be missing a backport. labels Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:cloud-deploy Create or update a Cloud deployment Project:Accessibility release_note:skip Skip the PR/issue when compiling release notes v8.19.0 v8.19.4 v9.0.3 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Security:Get Started page]Incorrect navigation when getting errors after Save on AI assistant modal dialogs

5 participants