Skip to content

Commit

Permalink
Merge pull request #1478 from newrelic/1394_add_final_copy_for_intro_…
Browse files Browse the repository at this point in the history
…text

Add final copy for dashboards, alerts, synthetics
  • Loading branch information
moonlight-komorebi authored Jul 15, 2021
2 parents 44dae2c + 6ca53f0 commit f6e76e2
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 65 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"lodash.get": "^4.4.2",
"node-fetch": "^2.6.1",
"node-sass": "^4.14.1",
"pluralize": "^8.0.0",
"prism-react-renderer": "^1.1.1",
"prismjs": "^1.21.0",
"prop-types": "^15.7.2",
Expand Down
107 changes: 42 additions & 65 deletions src/templates/ObservabilityPackDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import InstallButton from '../components/InstallButton';
import ImageSlider from '../components/ImageSlider';
import getPackUrl from '../utils/get-pack-url';
import Markdown from '../components/Markdown';
import pluralize from 'pluralize';

const allowedElements = [
'h1',
Expand Down Expand Up @@ -145,31 +146,11 @@ const ObservabilityPackDetails = ({ data, location }) => {
margin-bottom: 16px;
`}
>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute
irure dolor in reprehenderit in voluptate velit esse cillum
dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.
Before you install the {pack.name} observability pack, make
sure you meet the requirements documented below.
</Intro>
</Tabs.Page>
<Tabs.Page id="dashboards">
<Intro
css={css`
margin-bottom: 16px;
`}
>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute
irure dolor in reprehenderit in voluptate velit esse cillum
dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.
</Intro>
{pack.dashboards?.map((dashboard) => (
<>
<h3>{dashboard.name}</h3>
Expand All @@ -182,48 +163,46 @@ const ObservabilityPackDetails = ({ data, location }) => {
)}
</>
))}
<Intro
css={css`
margin-bottom: 16px;
`}
>
{pack.name} observability pack contains{' '}
{pluralize('dashboard', pack.dashboards?.length ?? 0, true)}.
These interactive visualizations let you easily explore your
data, understand context, and resolve problems faster.
</Intro>
</Tabs.Page>
<Tabs.Page id="alerts">
<Intro
css={css`
margin-bottom: 16px;
`}
>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute
irure dolor in reprehenderit in voluptate velit esse cillum
dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.
{pack.name} observability pack contains{' '}
{pluralize('alert', pack.alerts?.length ?? 0, true)}. These
alerts detect changes in key performance metrics. Integrate
these alerts with your favorite tools (like Slack, PagerDuty,
etc.) and New Relic will let you know when something needs
your attention.
</Intro>
{pack.alerts?.map((alert) => (
<>
<h3>{alert.name}</h3>
{alert.description && (
<>
<h4>Description</h4>
<p>{alert.description}</p>
</>
)}
</>
))}
</Tabs.Page>
<Tabs.Page id="synthetics">
<Intro
css={css`
margin-bottom: 16px;
`}
>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute
irure dolor in reprehenderit in voluptate velit esse cillum
dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.
{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>
</Tabs.Page>
<Tabs.Page id="visualizations">
Expand All @@ -232,14 +211,15 @@ const ObservabilityPackDetails = ({ data, location }) => {
margin-bottom: 16px;
`}
>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute
irure dolor in reprehenderit in voluptate velit esse cillum
dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.
{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>
</Tabs.Page>
<Tabs.Page id="nerdpacks">
Expand All @@ -248,14 +228,11 @@ const ObservabilityPackDetails = ({ data, location }) => {
margin-bottom: 16px;
`}
>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute
irure dolor in reprehenderit in voluptate velit esse cillum
dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.
Nerdpacks are custom applications that extend the monitoring
capabilities of the New Relic One platform. {pack.name}
observability pack includes{' '}
{pluralize('Nerdpack', pack.nerdpacks?.length ?? 0, true)} to
make sure you’re monitoring what matters.
</Intro>
</Tabs.Page>
</Tabs.Pages>
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15120,6 +15120,11 @@ pluralize@^7.0.0:
resolved "https://registry.npmjs.org/pluralize/-/pluralize-7.0.0.tgz"
integrity sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow==

pluralize@^8.0.0:
version "8.0.0"
resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-8.0.0.tgz#1a6fa16a38d12a1901e0320fa017051c539ce3b1"
integrity sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==

pngjs@^3.0.0, pngjs@^3.3.3:
version "3.4.0"
resolved "https://registry.npmjs.org/pngjs/-/pngjs-3.4.0.tgz"
Expand Down

0 comments on commit f6e76e2

Please sign in to comment.