Skip to content

Conversation

@kpollich
Copy link
Member

@kpollich kpollich commented Jun 9, 2021

Summary

Migrates Fleet's layout to the new tab-based layout standardized across all Kibana apps.

A few other changes:

Screenshots
Screen Screenshot Notes
Fleet Home / Agents List localhost_5601_app_fleet /agents is new home screen
Agent Policy Listing localhost_5601_app_fleet (1)
Agent Policy Listing w/ Flyout Open localhost_5601_app_fleet (6)
Enrollment Token listing localhost_5601_app_fleet (2)
Data stream listing localhost_5601_app_fleet (3)
Agent Details localhost_5601_app_fleet (4) Tab layout excluded from these nested detail pages
Agent Policy Details localhost_5601_app_fleet (5)

Ref #98359

@kpollich kpollich added the Team:Fleet Team label for Observability Data Collection Fleet team label Jun 9, 2021
@kpollich kpollich self-assigned this Jun 9, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@kpollich kpollich changed the title [Fleet + Integrations UI] [WIP] Migrate Fleet Layout to new Layout System [Fleet + Integrations UI] Migrate Fleet Layout to new Layout System Jun 14, 2021
@nchaulet nchaulet self-requested a review June 14, 2021 14:59
@kpollich
Copy link
Member Author

@elasticmachine merge upstream

@hbharding
Copy link
Contributor

Thanks @kpollich - looks great!

One small thing - I think we want to remove beta badge for Fleet since we're going GA in 7.14. @jen-huang @mostlyjason can you confirm? I think the same applies to the Integrations UI.

image

@nchaulet
Copy link
Member

I think I found a small bug related to that PR, when you click on settings when you are on a details policy page the flyout is not displayed

@kpollich kpollich enabled auto-merge (squash) June 15, 2021 12:26
@kpollich
Copy link
Member Author

@elastic/security-asset-management @elastic/security-solution - need code owner review here. We've made some updates to Fleet's routing and fixed failing tests that resulted.

@kpollich
Copy link
Member Author

Wound up just removing the beta badge for #100731 in this PR. Change was very small.

@kpollich kpollich changed the title [Fleet + Integrations UI] Migrate Fleet Layout to new Layout System [Fleet + Integrations UI] Migrate Fleet Layout to new tabbed layout Jun 15, 2021
@kpollich kpollich changed the title [Fleet + Integrations UI] Migrate Fleet Layout to new tabbed layout [Fleet + Integrations UI] Migrate Fleet UI to new tabbed layout Jun 15, 2021
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
fleet 476 468 -8

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
fleet 1010 1011 +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 705.0KB 677.9KB -27.1KB
osquery 840.7KB 840.7KB -12.0B
securitySolution 6.9MB 6.9MB -36.0B
total -27.2KB

Page load bundle

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

id before after diff
fleet 435.7KB 435.4KB -276.0B
Unknown metric groups

API count

id before after diff
fleet 1101 1102 +1

History

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

cc @kpollich

Copy link
Contributor

@paul-tavares paul-tavares left a comment

Choose a reason for hiding this comment

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

Did not run it locally, but looks good from a security solution standpoint. 👍

@kpollich
Copy link
Member Author

@elastic/security-asset-management - Is anyone available to give this a quick code owner review? I updated two links into Fleet's UI here (links to diff) because of changes in routing within the Fleet app.

@jen-huang jen-huang disabled auto-merge June 16, 2021 17:26
@jen-huang
Copy link
Contributor

Given the small scope of the changed files that are under the outstanding codeowner review, I'm going to go ahead and merge this PR. Reviewers, feel free to leave any feedback afterwards.

@jen-huang jen-huang merged commit 4a94156 into elastic:master Jun 16, 2021
@jen-huang jen-huang added the auto-backport Deprecated - use backport:version if exact versions are needed label Jun 16, 2021
@kibanamachine
Copy link
Contributor

💔 Backport failed

Status Branch Result
7.x Commit could not be cherrypicked due to conflicts

To backport manually run:
node scripts/backport --pr 101828

kpollich added a commit to kpollich/kibana that referenced this pull request Jun 16, 2021
…tic#101828)

* WIP: Migrate fleet to new page layout system

* Add 'Add Agent' button to agents table

* Fix flyout import in search and filter bar

* Place settings/feedback in header

* Move actions to top nav

* Fix i18n + types + unit test failures

* Remove unused props in DefaultLayout

* Fix background height in Fleet layout

This is fixed through a hack for now, because Kibana's layout doesn't
allow apps to flex the top-level wrapper via `flex: 1`. The same
behavior reported in the original issue (elastic#101781) is present in all
other Kibana apps.

Fixes elastic#101781

* Use euiHeaderHeightCompensation for min-height calc

* Move settings portal to app component

* Fix agent details URL in failing unit test

* Remove unreferenced overview files + update functional tests

* Remove unneeded fragment

* Remove beta badges in Fleet + Integrations

Fixes elastic#100731

* Fix i18n

* Fix page path reference

* Fix failing tests

* Re-fix i18n post merge

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/translations/translations/ja-JP.json
#	x-pack/plugins/translations/translations/zh-CN.json
@kpollich kpollich deleted the integrations-ui/adjust-fleet-layout branch June 16, 2021 17:46
kpollich added a commit that referenced this pull request Jun 16, 2021
) (#102393)

* WIP: Migrate fleet to new page layout system

* Add 'Add Agent' button to agents table

* Fix flyout import in search and filter bar

* Place settings/feedback in header

* Move actions to top nav

* Fix i18n + types + unit test failures

* Remove unused props in DefaultLayout

* Fix background height in Fleet layout

This is fixed through a hack for now, because Kibana's layout doesn't
allow apps to flex the top-level wrapper via `flex: 1`. The same
behavior reported in the original issue (#101781) is present in all
other Kibana apps.

Fixes #101781

* Use euiHeaderHeightCompensation for min-height calc

* Move settings portal to app component

* Fix agent details URL in failing unit test

* Remove unreferenced overview files + update functional tests

* Remove unneeded fragment

* Remove beta badges in Fleet + Integrations

Fixes #100731

* Fix i18n

* Fix page path reference

* Fix failing tests

* Re-fix i18n post merge

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/translations/translations/ja-JP.json
#	x-pack/plugins/translations/translations/zh-CN.json
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.

[Integrations UI] White background in short Integration pages is not full height [Fleet] Remove release messaging

7 participants