Skip to content

Commit

Permalink
Merge pull request #1489 from elaguerta/rm-vis-syn-tabs
Browse files Browse the repository at this point in the history
Delete vis and syn tabs from ObservabilityPackDetails.js
  • Loading branch information
aswanson-nr authored Jul 21, 2021
2 parents efdfb78 + 250f271 commit 02ad46c
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions src/templates/ObservabilityPackDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,36 +115,6 @@ const renderAlerts = (pack) => {
);
};

const renderSynthetics = (pack) => {
return (
<Intro
css={css`
margin-bottom: 16px;
`}
>
{pack.name} observability pack includes{' '}
{pluralize('Synthetics check', pack.synthetics?.length ?? 0, true)}. These
checks will run automatically to simulate user traffic and ensure your
site or API endpoint is not only available, but fully functional.
</Intro>
);
};

const renderVisualizations = (pack) => {
return (
<Intro
css={css`
margin-bottom: 16px;
`}
>
{pack.name} observability pack includes{' '}
{pluralize('visualization', pack.visualizations?.length ?? 0, true)}.
These charts have been customized to represent data in a way that a
standard dashboard isn’t able to, so you can monitor what’s essential.
</Intro>
);
};

const emptyStateContent = (pack, tabName) => {
return (
<div
Expand Down Expand Up @@ -260,15 +230,6 @@ const ObservabilityPackDetails = ({ data, location }) => {
<Tabs.BarItem id="alerts" count={pack.alerts?.length ?? 0}>
Alerts
</Tabs.BarItem>
<Tabs.BarItem id="synthetics" count={pack.synthetics?.length ?? 0}>
Synthetics
</Tabs.BarItem>
<Tabs.BarItem
id="visualizations"
count={pack.visualizations?.length ?? 0}
>
Visualizations
</Tabs.BarItem>
</Tabs.Bar>
<Layout.Content>
<Tabs.Pages>
Expand All @@ -289,16 +250,6 @@ const ObservabilityPackDetails = ({ data, location }) => {
? renderAlerts(pack)
: emptyStateContent(pack, 'alerts')}
</Tabs.Page>
<Tabs.Page id="synthetics">
{pack.synthetics
? renderSynthetics(pack)
: emptyStateContent(pack, 'Synthetics checks')}
</Tabs.Page>
<Tabs.Page id="visualizations">
{pack.visualizations
? renderVisualizations(pack)
: emptyStateContent(pack, 'visualizations')}
</Tabs.Page>
</Tabs.Pages>
</Layout.Content>
<Layout.PageTools
Expand Down

0 comments on commit 02ad46c

Please sign in to comment.