Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Display one per stage for the stepbar used in IssueTable

天舟5df8dfef5405
diff --git a/frontend/src/bbkit/BBStepBar.vue b/frontend/src/bbkit/BBStepBar.vue
index a635677a6e..398f0eca65 100644
--- a/frontend/src/bbkit/BBStepBar.vue
+++ b/frontend/src/bbkit/BBStepBar.vue
@@ -118,7 +118,6 @@
></path>
</svg>
</template>
- <span class="sr-only">{{ step.title }}</span>
</div>
</li>
</ol>
diff --git a/frontend/src/bbkit/types.ts b/frontend/src/bbkit/types.ts
index d050f757ed..220870827f 100644
--- a/frontend/src/bbkit/types.ts
+++ b/frontend/src/bbkit/types.ts
@@ -34,7 +34,6 @@ export type BBStepStatus =
| "SKIPPED";
export type BBStep = {
- title: string;
status: BBStepStatus;
payload: any;
};
diff --git a/frontend/src/components/IssueTable.vue b/frontend/src/components/IssueTable.vue
index e4cdf5b4f4..a868618200 100644
--- a/frontend/src/components/IssueTable.vue
+++ b/frontend/src/components/IssueTable.vue
@@ -136,6 +136,7 @@ import {
activeTask,
allTaskList,
stageSlug,
+ activeTaskInStage,
} from "../utils";
import { Issue, Task } from "../types";
@@ -248,8 +249,8 @@ export default {
};
const taskStepList = function (issue: Issue): BBStep[] {
- const list: Task[] = allTaskList(issue.pipeline);
- return list.map((task) => {
+ return issue.pipeline.stageList.map((stage) => {
+ const task = activeTaskInStage(stage);
let status: BBStepStatus = task.status;
if (status == "PENDING" || status == "PENDING_APPROVAL") {
if (activeTask(issue.pipeline).id == task.id) {
@@ -260,7 +261,6 @@ export default {
}
}
return {
- title: task.name,
status,
payload: task,
};