-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution][Details Flyout] Fix multi-preview url sync (#186130)
## Summary This PR fixed a preview rendering bug and made some improvements to the preview navigation: - If a preview is already opened, opening another preview should work properly. `urlChangedAction` is now dispatching the last item in `preview` array. - Added checks to not append a preview if it was last added - When state is stored in url (everywhere except rule preview), `Back` action in preview utilizes the browser go back functionality. This allows full synchronization between redux and url state. - Keep the latest preview in url to avoid url length explosion Note: in order to make the interaction smooth, the `Back` button is now always present. When there is one preview open, clicking `Go back` will close the preview. **How to test** - Enable feature flag `entityAlertPreviewEnabled` - Generate some alerts, go to Alerts Page - Expand detail on an alert, expand details, entities, clicking the host and user names https://github.com/elastic/kibana/assets/18648970/4552c3d5-541b-4551-8188-fafaf6235c2c
- Loading branch information
1 parent
34887f2
commit c026264
Showing
8 changed files
with
29 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters