From 8fc327e322d44931d2d59cb958de4cb9d6339490 Mon Sep 17 00:00:00 2001 From: Melvin Johner Date: Wed, 14 Aug 2024 15:58:47 +0200 Subject: [PATCH] feat: table representation improved. made the table rows clickable and removed view buttons on all entity tables. --- .../list/message-header-table.component.html | 15 ++-------- .../message/list/message.component.html | 12 ++------ .../list/scenario-action.component.html | 15 ++-------- .../scenario-actions-table.component.html | 15 ++-------- .../scenario-messages-table.component.html | 13 ++------ .../scenario-parameters-table.component.html | 15 ++-------- .../list/scenario-execution.component.html | 30 ++++++++----------- .../list/scenario-execution.component.scss | 3 -- .../list/scenario-parameter.component.html | 17 ++--------- .../list/test-parameter.component.html | 15 ++-------- .../list/test-result.component.html | 12 ++------ .../app/scenario/list/scenario.component.html | 12 ++------ .../src/main/webapp/content/scss/global.scss | 8 +++++ 13 files changed, 45 insertions(+), 137 deletions(-) diff --git a/simulator-ui/src/main/webapp/app/entities/message-header/list/message-header-table.component.html b/simulator-ui/src/main/webapp/app/entities/message-header/list/message-header-table.component.html index a8f2c0761..905ae8326 100644 --- a/simulator-ui/src/main/webapp/app/entities/message-header/list/message-header-table.component.html +++ b/simulator-ui/src/main/webapp/app/entities/message-header/list/message-header-table.component.html @@ -1,5 +1,5 @@
- +
- - + @@ -55,16 +54,6 @@ -
@@ -38,11 +38,10 @@
{{ messageHeader.headerId }} {{ messageHeader.createdDate | formatMediumDatetime }} {{ messageHeader.lastModifiedDate | formatMediumDatetime }} - -
diff --git a/simulator-ui/src/main/webapp/app/entities/message/list/message.component.html b/simulator-ui/src/main/webapp/app/entities/message/list/message.component.html index f44355324..10f71075a 100644 --- a/simulator-ui/src/main/webapp/app/entities/message/list/message.component.html +++ b/simulator-ui/src/main/webapp/app/entities/message/list/message.component.html @@ -21,7 +21,7 @@

- +
- + @@ -85,7 +85,7 @@

diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-action/list/scenario-action.component.html b/simulator-ui/src/main/webapp/app/entities/scenario-action/list/scenario-action.component.html index 9d1443962..608e843c1 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-action/list/scenario-action.component.html +++ b/simulator-ui/src/main/webapp/app/entities/scenario-action/list/scenario-action.component.html @@ -21,7 +21,7 @@

-

@@ -70,7 +70,7 @@

{{ message.messageId }} {{ message.createdDate | formatMediumDatetime }} {{ message.lastModifiedDate | formatMediumDatetime }} -
+
- - + @@ -72,16 +71,6 @@

}} -

@@ -54,11 +54,10 @@

{{ scenarioAction.actionId }} - -
diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-actions-table.component.html b/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-actions-table.component.html index 2e9abb6ff..c4a5d8a72 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-actions-table.component.html +++ b/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-actions-table.component.html @@ -1,5 +1,5 @@
- +
- - + -
@@ -26,27 +26,16 @@
{{ scenarioAction.actionId }} {{ scenarioAction.name }} {{ scenarioAction.startDate | formatMediumDatetime }} {{ scenarioAction.endDate | formatMediumDatetime }} - -
diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-messages-table.component.html b/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-messages-table.component.html index deecd7726..12128c847 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-messages-table.component.html +++ b/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-messages-table.component.html @@ -1,5 +1,5 @@
- +
- - + @@ -38,7 +37,7 @@ diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-parameters-table.component.html b/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-parameters-table.component.html index c45cb3a10..725fa660e 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-parameters-table.component.html +++ b/simulator-ui/src/main/webapp/app/entities/scenario-execution/detail/scenario-parameters-table.component.html @@ -1,5 +1,5 @@
-
@@ -26,11 +26,10 @@
{{ message.messageId }} {{ message.payload }} {{ message.createdDate | formatMediumDatetime }} -
+
- - + -
@@ -25,26 +25,15 @@
{{ scenarioParameter.parameterId }} {{ scenarioParameter.name }} {{ scenarioParameter.controlType }} {{ scenarioParameter.value }} - -
diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-execution/list/scenario-execution.component.html b/simulator-ui/src/main/webapp/app/entities/scenario-execution/list/scenario-execution.component.html index 5e5b2e8cd..ad33a6c92 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-execution/list/scenario-execution.component.html +++ b/simulator-ui/src/main/webapp/app/entities/scenario-execution/list/scenario-execution.component.html @@ -20,8 +20,9 @@

