Skip to content
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

[Backport 4.5-7.16] Typo correction (#4688) #4912

Merged
merged 1 commit into from
Nov 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ All notable changes to the Wazuh app project will be documented in this file.

### Fixed

-
- Fixed several typos in the code, by @jctello [#4911](https://github.com/wazuh/wazuh-kibana-app/pull/4911)

## Wazuh v4.4.0 - Kibana 7.10.2, 7.16.x, 7.17.x - Revision 4400

Expand Down
2 changes: 1 addition & 1 deletion public/components/agents/fim/inventory/filterBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class FilterBar extends Component {
{
type: 'q',
label: 'uid',
description: 'Id of the onwner file',
description: 'Id of the owner file',
operators: ['=', '!=', '~'],
values: async (value) => getFilterValues('uid', value, this.props.agent.id),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const PromptAgentFeatureVersion = ({ version = '' }: { version: string })
<EuiEmptyPrompt
iconType="watchesApp"
title={<h2>{`Agent doesn't support this feature`}</h2>}
body={`This feature is only avaliable for agents with ${version}.`}
body={`This feature is only available for agents with ${version}.`}
/>
);
};
6 changes: 3 additions & 3 deletions public/components/agents/sca/inventory.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Wazuh app - Iventory component
* Wazuh app - Inventory component
* Copyright (C) 2015-2022 Wazuh, Inc.
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -578,7 +578,7 @@ export class Inventory extends Component<InventoryProps, InventoryState> {
<EuiFlexItem>
<InventoryPolicyChecksTable
agent={this.props.agent}
lookingPolicy={this.state.lookingPolicy}
lookingPolicy={this.state.lookingPolicy}
/>
</EuiFlexItem>
</EuiFlexGroup>
Expand All @@ -593,4 +593,4 @@ export class Inventory extends Component<InventoryProps, InventoryState> {

Inventory.defaultProps = {
onClickRow: undefined
}
}
4 changes: 2 additions & 2 deletions public/components/common/hocs/withButtonOpenOnClick.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Wazuh app - React HOC to add open modal/flyout logic to othe component
* Wazuh app - React HOC to add open modal/flyout logic to other component
* Copyright (C) 2015-2022 Wazuh, Inc.
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -32,4 +32,4 @@ export const withButtonOpenOnClick = WrappedComponent => ({render, onClick, onCl
)}
</>
)
}
}
4 changes: 2 additions & 2 deletions public/components/common/hocs/withGlobalBreadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ type TBreadcrumbSection = {text: string, href?: string} | { agent: any };
type TBreadcrumb = TBreadcrumbSection[];
type TBreadcrumbParameter = TBreadcrumb | ((props: any) => TBreadcrumb);

