From f5333e11db732a6a49874a8d3d181a3c16b722f6 Mon Sep 17 00:00:00 2001 From: Srilatha Maddineni Date: Wed, 15 May 2024 11:40:46 -0400 Subject: [PATCH] Adding changes to process.sidepanel.js and workspace.js --- src/main/resources/static/css/workspace.css | 3 +++ .../static/js/gw.process.sidepanel.js | 21 +++++++++++++++++++ src/main/resources/static/js/gw.workspace.js | 1 + 3 files changed, 25 insertions(+) diff --git a/src/main/resources/static/css/workspace.css b/src/main/resources/static/css/workspace.css index 3fd25a24b..0cf5e5ae4 100644 --- a/src/main/resources/static/css/workspace.css +++ b/src/main/resources/static/css/workspace.css @@ -124,4 +124,7 @@ div.processtooltip table tr td { padding: 5px; border-bottom-style: dotted; +} +div.processtooltip table tr td:first-child { + width: 100px; } \ No newline at end of file diff --git a/src/main/resources/static/js/gw.process.sidepanel.js b/src/main/resources/static/js/gw.process.sidepanel.js index 2cb6ea875..8ebaeb6ec 100644 --- a/src/main/resources/static/js/gw.process.sidepanel.js +++ b/src/main/resources/static/js/gw.process.sidepanel.js @@ -193,8 +193,29 @@ GW.process.sidepanel = { GW.process.history_id = msg.history_id; msgout = msg.history_output.replaceAll("\n", "
"); + var executionTime = (msg.history_end_time - msg.history_begin_time) / 1000; $("#prompt-panel-process-log-window").append(msgout); + var existingHtml = GW.workspace.tooltipdiv.html(); + var updatedHtml = existingHtml + + ` + + + + + + + + + + + + +
output`+GW.general.shorten_long_string(GW.general.escapeCodeforHTML(msgout), 200)+`
Running Status`+msg.indicator+`
Execution Time${Math.abs(executionTime)} seconds
+ `; + + GW.workspace.tooltipdiv.html(updatedHtml).style("opacity", 0.9); + } else { $("#prompt_panel_log_switch") .prop("checked", false) diff --git a/src/main/resources/static/js/gw.workspace.js b/src/main/resources/static/js/gw.workspace.js index a83f63f37..4279edd39 100644 --- a/src/main/resources/static/js/gw.workspace.js +++ b/src/main/resources/static/js/gw.workspace.js @@ -1274,6 +1274,7 @@ GW.workspace = { GW.menu.details(process_id, "process", function (msg) { //sometimes the mouse moves too quickly, the mouse is already out but the response doesn't arrive yet. The div will persist forever. So ismouseinside is used. if (ismouseinside) { + GW.process.sidepanel.showProcessLog(GW.workflow.history_id, d.id, d.title); GW.workspace.tooltipdiv .transition() .duration(200)