From 5ec317e512a487094daa98a052d31a14b4efe929 Mon Sep 17 00:00:00 2001 From: Joshua Rodriguez Date: Tue, 9 Apr 2024 07:25:36 -0700 Subject: [PATCH] Layout and icon color fixes --- .../cws/test/integration/ui/WebTestIT.java | 7 +- cws-ui/src/main/webapp/css/dashboard.css | 7 +- .../main/webapp/images/checklist_light.svg | 7 ++ cws-ui/src/main/webapp/images/save_light.svg | 5 ++ cws-ui/src/main/webapp/images/trash_red.svg | 4 ++ .../main/webapp/images/waterfall_light.svg | 11 +++ install/cws-ui/configuration.ftl | 1 + install/cws-ui/deployments.ftl | 8 +-- install/cws-ui/documentation.ftl | 1 + install/cws-ui/initiators-table.ftl | 6 +- install/cws-ui/initiators.ftl | 8 +-- install/cws-ui/logs.ftl | 1 + install/cws-ui/processes.ftl | 71 ++++++++++--------- install/cws-ui/snippets.ftl | 3 + install/cws-ui/summary.ftl | 1 + install/cws-ui/workers.ftl | 1 + 16 files changed, 86 insertions(+), 56 deletions(-) create mode 100644 cws-ui/src/main/webapp/images/checklist_light.svg create mode 100644 cws-ui/src/main/webapp/images/save_light.svg create mode 100644 cws-ui/src/main/webapp/images/trash_red.svg create mode 100644 cws-ui/src/main/webapp/images/waterfall_light.svg diff --git a/cws-test/src/test/java/jpl/cws/test/integration/ui/WebTestIT.java b/cws-test/src/test/java/jpl/cws/test/integration/ui/WebTestIT.java index a0214600..8cbb5953 100644 --- a/cws-test/src/test/java/jpl/cws/test/integration/ui/WebTestIT.java +++ b/cws-test/src/test/java/jpl/cws/test/integration/ui/WebTestIT.java @@ -281,12 +281,7 @@ public void runGroovyTest() { waitForElementXPath("//a[contains(text(),'History')]"); WebElement historyButton = driver.findElement(By.xpath("//a[contains(text(),'History')]")); js.executeScript("arguments[0].scrollIntoViewIfNeeded();", historyButton); - - try { - File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); - // Now you can do whatever you need to do with it, for example copy somewhere - FileUtils.copyFile(scrFile, new File("/tmp/groovy_button.png")); - } catch(IOException e) {} + historyButton.click(); sleep(1000); diff --git a/cws-ui/src/main/webapp/css/dashboard.css b/cws-ui/src/main/webapp/css/dashboard.css index 3f7bbab6..0561ff32 100644 --- a/cws-ui/src/main/webapp/css/dashboard.css +++ b/cws-ui/src/main/webapp/css/dashboard.css @@ -425,12 +425,11 @@ a.nav-link img { } .main-content { - margin-top: 12px; margin-left: 12px; - margin-top: 13px; + margin-top: 50px; position: absolute; - left: 75px; - width: calc(100% - 100px); + left: 125px; + width: calc(100% - 155px); } :target { diff --git a/cws-ui/src/main/webapp/images/checklist_light.svg b/cws-ui/src/main/webapp/images/checklist_light.svg new file mode 100644 index 00000000..5f18f05c --- /dev/null +++ b/cws-ui/src/main/webapp/images/checklist_light.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/cws-ui/src/main/webapp/images/save_light.svg b/cws-ui/src/main/webapp/images/save_light.svg new file mode 100644 index 00000000..0de2ce13 --- /dev/null +++ b/cws-ui/src/main/webapp/images/save_light.svg @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/cws-ui/src/main/webapp/images/trash_red.svg b/cws-ui/src/main/webapp/images/trash_red.svg new file mode 100644 index 00000000..b59c5655 --- /dev/null +++ b/cws-ui/src/main/webapp/images/trash_red.svg @@ -0,0 +1,4 @@ + + + + diff --git a/cws-ui/src/main/webapp/images/waterfall_light.svg b/cws-ui/src/main/webapp/images/waterfall_light.svg new file mode 100644 index 00000000..ad32f1cc --- /dev/null +++ b/cws-ui/src/main/webapp/images/waterfall_light.svg @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file diff --git a/install/cws-ui/configuration.ftl b/install/cws-ui/configuration.ftl index 93d29805..9c37523e 100755 --- a/install/cws-ui/configuration.ftl +++ b/install/cws-ui/configuration.ftl @@ -5,6 +5,7 @@ + diff --git a/install/cws-ui/deployments.ftl b/install/cws-ui/deployments.ftl index 27859ced..6f618d4f 100644 --- a/install/cws-ui/deployments.ftl +++ b/install/cws-ui/deployments.ftl @@ -410,19 +410,19 @@ var returnVal = `
`; if (data.suspended == "true") { returnVal += `` - + `` + ``; } else { returnVal += `` - + ``; } returnVal += `` - + `` + + `` + `` - + ``; returnVal += `
`; diff --git a/install/cws-ui/documentation.ftl b/install/cws-ui/documentation.ftl index e49ab939..14f3342c 100644 --- a/install/cws-ui/documentation.ftl +++ b/install/cws-ui/documentation.ftl @@ -5,6 +5,7 @@ + diff --git a/install/cws-ui/initiators-table.ftl b/install/cws-ui/initiators-table.ftl index 4714697a..c78ada16 100644 --- a/install/cws-ui/initiators-table.ftl +++ b/install/cws-ui/initiators-table.ftl @@ -19,9 +19,9 @@ -
- - +
+ +
diff --git a/install/cws-ui/initiators.ftl b/install/cws-ui/initiators.ftl index 4a75e8d9..ff73050e 100644 --- a/install/cws-ui/initiators.ftl +++ b/install/cws-ui/initiators.ftl @@ -8,9 +8,9 @@ - +