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] Integrations UI: Adjust policies list UI #101600

Merged

Conversation

kpollich
Copy link
Member

@kpollich kpollich commented Jun 8, 2021

Summary

This PR updates the "Policies" tab of the "Integration Details" page (e.g. http://localhost:5601/app/integrations#/detail/linux-0.3.10/policies) with a few new pieces of functionality:

  • Adds an "Actions" menu with "Add Agent", "Edit Integration", and "Delete Integration" actions
  • Adds a "+" button to the "Agents" column of the table to open the "Enroll Agent" flyout if there are no enrolled agents

See designs: https://www.figma.com/proto/G3jnu6rub6x8YExOfTWoO9/Integrations-UI-%2B-Fleet?node-id=802%3A23&scaling=min-zoom

How To Test

  1. Start Kibana + ES on basic
  2. Follow the in-app instructions for setting up a fleet server where agents can be registered
  3. Add a new integration like Linux or Nginx via the "Integrations > Browse" flow
  4. Navigate to your installed integration, then the "Policies" tab, e.g. http://localhost:5601/app/integrations#/detail/nginx-0.5.0/policies
  5. The new "+" icon should appear in the Agents column of the table, and the new Actions menu should appear in the far right column

Screenshots

Show Screenshots

Screen Shot 2021-06-08 at 9 28 15 AM
Screen Shot 2021-06-08 at 9 28 22 AM
Screen Shot 2021-06-08 at 9 28 33 AM

Checklist

- Add button to open enrollment flyout from package policy list screen
- Move necessary components up into `public` in order to open enrollment
  flyout from within Integrations application
@kpollich kpollich added release_note:enhancement v8.0.0 Team:Fleet Team label for Observability Data Collection Fleet team v7.14.0 auto-backport Deprecated - use backport:version if exact versions are needed labels Jun 8, 2021
@kpollich kpollich self-assigned this Jun 8, 2021
@kpollich kpollich requested a review from a team as a code owner June 8, 2021 13:53
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@kpollich kpollich changed the title Integrations UI/adjust policies list UI [Fleet] Integrations UI: Adjust policies list UI Jun 8, 2021
@kpollich kpollich requested a review from jloleysens June 8, 2021 13:57
Copy link
Contributor

@jloleysens jloleysens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally and the actions menu and add button work as intended. Great work @kpollich !

…/epm/screens/detail/index.test.tsx

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
@kpollich kpollich enabled auto-merge (squash) June 9, 2021 12:02
@kpollich kpollich disabled auto-merge June 9, 2021 12:59
Copy link
Contributor

@jen-huang jen-huang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes, LGTM 🚀

@kpollich
Copy link
Member Author

kpollich commented Jun 9, 2021

@elasticmachine merge upstream

@kpollich kpollich enabled auto-merge (squash) June 9, 2021 19:07
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
fleet 472 473 +1

Async chunks

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

id before after diff
fleet 713.7KB 711.8KB -1.9KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
fleet 425.1KB 426.0KB +872.0B

History

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

cc @kpollich

@kpollich kpollich merged commit 9a412d3 into elastic:master Jun 9, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jun 9, 2021
* Add "Add Agent" button to package policy list

- Add button to open enrollment flyout from package policy list screen
- Move necessary components up into `public` in order to open enrollment
  flyout from within Integrations application

* Create initial package policy table actions

* Fix context menu link + add a few tests

* Fix import in list_layout

* Unify package policy actions menu in shared component

* Update x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/index.test.tsx

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Jun 9, 2021
* Add "Add Agent" button to package policy list

- Add button to open enrollment flyout from package policy list screen
- Move necessary components up into `public` in order to open enrollment
  flyout from within Integrations application

* Create initial package policy table actions

* Fix context menu link + add a few tests

* Fix import in list_layout

* Unify package policy actions menu in shared component

* Update x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/index.test.tsx

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
@kpollich kpollich deleted the integrations-ui/adjust-policies-list-ui branch June 10, 2021 02:21
jloleysens added a commit to jloleysens/kibana that referenced this pull request Jun 10, 2021
…add-agent-flyout

* 'master' of github.com:elastic/kibana: (35 commits)
  [Cases] Improve connectors mapping (elastic#101145)
  [ML] Fixes display of job group badges in recognizer wizard (elastic#101775)
  Fix es_archives path (elastic#101737)
  [kbnArchiver] convert archive names to root-relative paths (elastic#101839)
  [Reporting] Make "ScreenCapturePanel" shareable for Canvas (elastic#100623)
  [Alerting UI] Converted Rules and Connectors management pages to new layout. (elastic#101697)
  [Fleet] Support granular integrations in policy editor (elastic#101531)
  [Security Solution][Detections] Update detection alert mappings to ECS v1.10.0 (elastic#101680)
  [Fleet] Integrations UI: Adjust policies list UI (elastic#101600)
  chore(NA): moving @kbn/server-route-repository into bazel (elastic#101484)
  Support owner and description attributes inside the Manifest file, use in API docs (elastic#101786)
  [Security Solution] fix security empty overview links (elastic#101536)
  Unskips migration tests now that elastic search is fixed (elastic#101682)
  Fix endpoint -> integrations onboarding link (elastic#101804)
  [Alerting] Log warning when rules are not rescheduled due to Saved Object not found error (elastic#101591)
  Update datafeed_high_count_network_denies.json (elastic#101681)
  [Index patterns] Field editor example app (elastic#100524)
  [DOCS] Adding file upload to add data page (elastic#101674)
  [Security Solution][Endpoint] Adds Endpoint Host Isolation Status common component (elastic#101782)
  Upgrade ws v7.3.1->v7.4.2 and v6.2.1->v6.2.2 (elastic#101402)
  ...

# Conflicts:
#	x-pack/plugins/fleet/public/components/agent_enrollment_flyout/agent_policy_selection.tsx
#	x-pack/plugins/fleet/public/components/agent_enrollment_flyout/index.tsx
#	x-pack/plugins/fleet/public/components/agent_enrollment_flyout/managed_instructions.tsx
#	x-pack/plugins/fleet/public/components/agent_enrollment_flyout/standalone_instructions.tsx
jloleysens added a commit to jloleysens/kibana that referenced this pull request Jun 10, 2021
…add-integrations-redirect

* 'master' of github.com:elastic/kibana: (44 commits)
  Allow navigating discover flyout via arrow keys (elastic#101772)
  [Cases] Improve connectors mapping (elastic#101145)
  [ML] Fixes display of job group badges in recognizer wizard (elastic#101775)
  Fix es_archives path (elastic#101737)
  [kbnArchiver] convert archive names to root-relative paths (elastic#101839)
  [Reporting] Make "ScreenCapturePanel" shareable for Canvas (elastic#100623)
  [Alerting UI] Converted Rules and Connectors management pages to new layout. (elastic#101697)
  [Fleet] Support granular integrations in policy editor (elastic#101531)
  [Security Solution][Detections] Update detection alert mappings to ECS v1.10.0 (elastic#101680)
  [Fleet] Integrations UI: Adjust policies list UI (elastic#101600)
  chore(NA): moving @kbn/server-route-repository into bazel (elastic#101484)
  Support owner and description attributes inside the Manifest file, use in API docs (elastic#101786)
  [Security Solution] fix security empty overview links (elastic#101536)
  Unskips migration tests now that elastic search is fixed (elastic#101682)
  Fix endpoint -> integrations onboarding link (elastic#101804)
  [Alerting] Log warning when rules are not rescheduled due to Saved Object not found error (elastic#101591)
  Update datafeed_high_count_network_denies.json (elastic#101681)
  [Index patterns] Field editor example app (elastic#100524)
  [DOCS] Adding file upload to add data page (elastic#101674)
  [Security Solution][Endpoint] Adds Endpoint Host Isolation Status common component (elastic#101782)
  ...

# Conflicts:
#	x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/index.tsx
#	x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/package_policies/package_policies_table.tsx
semd pushed a commit that referenced this pull request Jun 10, 2021
* Add "Add Agent" button to package policy list

- Add button to open enrollment flyout from package policy list screen
- Move necessary components up into `public` in order to open enrollment
  flyout from within Integrations application

* Create initial package policy table actions

* Fix context menu link + add a few tests

* Fix import in list_layout

* Unify package policy actions menu in shared component

* Update x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/index.test.tsx

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
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
auto-backport Deprecated - use backport:version if exact versions are needed release_note:enhancement Team:Fleet Team label for Observability Data Collection Fleet team v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants