diff --git a/.github/workflows/pr-title-update.yml b/.github/workflows/pr-title-update.yml index 6a4c5021f63d..8ffd54a45da4 100644 --- a/.github/workflows/pr-title-update.yml +++ b/.github/workflows/pr-title-update.yml @@ -2,26 +2,28 @@ name: Update PR title on: pull_request_target: - types: [opened, edited] - branches: - - "release_**" + types: [opened, edited, reopened] jobs: update-title: + if: github.event.action != 'edited' || github.event.changes.base.ref.from != '' runs-on: ubuntu-latest permissions: pull-requests: write steps: - - uses: actions/checkout@v4 - name: Update PR title env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_NUMBER: ${{ github.event.pull_request.number }} TARGET_BRANCH: "${{ github.base_ref }}" PR_TITLE: "${{ github.event.pull_request.title }}" + REPO: "${{ github.repository }}" run: | - VERSION=$(echo $TARGET_BRANCH | grep -oP '\d+\.\d+') - if [[ -n "$VERSION" && ! "$PR_TITLE" =~ ^\[$VERSION\] ]]; then - NEW_TITLE="[$VERSION] $PR_TITLE" - gh pr edit $PR_NUMBER --title "$NEW_TITLE" + VERSION=$(echo $TARGET_BRANCH | grep -oP '^release_\K\d+.\d+$' || true) + NEW_TITLE=$(echo "$PR_TITLE" | sed -E "s/\[[0-9]+\.[0-9]+\] //") + if [[ -n "$VERSION" ]]; then + NEW_TITLE="[$VERSION] $NEW_TITLE" + fi + if [[ "$NEW_TITLE" != "$PR_TITLE" ]]; then + gh pr edit $PR_NUMBER --repo "$REPO" --title "$NEW_TITLE" fi diff --git a/client/src/components/ProgressBar.vue b/client/src/components/ProgressBar.vue index 29290ead9387..eb10d0bbe240 100644 --- a/client/src/components/ProgressBar.vue +++ b/client/src/components/ProgressBar.vue @@ -4,9 +4,9 @@ import { BProgress, BProgressBar } from "bootstrap-vue"; interface Props { - total: number; + total?: number; note: string; - loading: boolean; + loading?: boolean; okCount?: number; runningCount?: number; newCount?: number; diff --git a/client/src/components/Tool/ToolCard.vue b/client/src/components/Tool/ToolCard.vue index f09527328008..f76955803d2b 100644 --- a/client/src/components/Tool/ToolCard.vue +++ b/client/src/components/Tool/ToolCard.vue @@ -118,7 +118,7 @@ const showHelpForum = computed(() => isConfigLoaded.value && config.value.enable diff --git a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue index cb32e4f11288..40f46da6db23 100644 --- a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue +++ b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue @@ -275,18 +275,9 @@ function itemToPieChartSpec(item: piechartData) { type: "nominal", legend: { type: "symbol", - title: "", // should be item.category_title but it doesn't align right so just hide it - direction: "vertical", - titleAlign: "right", - padding: 10, - // rowPadding: 3, - labelOffset: 40, - // symbolOffset: 50, - labelLimit: 120, - // labelAlign: 'center', - columnPadding: 5, - // clipHeight: 20, - titleOrient: "top", + title: item.category_title, + titleFontSize: 16, + labelFontSize: 14, }, }, tooltip: [ @@ -381,6 +372,10 @@ function getTimingInTitle(timing: string): string { const timingInTitles = computed(() => { return getTimingInTitle(timing.value); }); + +const groupByInTitles = computed(() => { + return attributeToLabel[groupBy.value]; +});