File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,10 @@ function NavBar() {
96
96
name : "Nightly Dashboard" ,
97
97
href : "/nightlies" ,
98
98
} ,
99
+ {
100
+ name : "Cancelled Jobs" ,
101
+ href : "/job_cancellation_dashboard" ,
102
+ } ,
99
103
{
100
104
name : "Failures Metric" ,
101
105
href : "/reliability" ,
Original file line number Diff line number Diff line change
1
+ import Head from "next/head" ;
2
+ import React from "react" ;
3
+ import { useDarkMode } from "../lib/DarkModeContext" ;
4
+
5
+ const JobCancellationDashboard : React . FC = ( ) => {
6
+ const { themeMode, darkMode } = useDarkMode ( ) ;
7
+
8
+ // Set theme parameter based on dark mode context
9
+ let theme = "light" ;
10
+ if ( themeMode === "system" ) {
11
+ theme = darkMode ? "dark" : "light" ;
12
+ } else {
13
+ theme = themeMode ;
14
+ }
15
+
16
+ const dashboardUrl = `https://disz2yd9jqnwc.cloudfront.net/public-dashboards/c540578db0b741168e1a94e80e21f6f7?theme=${ theme } ` ;
17
+
18
+ return (
19
+ < >
20
+ < Head >
21
+ < title > Job Cancellation Dashboard</ title >
22
+ </ Head >
23
+ < div
24
+ style = { {
25
+ width : "100%" ,
26
+ height : "calc(100vh - 60px)" ,
27
+ overflow : "hidden" ,
28
+ } }
29
+ >
30
+ < iframe
31
+ src = { dashboardUrl }
32
+ width = "100%"
33
+ height = "100%"
34
+ frameBorder = "0"
35
+ allowTransparency = { true }
36
+ />
37
+ </ div >
38
+ </ >
39
+ ) ;
40
+ } ;
41
+
42
+ export default JobCancellationDashboard ;
You can’t perform that action at this time.
0 commit comments