Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Only render the Output Panel top border if TaskFlow is not displayed, otherwise it would overlap with the bottom border of the TaskFlow
Tianzhou Chendf61fd50ab8d
diff --git a/frontend/src/views/TaskDetail.vue b/frontend/src/views/TaskDetail.vueindex 26ec191f95..9330ac05e7 100644--- a/frontend/src/views/TaskDetail.vue+++ b/frontend/src/views/TaskDetail.vue@@ -43,12 +43,20 @@/><!-- Output Panel -->- <TaskOutputPanel+ <!-- Only render the top border if TaskFlow is not displayed, otherwise it would overlap with the bottom border of the TaskFlow -->+ <divv-if="!state.new && outputFieldList.length > 0"- :task="state.task"- :fieldList="outputFieldList"- @update-custom-field="updateCustomField"- />+ class="px-2 py-4 md:flex md:flex-col lg:border-b lg:border-block-border"+ :class="+ state.task.attributes.stageProgressList.length <= 1 ? 'lg:border-t' : ''+ "+ >+ <TaskOutputPanel+ :task="state.task"+ :fieldList="outputFieldList"+ @update-custom-field="updateCustomField"+ />+ </div><!-- Main Content --><maindiff --git a/frontend/src/views/TaskOutputPanel.vue b/frontend/src/views/TaskOutputPanel.vueindex 85c8c191bd..d67ddeea54 100644--- a/frontend/src/views/TaskOutputPanel.vue+++ b/frontend/src/views/TaskOutputPanel.vue@@ -1,73 +1,67 @@<template>- <div class="">- <div- class="px-2 py-4 md:flex md:flex-col lg:border-t lg:border-b lg:border-block-border"- >- <h2 class="px-4 text-lg font-medium">Result</h2>+ <h2 class="px-4 text-lg font-medium">Result</h2>- <div class="my-2 mx-4 space-y-2">- <template v-for="(field, index) in fieldList" :key="index">- <div class="flex">- <span- class="z-0 whitespace-nowrap inline-flex items-center px-3 rounded-l-md border border-l border-r-0 border-control-border bg-gray-50 text-control-light sm:text-sm"- >- {{ field.name }}- <span v-if="field.required" class="text-red-600">*</span>- </span>- <input- type="text"- class="z-10 flex-1 min-w-0 block w-full px-3 py-2 border border-r border-control-border focus:ring-control focus:border-control sm:text-sm"- :name="field.id"- :value="- field.preprocessor- ? field.preprocessor(task.attributes.payload[field.id])- : task.attributes.payload[field.id]- "- @input="$emit('update-custom-field', field, $event.target.value)"- />- <!-- Disallow tabbing since the focus ring is partially covered by the text field due to overlaying -->- <button- tabindex="-1"- class="z-0 -ml-px px-2 py-2 border border-gray-300 text-sm font-medium text-control-light bg-gray-50 hover:bg-gray-100 focus:ring-control focus:outline-none focus-visible:ring-2 focus:ring-offset-1"- >- <svg- class="w-6 h-6"- fill="none"- stroke="currentColor"- viewBox="0 0 24 24"- xmlns="http://www.w3.org/2000/svg"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"- ></path>- </svg>- </button>- <button- tabindex="-1"- class="z-0 -ml-px px-2 py-2 border border-gray-300 text-sm font-medium rounded-r-md text-control-light bg-gray-50 hover:bg-gray-100 focus:ring-control focus:outline-none focus-visible:ring-2 focus:ring-offset-1"- >- <svg- class="w-6 h-6"- fill="none"- stroke="currentColor"- viewBox="0 0 24 24"- xmlns="http://www.w3.org/2000/svg"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"- ></path>- </svg>- </button>- </div>- </template>+ <div class="my-2 mx-4 space-y-2">+ <template v-for="(field, index) in fieldList" :key="index">+ <div class="flex">+ <span+ class="z-0 whitespace-nowrap inline-flex items-center px-3 rounded-l-md border border-l border-r-0 border-control-border bg-gray-50 text-control-light sm:text-sm"+ >+ {{ field.name }}+ <span v-if="field.required" class="text-red-600">*</span>+ </span>+ <input+ type="text"+ class="z-10 flex-1 min-w-0 block w-full px-3 py-2 border border-r border-control-border focus:ring-control focus:border-control sm:text-sm"+ :name="field.id"+ :value="+ field.preprocessor+ ? field.preprocessor(task.attributes.payload[field.id])+ : task.attributes.payload[field.id]+ "+ @input="$emit('update-custom-field', field, $event.target.value)"+ />+ <!-- Disallow tabbing since the focus ring is partially covered by the text field due to overlaying -->+ <button+ tabindex="-1"+ class="z-0 -ml-px px-2 py-2 border border-gray-300 text-sm font-medium text-control-light bg-gray-50 hover:bg-gray-100 focus:ring-control focus:outline-none focus-visible:ring-2 focus:ring-offset-1"+ >+ <svg+ class="w-6 h-6"+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"+ ></path>+ </svg>+ </button>+ <button+ tabindex="-1"+ class="z-0 -ml-px px-2 py-2 border border-gray-300 text-sm font-medium rounded-r-md text-control-light bg-gray-50 hover:bg-gray-100 focus:ring-control focus:outline-none focus-visible:ring-2 focus:ring-offset-1"+ >+ <svg+ class="w-6 h-6"+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"+ ></path>+ </svg>+ </button></div>- </div>+ </template></div></template>