-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an agent selector to IT Hygiene application (#6005)
* feat: add agent selector to IT Hygiene application - Wrapped the IT Hygiene application with a required selection of agent - Added a Explore agent button to the IT Hygiene application - The Explore agent button of alert modules now display the global agent selector instead of the local one. - Removed the local agent selector modal of Explore agent button on alert modules - Removed the related action creator and reducer case for SHOW_EXPLORE_AGENT_MODAL * feat: add reactivity to agent welcome view when changing the selected agent - Refactor MITRE ATT&CK panel - Rename MITRE to MITRE ATT&CK in the panel - Rename mitre_top to mitre-top according to the file naming convention - Add reactivity to the FIM: Recent events table when changing the selected agent * feat(it-hygiene): fix problems when selecting and agent and navigate - Move prompt agent never connected to prompts directory - Remove duplicated and related components on agent welcome, inventory data and agent configuration - Change button on prompt agent never connected to Select agent - Change Explore agent button on agent welcome * fix: imports on prompt and add clarification on agent welcome * fix(it-hygiene): change mitre attack referecence * Fix navbar agent styles * Fix refresh page: inventory data and stats --------- Co-authored-by: yenienserrano <ian.serrano@wazuh.com>
- Loading branch information
1 parent
f14d3fd
commit 15519de
Showing
19 changed files
with
637 additions
and
628 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
plugins/main/public/components/agents/prompts/prompt-agent-never-connected.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* Wazuh app - Prompt when status agent is Never connected. | ||
* Copyright (C) 2015-2022 Wazuh, Inc. | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Find more information about this on the LICENSE file. | ||
*/ | ||
|
||
import React, { Fragment } from 'react'; | ||
import { EuiEmptyPrompt, EuiButton, EuiLink } from '@elastic/eui'; | ||
import { useDispatch } from 'react-redux'; | ||
import { webDocumentationLink } from '../../../../common/services/web_documentation'; | ||
import { showExploreAgentModalGlobal } from '../../../redux/actions/appStateActions'; | ||
|
||
const documentationLink = webDocumentationLink( | ||
'user-manual/agents/agent-connection.html', | ||
); | ||
|
||
export const PromptAgentNeverConnected = () => { | ||
const dispatch = useDispatch(); | ||
const openAgentSelector = () => dispatch(showExploreAgentModalGlobal(true)); | ||
return ( | ||
<EuiEmptyPrompt | ||
iconType='securitySignalDetected' | ||
style={{ marginTop: 20 }} | ||
title={<h2>Agent has never connected.</h2>} | ||
body={ | ||
<Fragment> | ||
<p> | ||
The agent has been registered but has not yet connected to the | ||
manager. | ||
</p> | ||
<EuiLink | ||
href={documentationLink} | ||
target='_blank' | ||
rel='noopener noreferrer' | ||
external | ||
> | ||
Checking connection with the Wazuh server | ||
</EuiLink> | ||
</Fragment> | ||
} | ||
actions={ | ||
<EuiButton color='primary' fill onClick={openAgentSelector}> | ||
Select agent | ||
</EuiButton> | ||
} | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.