-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt the reporting to the rendering of dashboards (#6558)
* feat(reporting): adapt the screenshot taking to dashboard rendering - Adapt the Generate report button to use the search context - Create state and reducers into Redux store - Create hook to send the search context from a dashboard to the Generate report button - Remove disabledReport property and use the search context instead - Replace the mechanim to take the visualizations of the screenshots from the DOM * feat(reporting): remove unused AngularJS service to generate the reports - Remove the dependency injectiong of the unused AngularJS service to generate the reports * feat(reporting): remove unused import * feat(reporting): enhance the toast messagen when a PDF report is generated - Add abilities to the toast message when a PDF report is generated: - Open the report - Go to Reporting application * feat(reporting): replace toast title when generating the PDF reports * fix(reporting): time.from parameter * feat(reporting): replace query.getOpenSearchQuery from global source to use the search context * fix(reporting): remove isLoading dependency from Generate repot button * feat(reporting): adapt agent inventory report to data source * fix(reporting): fix date range filter for Today and This week special date ranges * feat(reporting): adapt the dashboard of Threat Hunting and VirusTotal to the data source * feat(reporting): adapt the dashboard of MITRE ATT&CK to the data source * fix: remove unused props and imports * feat(reporting): adapt the dashboard of Amazon Web Services to the data source * fix(reporting): error converting DOM node from map visualizations to image * feat(reporting): adapt the dashboard of File Integrity Monitoring to the data source * feat(reporting): adapt the dashboard of Malware Detection to the data source * feat(reporting): adapt the dashboard of Docker to the data source * feat(reporting): adapt the dashboard of Google Cloud to the data source * fix(google-cloud): add missing button to generate the report on Dashboard tab * fix(reporting): malformed table row error due to missing columns on the row for summary table when the agregations should not return buckets - Add tests * fix: typo * feat(reporting): adapt the dashboard of PCI DSS to the data source * feat(reporting): adapt the dashboard of GDPR to the data source * feat(reporting): adapt the dashboard of HIPAA to the data source * feat(reporting): adapt the dashboard of NIST 800-53 to the data source * feat(reporting): adapt the dashboard of TSC to the data source * feat(reporting): adapt the dashboard of GitHub to the data source * fix(github): fix request related to get available data on Dashboard * chore: move the import of PCI DSS data source * fix(github): request to get the available data did not take into account the date range * remove: unused RegulatoryComplianceTabs * changelog: add pull request entry * feat(reporting): adapt the dashboard of Office365 to the data source * fix: missing Generate report button on Office 365 > Dashboard * fix: remove unused variables * fix(office365): support explore by agent * changelog: move entry * changelog: add entry * fix: changelog * fix(reporting): add missing Generate report button on Inventory data - Add missing Generate report button on Inventory data - Add header with agent name link to Inventory data, Stats and Configuration from agent view - Simplify the styles of panels on Inventory data - Remove unwanted styles defined on file * Fix changelog typo --------- Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>
- Loading branch information
1 parent
a37e701
commit 577a524
Showing
42 changed files
with
985 additions
and
616 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
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
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
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
3 changes: 0 additions & 3 deletions
3
plugins/main/public/components/agents/syscollector/inventory.scss
This file was deleted.
Oops, something went wrong.
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
23 changes: 23 additions & 0 deletions
23
plugins/main/public/components/common/hooks/use-reporting-communicate-search-context.ts
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,23 @@ | ||
import { useEffect } from 'react'; | ||
import { useDispatch } from 'react-redux'; | ||
import { updateReportingCommunicateSearchContext } from '../../../redux/actions/reportingActions'; | ||
import { IIndexPattern } from '../../../../../../src/plugins/data/public'; | ||
/** | ||
* WORKAROUND: this hook stores the search context to be used by the Generate report button of | ||
* module dashboards | ||
* @param context | ||
*/ | ||
export function useReportingCommunicateSearchContext(context: { | ||
isSearching: boolean; | ||
totalResults: number; | ||
indexPattern: IIndexPattern; | ||
filters: any; | ||
time: any; | ||
query: any; | ||
}) { | ||
const dispatch = useDispatch(); | ||
useEffect(() => { | ||
dispatch(updateReportingCommunicateSearchContext(context)); | ||
return () => dispatch(updateReportingCommunicateSearchContext(null)); | ||
}, [JSON.stringify(context)]); | ||
} |
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.