-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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] Add loading spinner to page headers #79568
Conversation
Pinging @elastic/ingest-management (Team:Ingest Management) |
@@ -97,8 +97,10 @@ export const AgentDetailsPage: React.FunctionComponent = () => { | |||
<EuiFlexItem> | |||
<EuiText> | |||
<h1> | |||
{typeof agentData?.item?.local_metadata?.host === 'object' && | |||
typeof agentData?.item?.local_metadata?.host?.hostname === 'string' ? ( | |||
{isLoading ? ( |
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.
we use pollIntervalMs
on the agent page so you should probably use isInitialRequest
too to avoid the hostname to blink
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.
good catch! thanks, I've updated
@@ -114,8 +116,7 @@ export const AgentDetailsPage: React.FunctionComponent = () => { | |||
</EuiFlexItem> | |||
</EuiFlexGroup> | |||
), | |||
/* eslint-disable-next-line react-hooks/exhaustive-deps */ |
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.
🎉
💛 Build succeeded, but was flaky
Test FailuresX-Pack Alerting API Integration Tests.x-pack/test/alerting_api_integration/spaces_only/tests/alerting/execution_status·ts.alerting api integration spaces only Alerting executionStatus should be able to find over all the fieldsStandard Out
Stack Trace
Metrics [docs]async chunks size
History
To update your PR or re-run it, just comment with: |
* master: (85 commits) Refactor attribute service (elastic#78414) [APM] Add default message to alerts. (elastic#78930) [Discover] Modify columns and sort when switching index pattern (elastic#74336) Document ts project references setup (elastic#78586) build all ts refs in single kbn:bootstrap (elastic#79438) [TSVB] Allow string fields on value count aggregation (elastic#79267) [SECURITY SOLUTION] Investigate EQL signal in timeline (elastic#79049) [Fleet] Add loading spinner to page headers (elastic#79568) [Security Solution][Resolver] Resolver query panel load more (elastic#79160) Add type row to monitor detail page. (elastic#79556) Remove license refresh from setup (elastic#79518) [docker] add reporting fonts (elastic#74806) [SECURITY_SOLUTION][ENDPOINT] Add info about trusted apps to the page subtitle + create flyout (elastic#79558) Trim Hash value before validating it (elastic#79545) Warn users when security is not configured (elastic#78545) update copy styling (elastic#79313) Update dependency @elastic/charts to v23.1.1 (elastic#78459) Introduce geo-threshold alerts (elastic#76285) elastic#76920 Show base breadcrumb when there is an error booting the app (elastic#79571) remove react-intl from kibana and keep it inside only i18n package (elastic#78956) ...
Summary
Fixes #79449. Replaces
Policy {id}
with a loading spinner when agent policy details is being loaded. I found that the agent detail page had a similar issue, so applied the same to that page header.