-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[Security Solution][Detections] Removes the Tour for the new features on the Rule Management page introduced in 8.1 #128398
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
Merged
banderror
merged 1 commit into
elastic:main
from
banderror:remove-tour-ui-on-rule-management-page
Mar 24, 2022
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
56 changes: 56 additions & 0 deletions
56
...ution/public/detections/pages/detection_engine/rules/all/feature_tour/README.md
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| # Feature Tour on the Rule Management Page | ||
|
|
||
| This folder contains an implementation of a feature tour UI for new features introduced in `8.1.0`. | ||
| This implementaion is currently unused - all usages have been removed from React components. | ||
| We might revisit this implementation in the next releases when we have something new for the user | ||
| to demonstrate on the Rule Management Page. | ||
|
|
||
| ## A new way of building tours | ||
|
|
||
| The EUI Tour has evolved and continues to do so. | ||
|
|
||
| EUI folks have implemented a new programming model for defining tour steps and binding them to | ||
| UI elements on a page ([ticket][1], [PR][2]). When we revisit the Tour UI, we should build it | ||
| differently - using the new `anchor` property and consolidating all the tour steps and logic | ||
| in a single component. We shouldn't need to wrap the page with the provider anymore. And there's | ||
| [a chance][3] that this implementation based on query selectors will have fewer UI glitches. | ||
|
|
||
| New features and fixes to track: | ||
|
|
||
| - Support for previous, next and go to step [#4831][4] | ||
| - Built-in 'Next' button [#5715][5] | ||
| - Popover on the EuiTour component doesn't respect the anchorPosition prop [#5731][6] | ||
|
|
||
| ## How to revive this tour for the next release (if needed) | ||
|
|
||
| 1. Update Kibana version in `RULES_MANAGEMENT_FEATURE_TOUR_STORAGE_KEY`. | ||
| Set it to a version you're going to implement a feature tour for. | ||
|
|
||
| 1. Define steps for your tour. See `RulesFeatureTourContextProvider` and `stepsConfig`. | ||
|
|
||
| 1. Rewrite the implementation using the new `anchor` property and targeting UI elements | ||
| from steps using query selectors. Consolidate all the steps and their `<EuiTourStep>` | ||
| components in a single `RuleManagementPageFeatureTour` component. Render this component | ||
| in the Rule Management page. Get rid of `RulesFeatureTourContextProvider` - we shouldn't | ||
| need to wrap the page and pass anything down the tree anymore. | ||
|
|
||
| 1. Consider abstracting away persistence in Local Storage and other functionality that | ||
| may be common to tours on different pages. | ||
|
|
||
| ## Useful links | ||
|
|
||
| Docs: [`EuiTour`](https://elastic.github.io/eui/#/display/tour). | ||
|
|
||
| For reference, PRs where this Tour has been introduced or changed: | ||
|
|
||
| - added in `8.1.0` ([PR](https://github.com/elastic/kibana/pull/124343)) | ||
| - removed in `8.2.0` ([PR](https://github.com/elastic/kibana/pull/128398)) | ||
|
|
||
| <!-- Links --> | ||
|
|
||
| [1]: https://github.com/elastic/kibana/issues/124052 | ||
| [2]: https://github.com/elastic/eui/pull/5696 | ||
| [3]: https://github.com/elastic/eui/issues/5731#issuecomment-1075202910 | ||
| [4]: https://github.com/elastic/eui/issues/4831 | ||
| [5]: https://github.com/elastic/eui/issues/5715 | ||
| [6]: https://github.com/elastic/eui/issues/5731 |
This file contains hidden or 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
15 changes: 15 additions & 0 deletions
15
..._solution/public/detections/pages/detection_engine/rules/all/feature_tour/translations.ts
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0; you may not use this file except in compliance with the Elastic License | ||
| * 2.0. | ||
| */ | ||
|
|
||
| import { i18n } from '@kbn/i18n'; | ||
|
|
||
| export const TOUR_TITLE = i18n.translate( | ||
| 'xpack.securitySolution.detectionEngine.rules.allRules.featureTour.tourTitle', | ||
| { | ||
| defaultMessage: "What's new", | ||
| } | ||
| ); |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.