[Logs UI] move ML job setup UI to a flyout#68366
Conversation
706c054 to
62ac6d2
Compare
62ac6d2 to
1b89fd2
Compare
weltenwort
left a comment
There was a problem hiding this comment.
As mentioned on a different channel, the overall direction looks good. I left a few thoughts on state and component hierarchy below.
x-pack/plugins/infra/public/pages/logs/log_entry_categories/page_content.tsx
Outdated
Show resolved
Hide resolved
Render the flyout only in the setup and the results components, controlling the visibility locally.
|
Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui) |
weltenwort
left a comment
There was a problem hiding this comment.
👀 Reviewing on behalf of @elastic/logs-metrics-ui...
weltenwort
left a comment
There was a problem hiding this comment.
This is pretty readable 👍 I left some comments about the text and the flyout visibility state below.
x-pack/plugins/infra/public/pages/logs/log_entry_categories/page_setup_content.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/public/pages/logs/log_entry_categories/page_content.tsx
Show resolved
Hide resolved
x-pack/plugins/infra/public/pages/logs/log_entry_categories/page_results_content.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/public/pages/logs/log_entry_categories/page_results_content.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/public/pages/logs/log_entry_categories/setup_flyout.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/public/pages/logs/log_entry_categories/page_setup_content.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/public/pages/logs/log_entry_categories/setup_flyout.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/public/pages/logs/log_entry_categories/page_setup_content.tsx
Outdated
Show resolved
Hide resolved
…ge_setup_content.tsx Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
x-pack/plugins/infra/public/components/logging/log_analysis_setup/process_step/process_step.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/public/pages/logs/log_entry_categories/page_setup_content.tsx
Outdated
Show resolved
Hide resolved
weltenwort
left a comment
There was a problem hiding this comment.
This seems to work pretty well now 👏
I noticed one difference between the log rate and categories tabs in that the flyout is not opened automatically in the log rate tab when the setup status indicates that the jobs are missing. Is that intentional?
I left a suggestion about improving the post-setup success state quirk in an earlier comment already.
Otherwise I think we're pretty close to done on this one after the tests pass and the text is smoothed out.
x-pack/plugins/infra/public/pages/logs/log_entry_rate/setup_flyout.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/public/pages/logs/log_entry_rate/page_setup_content.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/public/pages/logs/log_entry_categories/page_content.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/public/components/logging/log_analysis_setup/process_step/process_step.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/public/pages/logs/log_entry_categories/page_setup_content.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/public/pages/logs/log_entry_categories/page_setup_content.tsx
Outdated
Show resolved
Hide resolved
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
weltenwort
left a comment
There was a problem hiding this comment.
The post-setup state makes sense now as well 👍
One thing I commented on earlier still occurs: The flyout is not opened automatically in the log rate tab when the setup status indicates that the jobs are missing. Is that an intentional difference between the log rate and categories tab?
That's a mistake I missed. I'll fix it straight away |
weltenwort
left a comment
There was a problem hiding this comment.
Thanks for polishing it so much and making it robust - good job 👏
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Summary
Move the setup of log entry rate and categorization jobs to a flyout.
Closes #64754
Checklist
Delete any items that are not applicable to this PR.