Skip to content
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

[Fleet] Move the agents list bulk actions from the table to a new button #131133

Merged

Conversation

criamico
Copy link
Contributor

Summary

Part of #130259

In the agent list table, move the bulk actions to a new Actions button near add agent and show it when agents are selected

  • The actions have been moved to the new button
  • The clear selection action is now beside the selection

Note: I didn't touch any additional functionality in the table, like the bulk selection or the number of agents displayed on top. I noticed that some of that logic doesn't work as one could expect, so it will need to be discussed with product first.
I extracted a couple of small components to make the table component more readable, since is currently very long.

Screenshots

Screenshot 2022-04-28 at 11 56 40

Screenshot 2022-04-28 at 11 56 59

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@criamico criamico requested a review from a team as a code owner April 28, 2022 10:13
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Apr 28, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@criamico criamico self-assigned this Apr 28, 2022
@criamico criamico added the release_note:skip Skip the PR/issue when compiling release notes label Apr 28, 2022
@criamico criamico changed the title Rolling upgrade/move bulk actions to btn [Fleet] Move the agents list bulk actions from the table to a new button Apr 28, 2022
@criamico
Copy link
Contributor Author

@elasticmachine merge upstream

@juliaElastic
Copy link
Contributor

the code looks good, some unit test coverage would be nice

@juliaElastic
Copy link
Contributor

juliaElastic commented Apr 29, 2022

I found it a bit confusing that the Actions button is only visible if there is an agent selected. I think it would be better to make it always visible, maybe just disable the options.

Apart from this, the functionality works fine on UI.

@criamico
Copy link
Contributor Author

Thanks @juliaElastic I'll ask if this button could be always visible instead.

@criamico
Copy link
Contributor Author

criamico commented May 2, 2022

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
fleet 616 619 +3

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 701.1KB 702.4KB +1.3KB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @criamico

@criamico criamico merged commit 4f89914 into elastic:main May 2, 2022
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label May 2, 2022
@criamico criamico deleted the rolling_upgrade/move_bulk_actions_to_btn branch May 2, 2022 12:10
dmlemeshko pushed a commit to dmlemeshko/kibana that referenced this pull request May 5, 2022
…ton (elastic#131133)

* [Fleet] Move the agents list bulk actions from the table to a new button

* Clean up types and add divider

* Split up agent list page component

* Add test for bulk actions

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
kertal pushed a commit to kertal/kibana that referenced this pull request May 24, 2022
…ton (elastic#131133)

* [Fleet] Move the agents list bulk actions from the table to a new button

* Clean up types and add divider

* Split up agent list page component

* Add test for bulk actions

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants