From 382795365110f30c2c94cf51c2c0472ac12bc3f7 Mon Sep 17 00:00:00 2001 From: Anthony Rose <20302208+Cx01N@users.noreply.github.com> Date: Thu, 22 Feb 2024 01:09:29 -0500 Subject: [PATCH 1/6] Removed extra space being added in front of Task Input and Output (#185) * Removed extra space being added in front of Task Input and Output by append/prepend space * Ran yarn lint --- CHANGELOG.md | 4 ++++ src/components/agents/AgentTasksTable.vue | 13 +++++++++---- src/components/plugins/PluginTasksTable.vue | 11 +++++++---- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e90fd3e..a3f2db4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Removed extra space being added in front of Task Input and Output by append/prepend new line (@Cx01N) + ## [2.7.2] - 2024-01-31 ### Fixed diff --git a/src/components/agents/AgentTasksTable.vue b/src/components/agents/AgentTasksTable.vue index 1352d94..9b8ba16 100644 --- a/src/components/agents/AgentTasksTable.vue +++ b/src/components/agents/AgentTasksTable.vue @@ -62,9 +62,9 @@ " > {{ - item.expandedInput - ? expandedTasks[item.uniqueId].full_input - : item.input + addBlankLines(item.expandedInput + ? + expandedTasks[item.uniqueId].full_input : item.input) }}

Task Output:

@@ -109,7 +109,9 @@ v-html="expandedTasks[item.uniqueId].htmlOutput" />
- {{ item.output }} + {{ + addBlankLines(item.output) + }}
@@ -386,6 +388,9 @@ export default { }) .catch((err) => this.$snack.error(`Error: ${err}`)); }, + addBlankLines(text) { + return `\n${ text }\n`; + }, addTag(task, tag) { agentTaskApi .addTag(task.agent_id, task.id, tag) diff --git a/src/components/plugins/PluginTasksTable.vue b/src/components/plugins/PluginTasksTable.vue index be35d0e..6be2961 100644 --- a/src/components/plugins/PluginTasksTable.vue +++ b/src/components/plugins/PluginTasksTable.vue @@ -62,9 +62,9 @@ " > {{ - item.expandedInput - ? expandedTasks[item.uniqueId].full_input - : item.input + addBlankLines(item.expandedInput + ? + expandedTasks[item.uniqueId].full_input : item.input) }}

Task Output:

@@ -109,7 +109,7 @@ v-html="expandedTasks[item.uniqueId].htmlOutput" />
- {{ item.output }} + addBlankLines(item.output)
@@ -349,6 +349,9 @@ export default { ansiToHtml(output) { return new AnsiUp().ansi_to_html(output); }, + addBlankLines(text) { + return `\n${ text }\n`; + }, deleteTag(task, tag) { pluginApi .deleteTag(task.plugin_id, task.id, tag.id) From 6dd8b88e96dd4746268e41d7ea550c79ffb1ba09 Mon Sep 17 00:00:00 2001 From: Anthony Rose <20302208+Cx01N@users.noreply.github.com> Date: Thu, 22 Feb 2024 01:10:53 -0500 Subject: [PATCH 2/6] Added info buttons to agent's view tab (#188) * Added info buttons to agent's view tab * Update date format in info tab --------- Co-authored-by: Vincent Rose --- CHANGELOG.md | 6 +++++- src/components/ClickToEdit.vue | 19 ++++++++++++++++++- src/components/agents/AgentForm.vue | 5 +++++ 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3f2db4..62c0aba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,9 +14,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Add info button on View tab to clarify what options do + ### Changed -- Removed extra space being added in front of Task Input and Output by append/prepend new line (@Cx01N) +- Removed extra space being added in front of Task Input and Output by append/prepend new line ## [2.7.2] - 2024-01-31 diff --git a/src/components/ClickToEdit.vue b/src/components/ClickToEdit.vue index 814c187..c44c1d5 100644 --- a/src/components/ClickToEdit.vue +++ b/src/components/ClickToEdit.vue @@ -1,7 +1,20 @@