Skip to content

Commit 4a0e1fc

Browse files
authored
feat(reports): add page for Automated Reports (#381)
1 parent f1b17de commit 4a0e1fc

File tree

4 files changed

+46
-0
lines changed

4 files changed

+46
-0
lines changed

console-extensions.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@
3939
"component": { "$codeRef": "AutomatedRulesPage" }
4040
}
4141
},
42+
{
43+
"type": "console.page/route",
44+
"properties": {
45+
"exact": true,
46+
"path": "/cryostat/reports",
47+
"component": { "$codeRef": "ReportsPage" }
48+
}
49+
},
4250
{
4351
"type": "console.page/route",
4452
"properties": {
@@ -179,6 +187,16 @@
179187
"section": "cryostat-section"
180188
}
181189
},
190+
{
191+
"type": "console.navigation/href",
192+
"properties": {
193+
"id": "rules",
194+
"name": "%plugin__cryostat-plugin~Navigation.Reports%",
195+
"href": "/cryostat/reports",
196+
"perspective": "admin",
197+
"section": "cryostat-section"
198+
}
199+
},
182200
{
183201
"type": "console.navigation/href",
184202
"properties": {

locales/en/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"Navigation.Dashboard": "Dashboard",
55
"Navigation.Topology": "Topology",
66
"Navigation.Automated_Rules": "Automated Rules",
7+
"Navigation.Reports": "Reports",
78
"Navigation.Recordings": "Recordings",
89
"Navigation.Archives": "Archives",
910
"Navigation.Events": "Events",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
"TopologyPage": "./openshift/pages/TopologyPage",
122122
"CreateTargetPage": "./openshift/pages/CreateTargetPage",
123123
"AutomatedRulesPage": "./openshift/pages/AutomatedRulesPage",
124+
"ReportsPage": "./openshift/pages/ReportsPage",
124125
"CreateRulesPage": "./openshift/pages/CreateRulesPage",
125126
"RecordingsPage": "./openshift/pages/RecordingsPage",
126127
"CreateRecordingPage": "./openshift/pages/CreateRecordingPage",
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright The Cryostat Authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
import Reports from '@app/Reports/Reports';
17+
import { CryostatContainer } from '@console-plugin/components/CryostatContainer';
18+
import '@app/app.css';
19+
20+
export default function ReportsPage() {
21+
return (
22+
<CryostatContainer>
23+
<Reports />
24+
</CryostatContainer>
25+
);
26+
}

0 commit comments

Comments
 (0)