// It retuns user permissions
// It returns user permissions
export const withGlobalBreadcrumb = (breadcrumb : TBreadcrumbParameter) => WrappedComponent => props => {
useGlobalBreadcrumb(typeof breadcrumb === 'function' ? breadcrumb(props) : breadcrumb);
return <WrappedComponent {...props} />
}
}
4 changes: 2 additions & 2 deletions public/components/common/hocs/with_module_tab_loader.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Wazuh app - React HOC to show a loader used for Dashboard adn Events module tabs
* Wazuh app - React HOC to show a loader used for Dashboard and Events module tabs
* Copyright (C) 2015-2022 Wazuh, Inc.
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -39,4 +39,4 @@ export const withModuleTabLoader = WrappedComponent => props => {
</div>
</>
)
}
}
2 changes: 1 addition & 1 deletion public/components/common/modules/panel/main-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const MainPanel = ({ sidePanelChildren, tab = 'general', moduleConfig = {
}, [viewId]);

/**
* When a filter is toggled applies de selection
* When a filter is toggled applies the selection
*/
const applyFilter = (clearOnly = false) => {
const newFilters = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export const ScaScan = compose(
<Fragment>
<EuiEmptyPrompt
iconType="visVega"
title={<h4>You dont have SCA scans in this agent.</h4>}
title={<h4>You don't have SCA scans in this agent.</h4>}
body={
<Fragment>
<p>
Expand Down
2 changes: 1 addition & 1 deletion public/components/health-check/components/check-result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function CheckResult(props) {
};

/**
* validate if the current check is not started and if the dependentes checks are ready
* validate if the current check is not started and if the depending checks are ready
*/
const awaitForIsReady = () => {
return !isCheckStarted && (props.awaitFor.length === 0 || props.awaitFor.every((check) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Wazuh app - React component that shows the searching resutls of Mitre Att&ck resources
* Wazuh app - React component that shows the searching results of Mitre Att&ck resources
*
* Copyright (C) 2015-2022 Wazuh, Inc.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Wazuh app - Mitre Att&ck resouces.
* Wazuh app - Mitre Att&ck resources.
*
* Copyright (C) 2015-2022 Wazuh, Inc.
*
Expand Down
4 changes: 2 additions & 2 deletions public/components/security/roles/edit-role-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const EditRolesTable = ({ policies, role, onChange, isDisabled, loading})
setIsLoading(false);
return;
}
ErrorHandler.info(`Policy was successfull removed from role ${role.name}`);
ErrorHandler.info(`Policy was successfully removed from role ${role.name}`);
await onChange();
}catch(err){ }
setIsLoading(false);
Expand Down Expand Up @@ -141,4 +141,4 @@ export const EditRolesTable = ({ policies, role, onChange, isDisabled, loading})
/>
</>
);
};
};
2 changes: 1 addition & 1 deletion public/components/wz-search-bar/wz-search-badges.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class WzSearchBadges extends Component {
color="hollow"
iconOnClick={() => this.onDeleteFilter(filter)}>
<EuiButtonEmpty color='text' size="xs">
{`${filter.field}: ${filter.value} puto`}
{`${filter.field}: ${filter.value}`}
</EuiButtonEmpty>
</EuiBadge>
</EuiFlexItem>
Expand Down
4 changes: 2 additions & 2 deletions public/components/wz-search-bar/wz-search-bar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React from 'react';
import { CASES_SEARCHBAR } from './wz-search-bar.test-cases';

const getSuggestionsFilters = async (field, value, filters = {}) => {
// here is returned filter to call api and get sugguestions
// here is returned filter to call api and get suggestions
return Promise.resolve([]);
};

Expand Down Expand Up @@ -152,7 +152,7 @@ describe('WzSearchBar', () => {
});

inputs.forEach((filterText, index) => {
// check all badgets created
// check all badges created
expect(getByTestId(`${WZ_SEARCH_BADGE_NAME}-${index}`)).toHaveTextContent(filterText);
expect(getByText(filterText)).toBeInTheDocument();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ exports[`SubscriptionTab component renders correctly to match the snapshot 1`] =
helpLinks={
Array [
Object {
"href": "https://documentation.wazuh.com/4.4/office365/index.html",
"href": "https://documentation.wazuh.com/4.5/office365/index.html",
"text": "Using Wazuh to monitor Office 365",
},
Object {
"href": "https://documentation.wazuh.com/4.4/user-manual/reference/ossec-conf/office365-module.html",
"href": "https://documentation.wazuh.com/4.5/user-manual/reference/ossec-conf/office365-module.html",
"text": "Configuration options for the module",
},
]
Expand All @@ -76,11 +76,11 @@ exports[`SubscriptionTab component renders correctly to match the snapshot 1`] =
help={
Array [
Object {
"href": "https://documentation.wazuh.com/4.4/office365/index.html",
"href": "https://documentation.wazuh.com/4.5/office365/index.html",
"text": "Using Wazuh to monitor Office 365",
},
Object {
"href": "https://documentation.wazuh.com/4.4/user-manual/reference/ossec-conf/office365-module.html",
"href": "https://documentation.wazuh.com/4.5/user-manual/reference/ossec-conf/office365-module.html",
"text": "Configuration options for the module",
},
]
Expand Down Expand Up @@ -238,11 +238,11 @@ exports[`SubscriptionTab component renders correctly to match the snapshot 1`] =
links={
Array [
Object {
"href": "https://documentation.wazuh.com/4.4/office365/index.html",
"href": "https://documentation.wazuh.com/4.5/office365/index.html",
"text": "Using Wazuh to monitor Office 365",
},
Object {
"href": "https://documentation.wazuh.com/4.4/user-manual/reference/ossec-conf/office365-module.html",
"href": "https://documentation.wazuh.com/4.5/user-manual/reference/ossec-conf/office365-module.html",
"text": "Configuration options for the module",
},
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ exports[`ApiAuthTab component renders correctly to match the snapshot 1`] = `
helpLinks={
Array [
Object {
"href": "https://documentation.wazuh.com/4.4/office365/index.html",
"href": "https://documentation.wazuh.com/4.5/office365/index.html",
"text": "Using Wazuh to monitor Office 365",
},
Object {
"href": "https://documentation.wazuh.com/4.4/user-manual/reference/ossec-conf/office365-module.html",
"href": "https://documentation.wazuh.com/4.5/user-manual/reference/ossec-conf/office365-module.html",
"text": "Configuration options for the module",
},
]
Expand All @@ -86,11 +86,11 @@ exports[`ApiAuthTab component renders correctly to match the snapshot 1`] = `
help={
Array [
Object {
"href": "https://documentation.wazuh.com/4.4/office365/index.html",
"href": "https://documentation.wazuh.com/4.5/office365/index.html",
"text": "Using Wazuh to monitor Office 365",
},
Object {
"href": "https://documentation.wazuh.com/4.4/user-manual/reference/ossec-conf/office365-module.html",
"href": "https://documentation.wazuh.com/4.5/user-manual/reference/ossec-conf/office365-module.html",
"text": "Configuration options for the module",
},
]
Expand Down Expand Up @@ -248,11 +248,11 @@ exports[`ApiAuthTab component renders correctly to match the snapshot 1`] = `
links={
Array [
Object {
"href": "https://documentation.wazuh.com/4.4/office365/index.html",
"href": "https://documentation.wazuh.com/4.5/office365/index.html",
"text": "Using Wazuh to monitor Office 365",
},
Object {
"href": "https://documentation.wazuh.com/4.4/user-manual/reference/ossec-conf/office365-module.html",
"href": "https://documentation.wazuh.com/4.5/user-manual/reference/ossec-conf/office365-module.html",
"text": "Configuration options for the module",
},
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ exports[`GeneralTab component renders correctly to match the snapshot 1`] = `
helpLinks={
Array [
Object {
"href": "https://documentation.wazuh.com/4.4/office365/index.html",
"href": "https://documentation.wazuh.com/4.5/office365/index.html",
"text": "Using Wazuh to monitor Office 365",
},
Object {
"href": "https://documentation.wazuh.com/4.4/user-manual/reference/ossec-conf/office365-module.html",
"href": "https://documentation.wazuh.com/4.5/user-manual/reference/ossec-conf/office365-module.html",
"text": "Configuration options for the module",
},
]
Expand All @@ -78,11 +78,11 @@ exports[`GeneralTab component renders correctly to match the snapshot 1`] = `
help={
Array [
Object {
"href": "https://documentation.wazuh.com/4.4/office365/index.html",
"href": "https://documentation.wazuh.com/4.5/office365/index.html",
"text": "Using Wazuh to monitor Office 365",
},
Object {
"href": "https://documentation.wazuh.com/4.4/user-manual/reference/ossec-conf/office365-module.html",
"href": "https://documentation.wazuh.com/4.5/user-manual/reference/ossec-conf/office365-module.html",
"text": "Configuration options for the module",
},
]
Expand Down Expand Up @@ -259,11 +259,11 @@ exports[`GeneralTab component renders correctly to match the snapshot 1`] = `
links={
Array [
Object {
"href": "https://documentation.wazuh.com/4.4/office365/index.html",
"href": "https://documentation.wazuh.com/4.5/office365/index.html",
"text": "Using Wazuh to monitor Office 365",
},
Object {
"href": "https://documentation.wazuh.com/4.4/user-manual/reference/ossec-conf/office365-module.html",
"href": "https://documentation.wazuh.com/4.5/user-manual/reference/ossec-conf/office365-module.html",
"text": "Configuration options for the module",
},
]
Expand Down