This is an automated email from the ASF dual-hosted git repository.

agrove pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-ballista.git


The following commit(s) were added to refs/heads/master by this push:
     new 5ec49a44 UI code cleanup (#291)
5ec49a44 is described below

commit 5ec49a4473dda832ba4736ec7d96dce4a152402d
Author: Ken Suenobu <[email protected]>
AuthorDate: Wed Sep 28 19:11:44 2022 -0600

    UI code cleanup (#291)
    
    * cleaned up warnings in UI
    
    * cleanup and prettier
    
    * updated to make scheduler unavailable text red, added div
---
 ballista/ui/scheduler/src/App.tsx                    | 2 +-
 ballista/ui/scheduler/src/components/QueriesList.tsx | 4 ++--
 ballista/ui/scheduler/src/components/Summary.tsx     | 8 +++++++-
 3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/ballista/ui/scheduler/src/App.tsx 
b/ballista/ui/scheduler/src/App.tsx
index 374104ed..4ff9cbc1 100644
--- a/ballista/ui/scheduler/src/App.tsx
+++ b/ballista/ui/scheduler/src/App.tsx
@@ -19,7 +19,7 @@ import React, { useState, useEffect } from "react";
 import { Box, Grid, VStack } from "@chakra-ui/react";
 import { Header } from "./components/Header";
 import { Summary } from "./components/Summary";
-import { QueriesList, Query, QueryStatus } from "./components/QueriesList";
+import { QueriesList } from "./components/QueriesList";
 import { Footer } from "./components/Footer";
 
 import "./App.css";
diff --git a/ballista/ui/scheduler/src/components/QueriesList.tsx 
b/ballista/ui/scheduler/src/components/QueriesList.tsx
index 8082f1b2..24069642 100644
--- a/ballista/ui/scheduler/src/components/QueriesList.tsx
+++ b/ballista/ui/scheduler/src/components/QueriesList.tsx
@@ -26,9 +26,9 @@ import {
   Flex,
   Box,
 } from "@chakra-ui/react";
-import { Column, DateCell, DataTable, LinkCell } from "./DataTable";
+import { Column, DataTable, LinkCell } from "./DataTable";
 import { FaStop } from "react-icons/fa";
-import { GrDocumentDownload, GrPowerReset } from "react-icons/gr";
+import { GrDocumentDownload } from "react-icons/gr";
 import fileDownload from "js-file-download";
 
 export enum QueryStatus {
diff --git a/ballista/ui/scheduler/src/components/Summary.tsx 
b/ballista/ui/scheduler/src/components/Summary.tsx
index 9fe1a232..cb334bb3 100644
--- a/ballista/ui/scheduler/src/components/Summary.tsx
+++ b/ballista/ui/scheduler/src/components/Summary.tsx
@@ -46,7 +46,13 @@ export const Summary: React.FunctionComponent<SummaryProps> 
= ({
   schedulerState,
 }) => {
   if (!schedulerState) {
-    return <Text>Scheduler isn't running</Text>;
+    return (
+      <div>
+        <Text color={"red"}>
+          Scheduler unavailable: Server may be down or unreachable
+        </Text>
+      </div>
+    );
   }
 
   return (

Reply via email to