From 5d9046f9d7877deb221b152bd705a7e8af61a011 Mon Sep 17 00:00:00 2001
From: Federico Rodriguez
Date: Thu, 24 Oct 2024 15:40:40 +0200
Subject: [PATCH] Fix agents chart loading state (#7120)
* Fix agents chart loading state
* Add changelog
---
CHANGELOG.md | 1 +
.../public/components/overview/overview.tsx | 4 +-
.../controllers/overview/components/stats.js | 82 +++++++++++--------
3 files changed, 53 insertions(+), 34 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5cc2303e22..7bd848e047 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -29,6 +29,7 @@ All notable changes to the Wazuh app project will be documented in this file.
- Fixed read-only users could not access to Statistics application [#7001](https://github.com/wazuh/wazuh-dashboard-plugins/pull/7001)
- Fixed no-agent-alert spawn with selected agent in agent-welcome view [#7029](https://github.com/wazuh/wazuh-dashboard-plugins/pull/7029)
+- Fixed loading state of the agents status chart in the home overview [#7120](https://github.com/wazuh/wazuh-dashboard-plugins/pull/7120)
- Fixed security policy exception when it contained deprecated actions [#7042](https://github.com/wazuh/wazuh-dashboard-plugins/pull/7042)
- Fixed export formatted csv data with special characters from tables [#7048](https://github.com/wazuh/wazuh-dashboard-plugins/pull/7048)
- Fixed column reordering feature [#7072](https://github.com/wazuh/wazuh-dashboard-plugins/pull/7072)
diff --git a/plugins/main/public/components/overview/overview.tsx b/plugins/main/public/components/overview/overview.tsx
index de7a53e7de..91e9c97528 100644
--- a/plugins/main/public/components/overview/overview.tsx
+++ b/plugins/main/public/components/overview/overview.tsx
@@ -40,6 +40,7 @@ export const Overview: React.FC = withRouteResolvers({
savedSearch,
})(() => {
const [agentsCounts, setAgentsCounts] = useState
- }
- actions={
-
- Deploy new agent
-
- }
- />
- )
+
+ This instance has no agents registered.
+
+ Please deploy agents to begin monitoring your endpoints.
+
+ }
+ actions={
+
+ Deploy new agent
+
+ }
+ />
)}