No Scenario Executions found

-
- +
+
- - - - + @@ -72,13 +71,14 @@

diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-execution/list/scenario-execution.component.scss b/simulator-ui/src/main/webapp/app/entities/scenario-execution/list/scenario-execution.component.scss index c16827f8f..99d435690 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-execution/list/scenario-execution.component.scss +++ b/simulator-ui/src/main/webapp/app/entities/scenario-execution/list/scenario-execution.component.scss @@ -6,7 +6,4 @@ th[jhisortby='errorMessage'] { cursor: default; } - fa-icon { - visibility: hidden; - } } diff --git a/simulator-ui/src/main/webapp/app/entities/scenario-parameter/list/scenario-parameter.component.html b/simulator-ui/src/main/webapp/app/entities/scenario-parameter/list/scenario-parameter.component.html index 6027d920a..5848aa6f2 100644 --- a/simulator-ui/src/main/webapp/app/entities/scenario-parameter/list/scenario-parameter.component.html +++ b/simulator-ui/src/main/webapp/app/entities/scenario-parameter/list/scenario-parameter.component.html @@ -21,7 +21,7 @@

-

@@ -48,23 +49,21 @@

+
Status -
+
Error Message -
{{ scenarioExecution.executionId }} {{ scenarioExecution.startDate | formatMediumDatetime }} {{ scenarioExecution.endDate | formatMediumDatetime }} - {{ - scenarioExecution.testResult?.status ?? 'RUNNING' - }} + {{ + scenarioExecution.testResult?.status ?? 'RUNNING' + }} {{ scenarioExecution.testResult?.errorMessage }} -
+
- - + @@ -80,22 +79,12 @@

-
@@ -66,11 +66,10 @@

{{ scenarioParameter.parameterId }} {{ scenarioParameter.createdDate }} {{ scenarioParameter.lastModifiedDate | formatMediumDatetime }} - - -
diff --git a/simulator-ui/src/main/webapp/app/entities/test-parameter/list/test-parameter.component.html b/simulator-ui/src/main/webapp/app/entities/test-parameter/list/test-parameter.component.html index 40d7e1cae..a77e95c12 100644 --- a/simulator-ui/src/main/webapp/app/entities/test-parameter/list/test-parameter.component.html +++ b/simulator-ui/src/main/webapp/app/entities/test-parameter/list/test-parameter.component.html @@ -21,7 +21,7 @@

- +
- - + @@ -66,16 +65,6 @@

-
@@ -54,11 +54,10 @@

{{ testParameter.key }} {{ testParameter.value }} {{ testParameter.createdDate | formatMediumDatetime }} {{ testParameter.testResult.id }} - -
diff --git a/simulator-ui/src/main/webapp/app/entities/test-result/list/test-result.component.html b/simulator-ui/src/main/webapp/app/entities/test-result/list/test-result.component.html index e850ca92f..6f25a2da7 100644 --- a/simulator-ui/src/main/webapp/app/entities/test-result/list/test-result.component.html +++ b/simulator-ui/src/main/webapp/app/entities/test-result/list/test-result.component.html @@ -21,7 +21,7 @@

- +
- + @@ -99,7 +99,7 @@

diff --git a/simulator-ui/src/main/webapp/app/scenario/list/scenario.component.html b/simulator-ui/src/main/webapp/app/scenario/list/scenario.component.html index 38e7db413..f339ac552 100644 --- a/simulator-ui/src/main/webapp/app/scenario/list/scenario.component.html +++ b/simulator-ui/src/main/webapp/app/scenario/list/scenario.component.html @@ -49,7 +49,7 @@

-

@@ -82,7 +82,7 @@

{{ testResult.id }} {{ testResult.createdDate | formatMediumDatetime }} {{ testResult.lastModifiedDate | formatMediumDatetime }} -
+
- + diff --git a/simulator-ui/src/main/webapp/content/scss/global.scss b/simulator-ui/src/main/webapp/content/scss/global.scss index 55b81f8d6..589288213 100644 --- a/simulator-ui/src/main/webapp/content/scss/global.scss +++ b/simulator-ui/src/main/webapp/content/scss/global.scss @@ -20,6 +20,14 @@ a:hover { cursor: pointer; } +.clickable-row{ + /* make sure browsers use the pointer cursor for clickable rows, even with no href */ + :hover { + cursor: pointer; + } +} + + .dropdown-item:hover { color: $dropdown-link-hover-color; }
@@ -68,13 +68,13 @@

{{ scenario.name }} {{ scenario.type }} -