-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Fleet] Fix double policy header layout #103076
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] Fix double policy header layout #103076
Conversation
- Use the default page title without tabs while loading the add integration view
|
Pinging @elastic/fleet (Team:Fleet) |
kpollich
left a comment
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.
LGTM 🚀
|
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
* Fix double policy header layout - Use the default page title without tabs while loading the add integration view * remove unused import Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
* Fix double policy header layout - Use the default page title without tabs while loading the add integration view * remove unused import Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
Summary
Fix #102939. Looks like this is a regression from a big refactor: #101828
Current implementation adds an explicit check at the
<App />level for whether we are loading the "Add integration" view and replaces the default header layout (see screenshots).How to test
See the linked issues for details on how to reproduce. This requires starting Elastic+Kibana on basic and setting up an agent for data collection.
Also check that existing fleet pages still all look correct while loading. This will require going to the different tabs and pressing refresh while looking for any visual regressions.
To reviewers
useRouteMatchthe correct thing to use here? My testing and understanding of the docs seem to indicate "yes" 🤷🏻♂️Screenshots
Loading "Add integrations"
Notice that tabs from the default layout have been removed for this special case.
"Add integrations" view after these changes are applied