Skip to content

Commit

Permalink
fix: replace reference to Wazuh dashboards by Wazuh dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Desvelao committed Nov 15, 2024
1 parent 10b3fd6 commit a1ac954
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/core/public/chrome/ui/header/home_icon.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('Home icon,', () => {
expect(icon.prop('data-test-subj')).toEqual('homeIcon');
expect(icon.prop('type')).toEqual(props.logos.Mark.url);
expect(icon.prop('size')).toEqual('m');
expect(icon.prop('title')).toEqual('Wazuh dashboards home');
expect(icon.prop('title')).toEqual('Wazuh dashboard home');
});

it('uses the home icon when header is expanded', () => {
Expand All @@ -44,7 +44,7 @@ describe('Home icon,', () => {
expect(icon.prop('data-test-subj')).toEqual('homeIcon');
expect(icon.prop('type')).toEqual(props.logos.Mark.url);
expect(icon.prop('size')).toEqual('m');
expect(icon.prop('title')).toEqual('Wazuh dashboards home');
expect(icon.prop('title')).toEqual('Wazuh dashboard home');

expect(component).toMatchSnapshot();
});
Expand All @@ -61,7 +61,7 @@ describe('Home icon,', () => {
expect(icon.prop('data-test-subj')).toEqual('defaultMark');
expect(icon.prop('type')).toEqual(props.logos.Mark.url);
expect(icon.prop('size')).toEqual('l');
expect(icon.prop('title')).toEqual('Wazuh dashboards home');
expect(icon.prop('title')).toEqual('Wazuh dashboard home');

expect(component).toMatchSnapshot();
});
Expand Down
6 changes: 3 additions & 3 deletions src/core/public/chrome/ui/header/home_icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ interface Props {
* Use branding configurations to render the header mark on the nav bar.
*/
export const HomeIcon = ({ branding, logos }: Props) => {
// Removed prop unnecessary useExpandedHeader Wazuh dashboards
const { applicationTitle = 'Wazuh dashboards', useExpandedHeader } = branding;
// Removed prop unnecessary useExpandedHeader Wazuh dashboard
const { applicationTitle = 'Wazuh dashboard', useExpandedHeader } = branding;

const { url: markURL, type: markType } = logos.Mark;

let testSubj = `${markType}Mark`;
// Marks look better at the large size
let markIconSize: IconSize = 'l';

// If no custom branded mark was set, use `home` icon Wazuh dashboards
// If no custom branded mark was set, use `home` icon Wazuh dashboard
if (markType !== 'custom' && useExpandedHeader) {
testSubj = 'homeIcon';
// Home icon should be medium to fit in with other icons
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ describe('home', () => {

expect(component).toMatchSnapshot();
});
// Skip test because it is not used in Wazuh dashboards
// Skip test because it is not used in Wazuh dashboard
test.skip('stores skip welcome setting if skipped', async () => {
defaultProps.localStorage.getItem = sinon.spy(() => 'true');

Expand All @@ -318,7 +318,7 @@ describe('home', () => {

expect(component).toMatchSnapshot();
});
// Skip test because it is not used in Wazuh dashboards
// Skip test because it is not used in Wazuh dashboard
test.skip('should show the normal home page if loading fails', async () => {
defaultProps.localStorage.getItem = sinon.spy(() => 'true');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ export const EmptyState = ({
<h2>
<FormattedMessage
id="indexPatternManagement.createIndexPattern.emptyState.noDataTitle"
defaultMessage="Ready to try OpenSearch Dashboards? First, you need data."
defaultMessage="Ready to try {appName}? First, you need data."
values={{
appName: 'Wazuh dashboard',
}}
/>
</h2>
</EuiTitle>
Expand Down

0 comments on commit a1ac954

Please sign in to comment.