Skip to content

Commit

Permalink
empty state card updates. change add data to add integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
snide committed Oct 14, 2021
1 parent 171f889 commit ac836c4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/core/public/chrome/ui/header/collapsible_nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export function CollapsibleNav({
iconType="plusInCircleFilled"
>
{i18n.translate('core.ui.primaryNav.addData', {
defaultMessage: 'Add data',
defaultMessage: 'Add integrations',
})}
</EuiButton>
</EuiCollapsibleNavGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const AddData: FC<Props> = ({ addBasePath, application, isDarkMode }) =>
<h2 id="homDataAdd__title">
<FormattedMessage
id="home.addData.sectionTitle"
defaultMessage="Get started by adding your data"
defaultMessage="Get started by adding an integration"
/>
</h2>
</EuiTitle>
Expand All @@ -70,16 +70,16 @@ export const AddData: FC<Props> = ({ addBasePath, application, isDarkMode }) =>
<EuiButton
data-test-subj="homeAddData"
fill
href={addBasePath('/app/home#/tutorial_directory')}
href={addBasePath('/app/integrations/browse')}
iconType="plusInCircle"
onClick={(event: MouseEvent) => {
trackUiMetric(METRIC_TYPE.CLICK, 'home_tutorial_directory');
createAppNavigationHandler('/app/home#/tutorial_directory')(event);
createAppNavigationHandler('/app/integrations/browse')(event);
}}
>
<FormattedMessage
id="home.addData.addDataButtonLabel"
defaultMessage="Add your data"
defaultMessage="Add integrations"
/>
</EuiButton>
</RedirectAppLinks>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,16 @@ export const Overview: FC<Props> = ({ newsFetchResult, solutions, features }) =>
}),
logo: 'logoKibana',
actions: {
beats: {
href: addBasePath(`home#/tutorial_directory`),
elasticAgent: {
category: 'security',

This comment has been minimized.

Copy link
@cchaos

cchaos Oct 14, 2021

Contributor

@snide If you just leave off a category (which security doesn't belong on this use), you don't need to provide an href at all. The default is just to browse all.

This comment has been minimized.

Copy link
@snide

snide Oct 14, 2021

Author Contributor

TY for catching my copy/pasta. Enjoy your drinks later today.

title: i18n.translate('kibanaOverview.noDataConfig.title', {
defaultMessage: 'Add an integration',
}),
description: i18n.translate('kibanaOverview.noDataConfig.description', {
defaultMessage:
'Use Elastic Agent or Beats to collect data and build out Analytics solutions.',
}),
href: addBasePath(`/app/integrations/browse`),
},
},
docsLink: docLinks.links.kibana,
Expand Down

0 comments on commit ac836c4

Please sign in to comment.