Conversation
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Unknown metric groupsESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
kdelemme
left a comment
There was a problem hiding this comment.
Thanks @CoenWarmer for this refactoring. Definitely make the code easier to follow 👍🏻
| ruleTypeIndex, | ||
| }); | ||
|
|
||
| return render(<RulesPage />); |
There was a problem hiding this comment.
❤️ testing-library.
Is it what we (elastic) are going with moving forward?
There was a problem hiding this comment.
I wouldn't venture to guess if we are going with RTL in general, but I do know that Enzyme is considered EOL (https://dev.to/wojtekmaj/enzyme-is-dead-now-what-ekl) so I think it makes sense to move our tests to RTL.
| {createRuleFlyoutVisibility && CreateRuleFlyout} | ||
| <EuiFlexGroup direction="column" gutterSize="s"> | ||
| <EuiFlexItem> | ||
| <RuleList |
There was a problem hiding this comment.
✨ Nice, easier to read like this 👍🏻
* main: (30 commits) [Cloud Posture] test latest findings table sort (elastic#144668) [api-docs] 2022-11-28 Daily api_docs build (elastic#146359) [api-docs] 2022-11-27 Daily api_docs build (elastic#146353) [api-docs] 2022-11-26 Daily api_docs build (elastic#146350) [DataViews] Fix form validation UX when the same data view name already exists (elastic#146126) [Discover] Prevent agg based visualizations of Discover saved objects with adhoc data views (elastic#145583) [Health Gateway] Update response aggregation (elastic#145761) [api-docs] 2022-11-25 Daily api_docs build (elastic#146341) [Metric threshold rule] Adds new context variable for group by keys (elastic#145654) [Controls] [Portable Dashboards] Add control group renderer example plugin (elastic#146189) Refactor Observability Overview Page (elastic#146182) Send complete test data to xMatters, so it can create an alert (elastic#145431) [Dashboard] [Controls] Allow options list suggestions to be sorted (elastic#144867) Add open API specification for list connector types (elastic#145951) skip flaky suite (elastic#146086) [ML] Removing duplicate tooltip text (elastic#146308) Refactor Rules Page (elastic#146193) [DOCS] Alert limit for cases (elastic#145950) Extend session index fields mapping with a session creation timestamp. (elastic#145997) [Files] Move <Image /> component to `@kbn/shared-ux` package (elastic#145995) ...
Resolves #156985
Summary
This PR aims to refactor the Rules page for more maintainability and better legibility.
Functionally the page should behave exactly the same.
Guidelines while refactoring:
pageTitle: string | component,rightSideItems: [<HeaderActions />])Part of refactoring effort of other AO pages: