Skip to content
Open
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
60 changes: 60 additions & 0 deletions src/__tests__/__snapshots__/App.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,26 @@ exports[`App CompareResults or CompareOverTime loader Should render an error pag
>
#perfcompare:mozilla.org on Matrix
</a>
.
View the docs at

<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways css-s8q751-MuiTypography-root-MuiLink-root"
href="https://firefox-source-docs.mozilla.org/testing/perfdocs/perfcompare.html"
target="_blank"
>
PerfCompare documentation
</a>
.
View the source code on

<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways css-s8q751-MuiTypography-root-MuiLink-root"
href="https://github.com/mozilla/perfcompare"
target="_blank"
>
GitHub
</a>
.
</div>
</div>
Expand Down Expand Up @@ -316,6 +336,26 @@ exports[`App CompareResults or CompareOverTime loader Should render an error pag
>
#perfcompare:mozilla.org on Matrix
</a>
.
View the docs at

<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways css-s8q751-MuiTypography-root-MuiLink-root"
href="https://firefox-source-docs.mozilla.org/testing/perfdocs/perfcompare.html"
target="_blank"
>
PerfCompare documentation
</a>
.
View the source code on

<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways css-s8q751-MuiTypography-root-MuiLink-root"
href="https://github.com/mozilla/perfcompare"
target="_blank"
>
GitHub
</a>
.
</div>
</div>
Expand Down Expand Up @@ -474,6 +514,26 @@ exports[`App CompareResults or CompareOverTime loader Should render an error pag
>
#perfcompare:mozilla.org on Matrix
</a>
.
View the docs at

<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways css-s8q751-MuiTypography-root-MuiLink-root"
href="https://firefox-source-docs.mozilla.org/testing/perfdocs/perfcompare.html"
target="_blank"
>
PerfCompare documentation
</a>
.
View the source code on

<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways css-s8q751-MuiTypography-root-MuiLink-root"
href="https://github.com/mozilla/perfcompare"
target="_blank"
>
GitHub
</a>
.
</div>
</div>
Expand Down
22 changes: 22 additions & 0 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ const contact: InfoStrings = {
href: Strings.components.contact.href,
};

const docs: InfoStrings = {
text: Strings.components.docs.text,
linkText: Strings.components.docs.linkText,
href: Strings.components.docs.href,
};

const source: InfoStrings = {
text: Strings.components.source.text,
linkText: Strings.components.source.linkText,
href: Strings.components.source.href,
};

type DivProps = React.HTMLProps<HTMLDivElement>;

const AlertContainer = React.forwardRef<HTMLDivElement, DivProps>(
Expand Down Expand Up @@ -178,6 +190,16 @@ function App() {
<Link href={contact.href} target='_blank'>
{contact.linkText}
</Link>
{'. '}
{docs.text}{' '}
<Link href={docs.href} target='_blank'>
{docs.linkText}
</Link>
{'. '}
{source.text}{' '}
<Link href={source.href} target='_blank'>
{source.linkText}
</Link>
.
</div>
</Alert>
Expand Down
10 changes: 10 additions & 0 deletions src/resources/Strings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ export const Strings = {
linkText: '#perfcompare:mozilla.org on Matrix',
href: 'https://matrix.to/#/#perfcompare:mozilla.org',
},
docs: {
text: 'View the docs at',
linkText: 'PerfCompare documentation',
href: 'https://firefox-source-docs.mozilla.org/testing/perfdocs/perfcompare.html',
},
source: {
text: 'View the source code on',
linkText: 'GitHub',
href: 'https://github.com/mozilla/perfcompare',
},
header: {
title: 'PerfCompare',
tagline:
Expand Down