Skip to content

Commit

Permalink
Commented out route and links related to viewing job monitoring dashb…
Browse files Browse the repository at this point in the history
…oard. Also renamed and moved CSS class needed by Health Dashboard to _Grid.scss file and updated references to CSS class.
  • Loading branch information
anilnatha committed Aug 12, 2024
1 parent 795c57f commit 3bc61e5
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 16 deletions.
6 changes: 3 additions & 3 deletions src/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {

import Home from "./routes/home";
import HealthDashboard from "./routes/health-dashboard";
import JobMonitoring from "./routes/jobs/monitoring";
//import JobMonitoring from "./routes/jobs/monitoring";
//import NewJob from "./routes/jobs/new";

import Navbar from "./components/Navbar"
Expand Down Expand Up @@ -71,9 +71,9 @@ function Root() {
}
{/*<Route path="/applications/catalog" element={<WebView url={Config.ads.url} />} />*/}
<Route path="/health-dashboard" element={<HealthDashboard />} />
<Route path="/jobs/monitoring" element={<JobMonitoring />} />
{/*<Route path="/jobs/monitoring" element={<JobMonitoring />} />
<Route path="/jobs/monitoring/:jobid_param" element={<JobMonitoring />} />
{/*<Route path="/jobs/new" element={<NewJob />} />*/}
<Route path="/jobs/new" element={<NewJob />} />*/}
{
/* Add routes for job execution forms */
processes.map( (item) => {
Expand Down
8 changes: 4 additions & 4 deletions src/components/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ export default function Navbar() {
<MenuItem>
<NavLink to="/">Home</NavLink>
</MenuItem>
{/* <MenuItem>
<MenuItem>
<NavLink to="/jobs/monitoring">Job Monitoring</NavLink>
</MenuItem>
{/* <MenuItem>
<NavLink to="/jobs/new">Create New Job</NavLink>
</MenuItem> */}
<MenuItem>
Expand Down Expand Up @@ -148,10 +148,10 @@ export default function Navbar() {
<MenuItem>
<NavLink to="/">Home</NavLink>
</MenuItem>
{/* <MenuItem>
<MenuItem>
<NavLink to="/jobs/monitoring">Job Monitoring</NavLink>
</MenuItem>
{/* <MenuItem>
<NavLink to="/jobs/new">Create New Job</NavLink>
</MenuItem> */}
<MenuItem>
Expand Down Expand Up @@ -219,8 +219,8 @@ export default function Navbar() {
</NavbarBreakpoint>
<NavbarMobileMenu>
<NavLink to="/" className="st-react-navbar-link"><IconHome />{' '}Home</NavLink>
<NavLink to="/jobs/monitoring" className="st-react-navbar-link">{' '}Job Monitoring</NavLink>
{/* <NavLink to="/jobs/new" className="st-react-navbar-link">{' '}Create New Job</NavLink> */}
{/*<NavLink to="/jobs/monitoring" className="st-react-navbar-link">{' '}Job Monitoring</NavLink>
<NavLink to="/jobs/new" className="st-react-navbar-link">{' '}Create New Job</NavLink> */}
<NavLink to="/health-dashboard" className="st-react-navbar-link">{' '}Health Dashboard</NavLink>
{
healthState.items.map( (service, index) => {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/health-dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function HealthDashboard() {
<DocumentMeta title="Health Dashboard" description="Health Dashboard" />
<div className="main-view">
<h1>Health Dashboard</h1>
<div className="ag-theme-stellar data-grid-container">
<div className="ag-theme-stellar unity-aggrid-container">
<AgGridReact
rowData={healthState.items} // Row Data for Rows
columnDefs={columnDefs} // Column Defs for Columns
Expand Down
7 changes: 0 additions & 7 deletions src/routes/jobs/monitoring/index.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
.data-grid-container {
width: 100%;
height: 500px;
padding-top: 24px;
overflow: hidden;
}

.job-detail-item {
padding-bottom: 8px;
word-wrap: break-word;
Expand Down
2 changes: 1 addition & 1 deletion src/routes/jobs/monitoring/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function JobMonitoring() {
<div className='button-bar'>
<Button onClick={() => navigate("/jobs/new")}>Run New Job</Button>
</div>
<div className="ag-theme-stellar data-grid-container">
<div className="ag-theme-stellar unity-aggrid-container">
<AgGridReact
rowData={rowData} // Row Data for Rows
columnDefs={columnDefs} // Column Defs for Columns
Expand Down
8 changes: 8 additions & 0 deletions src/styles/components/_Grid.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@

.unity-aggrid-container {
width: 100%;
height: 500px;
padding-top: 24px;
overflow: hidden;
}

.unity-aggrid-health-status {
display: flex;
justify-content: space-between;
Expand Down

0 comments on commit 3bc61e5

Please sign in to comment.