-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Refactor Observability Overview Page #146182
Refactor Observability Overview Page #146182
Conversation
@CoenWarmer This seems out of scope for a @elastic/observability-design review in terms of code refactor. Can you seek a review from an engineer within @elastic/observability-ui to review this PR? |
@CoenWarmer Design will take a look for possible visual regressions, but we don't have the knowledge to review the code itself. |
@formgeist Yes, certainly. I will also look into updating the |
Sounds good thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Design LGTM - I did notice a regression that isn't because of this PR, but something must've changed due to updates to EUI. Wondering if you have time to take a quick look on whether this is an easy fix. The spacing in the footer elements is pretty large, so wonder if there's some messed up flexbox happening.
@formgeist Good catch! Is indeed due to the changes in Eui. Will include a fix for that. |
@formgeist now fixed! Also tweaked the Screen.Recording.2022-11-24.at.15.58.05.mov |
c71d5c1
to
88127fa
Compare
💚 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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works fine locally!
Good job with this refactoring 👏🏻 This is a really useful endeavour you're taking on with these refactoring!
🍰 If I may suggest to try to split the changes into smaller commits and keeping the changes together.
For example, the PageHeader is extracted from the main component in one commit, but it does not show the removal from the main page component. Making it difficult to review: is it just an extract or there is also some refactoring?
Same for lifting some variables definition in the component, this could be just one commit so it is easier to review.
That being said, I know it's not always possible to do such small incremental changes so take this comment with a pinch of salt ;)
Thanks @kdelemme! Yeah, I agree it's not always easy to review this type of work. I've taken the first step (splitting up the work in many smaller commits) but it would be even better if the breaking off of components from the main component and the creation of the new file is in one commit. There's still the Alerts page to go after this round of PRs, so I'll do my best to take that approach in that PR. |
* 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 #156986
Summary
This PR aims to refactor the Overview page for more maintainability and better legibility.
Functionally the page should behave exactly the same.
It is recommended to review this PR commit by commit.
Guidelines while refactoring:
pageTitle: string | component
,rightSideItems: [<HeaderActions />]
)Part of refactoring effort of other AO pages: