-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
8,171 additions
and
3,202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
import React from 'react'; | ||
import { navigation, NerdGraphQuery, SectionMessage } from 'nr1'; | ||
|
||
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'; | ||
import { | ||
OverviewPanel, | ||
APMPanel, | ||
BrowserPanel, | ||
SynthPanel, | ||
InfraPanel, | ||
KubernetesPanel, | ||
InsightsPanel, | ||
LogPanel, | ||
ProgramPanel, | ||
MobilePanel, | ||
WorkloadPanel, | ||
SLMPanel, | ||
NPMPanel, | ||
} from 'maturity-products/dist/entities'; | ||
import { | ||
ApplicationCtxProvider, | ||
MaturityScoreCtxProvider, | ||
} from 'maturity-products/dist/contexts'; | ||
|
||
export default class MaturityApplication extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
} | ||
|
||
render() { | ||
return ( | ||
<> | ||
<SectionMessage | ||
type={SectionMessage.TYPE.WARNING} | ||
title="You are on the old version of account maturity" | ||
description="No further support will be provided on this version." | ||
actions={[ | ||
{ | ||
label: 'Launch the new version', | ||
onClick: () => navigation.openNerdlet({ id: 'maturity-nerdlet' }), | ||
}, | ||
]} | ||
/> | ||
<Tabs forceRenderTabPanel> | ||
<TabList> | ||
<Tab>Overview</Tab> | ||
<Tab>APM</Tab> | ||
<Tab>Browser</Tab> | ||
<Tab>Synthetics</Tab> | ||
<Tab>Infrastructure</Tab> | ||
<Tab>Kubernetes</Tab> | ||
<Tab>Insights</Tab> | ||
<Tab>Log</Tab> | ||
<Tab>Programmability</Tab> | ||
<Tab>Mobile</Tab> | ||
<Tab>Workloads</Tab> | ||
<Tab>SLM</Tab> | ||
<Tab>NPM</Tab> | ||
</TabList> | ||
<ApplicationCtxProvider nr1graph={NerdGraphQuery}> | ||
<MaturityScoreCtxProvider> | ||
<TabPanel> | ||
<OverviewPanel /> | ||
</TabPanel> | ||
<TabPanel> | ||
<APMPanel /> | ||
</TabPanel> | ||
<TabPanel> | ||
<BrowserPanel /> | ||
</TabPanel> | ||
<TabPanel> | ||
<SynthPanel /> | ||
</TabPanel> | ||
<TabPanel> | ||
<InfraPanel /> | ||
</TabPanel> | ||
<TabPanel> | ||
<KubernetesPanel /> | ||
</TabPanel> | ||
<TabPanel> | ||
<InsightsPanel /> | ||
</TabPanel> | ||
<TabPanel> | ||
<LogPanel /> | ||
</TabPanel> | ||
<TabPanel> | ||
<ProgramPanel /> | ||
</TabPanel> | ||
<TabPanel> | ||
<MobilePanel /> | ||
</TabPanel> | ||
<TabPanel> | ||
<WorkloadPanel /> | ||
</TabPanel> | ||
<TabPanel> | ||
<SLMPanel /> | ||
</TabPanel> | ||
<TabPanel> | ||
<NPMPanel /> | ||
</TabPanel> | ||
</MaturityScoreCtxProvider> | ||
</ApplicationCtxProvider> | ||
</Tabs> | ||
</> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"schemaType": "NERDLET", | ||
"id": "old-maturity-nerdlet", | ||
"description": "Evaluates maturity score for New Relic Products", | ||
"displayName": "Account Maturity" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@import url('https://unpkg.com/react-table-v6@latest/react-table.css'); | ||
@import '~react-tabs/style/react-tabs.css'; | ||
|
||
|
Oops, something went wrong.