From 9bed93383418e23fdcc007b2e64d555508501abb Mon Sep 17 00:00:00 2001 From: Esa Puttonen Date: Sat, 6 Feb 2021 11:11:05 +0200 Subject: [PATCH] Fix review findings --- .../src/app/workflow/workflowInfo.html | 131 +++++++----------- .../src/app/workflow/workflowInfo.js | 1 - nflow-explorer/src/config.js | 4 - nflow-explorer/src/styles/main.scss | 14 +- 4 files changed, 62 insertions(+), 88 deletions(-) diff --git a/nflow-explorer/src/app/workflow/workflowInfo.html b/nflow-explorer/src/app/workflow/workflowInfo.html index 74643a043..46a25174e 100644 --- a/nflow-explorer/src/app/workflow/workflowInfo.html +++ b/nflow-explorer/src/app/workflow/workflowInfo.html @@ -1,80 +1,55 @@
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Parent workflow{{ctrl.parentWorkflow.type}} ({{ctrl.parentWorkflow.id}})
Child workflows{{ctrl.childWorkflows.length}}
Current state - {{ctrl.workflow.state}} -
Current status{{ctrl.workflow.status}}
-
Next activation{{ctrl.workflow.nextActivation | fromNowOrNever}}
Business key{{ctrl.workflow.businessKey}}
External id{{ctrl.workflow.externalId}}
Current signal{{ctrl.workflow.signal}}
Priority{{ctrl.workflow.priority}}
Created{{ctrl.workflow.created | date:'yyyy-MM-dd HH:mm:ss'}}
Started{{ctrl.workflow.started | date:'yyyy-MM-dd HH:mm:ss'}}
Modified{{ctrl.workflow.modified | date:'yyyy-MM-dd HH:mm:ss'}}
-
-
-
Parent workflow: - {{ctrl.parentWorkflow.type}} ({{ctrl.parentWorkflow.id}}) -
-
Child workflows: - {{ctrl.childWorkflows.length}} -
- Created: {{ctrl.workflow.created | date:'yyyy-MM-dd HH:mm:ss' }}
- Started: {{ctrl.workflow.started | date:'yyyy-MM-dd HH:mm:ss' }}
- Modified: {{ctrl.workflow.modified | date:'yyyy-MM-dd HH:mm:ss' }}
- Current state: {{ctrl.workflow.state}} - ({{ctrl.workflow.stateText}})
- Current status: {{ctrl.workflow.status}}
-
- Current signal: {{ctrl.workflow.signal}}
-
- Next activation: {{ctrl.workflow.nextActivation | fromNowOrNever}} -
Workflow id: {{ctrl.workflow.id}}
-
Priority: {{ctrl.workflow.priority}}
-
Business key: {{ctrl.workflow.businessKey}}
-
External id: {{ctrl.workflow.externalId}}
- -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Parent workflow{{ctrl.parentWorkflow.type}} ({{ctrl.parentWorkflow.id}})
Child workflows{{ctrl.childWorkflows.length}}
Current state + {{ctrl.workflow.state}} +
Current status{{ctrl.workflow.status}}
+
Next activation{{ctrl.workflow.nextActivation | fromNowOrNever}}
Business key{{ctrl.workflow.businessKey}}
External id{{ctrl.workflow.externalId}}
Current signal{{ctrl.workflow.signal}}
Priority{{ctrl.workflow.priority}}
Created{{ctrl.workflow.created | date:'yyyy-MM-dd HH:mm:ss'}}
Started{{ctrl.workflow.started | date:'yyyy-MM-dd HH:mm:ss'}}
Modified{{ctrl.workflow.modified | date:'yyyy-MM-dd HH:mm:ss'}}
+
diff --git a/nflow-explorer/src/app/workflow/workflowInfo.js b/nflow-explorer/src/app/workflow/workflowInfo.js index a47d1011a..b0199fb53 100644 --- a/nflow-explorer/src/app/workflow/workflowInfo.js +++ b/nflow-explorer/src/app/workflow/workflowInfo.js @@ -27,7 +27,6 @@ var self = this; self.currentStateTime = currentStateTime; self.selectAction = WorkflowGraphApi.onSelectNode; - self.workflowInfoTable = config.workflowInfoTable; self.contentGenerator = config.customInstanceContent; function currentStateTime() { diff --git a/nflow-explorer/src/config.js b/nflow-explorer/src/config.js index 6907cac04..3da97d022 100644 --- a/nflow-explorer/src/config.js +++ b/nflow-explorer/src/config.js @@ -79,8 +79,4 @@ var Config = function() { // When true, hides the sticky footer with copyright this.hideFooter = false; - - // When true, workflow instance properties shown in a table - // (if needed, update your customInstanceContent to generate table rows) - this.workflowInfoTable = false; }; diff --git a/nflow-explorer/src/styles/main.scss b/nflow-explorer/src/styles/main.scss index 1edf72066..7bbf5d592 100644 --- a/nflow-explorer/src/styles/main.scss +++ b/nflow-explorer/src/styles/main.scss @@ -259,24 +259,28 @@ ul.listing { cursor: pointer; } -#workflow-properties tr:nth-child(even) { +.workflow-properties tr:nth-child(even) { background-color: #f2f2f2; } -#workflow-properties tr:hover { +.workflow-properties tr:hover { background-color: #ddd; } -#workflow-properties td:first-child { +.workflow-properties td:first-child { font-weight: bold; } -#workflow-properties td { +.workflow-properties th { + background-color: #d9d9d9; +} + +.workflow-properties td, .workflow-properties th { border: 1px solid #ddd; padding: 8px; } -#workflow-properties code { +.workflow-properties code { color: black; background-color: transparent; }