Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Use number as the ID type in frontend
天舟e58a1e6fcb8e
diff --git a/backend/api/activity.go b/backend/api/activity.goindex 4aedd711ad..bb8965832a 100644--- a/backend/api/activity.go+++ b/backend/api/activity.go@@ -59,7 +59,7 @@ type ActivityCreate struct {WorkspaceId int// Domain specific fields- ContainerId string `jsonapi:"attr,containerId"`+ ContainerId int `jsonapi:"attr,containerId"`Type ActivityType `jsonapi:"attr,actionType"`Comment string `jsonapi:"attr,comment"`Payload string `jsonapi:"attr,payload"`diff --git a/backend/api/database.go b/backend/api/database.goindex 1d9dc9d6a4..6bec1d3121 100644--- a/backend/api/database.go+++ b/backend/api/database.go@@ -65,7 +65,7 @@ type DatabaseCreate struct {// Domain specific fieldsName string `jsonapi:"attr,name"`- IssueId string `jsonapi:"attr,issueId"`+ IssueId int `jsonapi:"attr,issueId"`}type DatabaseFind struct {diff --git a/backend/api/instance.go b/backend/api/instance.goindex 1809a45423..e115139345 100644--- a/backend/api/instance.go+++ b/backend/api/instance.go@@ -34,7 +34,7 @@ type InstanceCreate struct {WorkspaceId int// Related fields- EnvironmentId string `jsonapi:"attr,environmentId"`+ EnvironmentId int `jsonapi:"attr,environmentId"`// Domain specific fieldsName string `jsonapi:"attr,name"`diff --git a/backend/api/principal.go b/backend/api/principal.goindex 5d5b7e0d27..184657f9fd 100644--- a/backend/api/principal.go+++ b/backend/api/principal.go@@ -3,7 +3,6 @@ package apiimport ("context""encoding/json"- "strconv")const SYSTEM_BOT_ID = 1@@ -69,10 +68,10 @@ type Principal struct {// can map directly to the frontend Principal object without any conversion.func (p *Principal) MarshalJSON() ([]byte, error) {return json.Marshal(&struct {- ID string `json:"id"`- CreatorId string `json:"creatorId"`+ ID int `json:"id"`+ CreatorId int `json:"creatorId"`CreatedTs int64 `json:"createdTs"`- UpdaterId string `json:"updaterId"`+ UpdaterId int `json:"updaterId"`UpdatedTs int64 `json:"updatedTs"`Status PrincipalStatus `json:"status"`Type PrincipalType `json:"type"`@@ -80,10 +79,10 @@ func (p *Principal) MarshalJSON() ([]byte, error) {Email string `json:"email"`Role Role `json:"role"`}{- ID: strconv.Itoa(p.ID),- CreatorId: strconv.Itoa(p.CreatorId),+ ID: p.ID,+ CreatorId: p.CreatorId,CreatedTs: p.CreatedTs,- UpdaterId: strconv.Itoa(p.UpdaterId),+ UpdaterId: p.UpdaterId,UpdatedTs: p.UpdatedTs,Status: p.Status,Type: p.Type,diff --git a/frontend/src/components/DataSourceCreateForm.vue b/frontend/src/components/DataSourceCreateForm.vueindex 4bf3c58bd0..7c9ad374a2 100644--- a/frontend/src/components/DataSourceCreateForm.vue+++ b/frontend/src/components/DataSourceCreateForm.vue@@ -172,7 +172,7 @@ export default {props: {instanceId: {required: true,- type: String,+ type: Number,},// If database is specified, then we just show that database instead of the database selectdatabase: {diff --git a/frontend/src/components/DataSourceSelect.vue b/frontend/src/components/DataSourceSelect.vueindex a09c09fd39..19ea450850 100644--- a/frontend/src/components/DataSourceSelect.vue+++ b/frontend/src/components/DataSourceSelect.vue@@ -36,7 +36,7 @@ import { useStore } from "vuex";import { Database } from "../types";interface LocalState {- selectedId?: string;+ selectedId?: number;}export default {@@ -45,7 +45,7 @@ export default {components: {},props: {selectedId: {- type: String,+ type: Number,},database: {type: Object as PropType<Database>,diff --git a/frontend/src/components/DatabaseListSidePanel.vue b/frontend/src/components/DatabaseListSidePanel.vueindex 5cbbb6a7d7..43cecebc3a 100644--- a/frontend/src/components/DatabaseListSidePanel.vue+++ b/frontend/src/components/DatabaseListSidePanel.vue@@ -59,7 +59,7 @@ export default {// dbList may be undefined if the environment is archivedif (dbList) {dbList.push({- id: database.id,+ id: database.id.toString(),name: database.name,link: `/db/${databaseSlug(database)}`,});diff --git a/frontend/src/components/DatabaseSelect.vue b/frontend/src/components/DatabaseSelect.vueindex 29c0fbc304..4266094724 100644--- a/frontend/src/components/DatabaseSelect.vue+++ b/frontend/src/components/DatabaseSelect.vue@@ -44,7 +44,7 @@ import {} from "../types";interface LocalState {- selectedId?: string;+ selectedId?: number;}export default {@@ -54,7 +54,7 @@ export default {props: {selectedId: {required: true,- type: String,+ type: Number,},mode: {required: true,@@ -62,15 +62,15 @@ export default {},environmentId: {default: UNKNOWN_ID,- type: String as PropType<EnvironmentId>,+ type: Number as PropType<EnvironmentId>,},instanceId: {default: UNKNOWN_ID,- type: String as PropType<InstanceId>,+ type: Number as PropType<InstanceId>,},projectId: {default: UNKNOWN_ID,- type: String as PropType<ProjectId>,+ type: Number as PropType<ProjectId>,},disabled: {default: false,diff --git a/frontend/src/components/EnvironmentSelect.vue b/frontend/src/components/EnvironmentSelect.vueindex e601b2c87a..be3778010a 100644--- a/frontend/src/components/EnvironmentSelect.vue+++ b/frontend/src/components/EnvironmentSelect.vue@@ -37,7 +37,7 @@ import cloneDeep from "lodash-es/cloneDeep";import { Environment, EnvironmentId } from "../types";interface LocalState {- selectedId?: string;+ selectedId?: Number;}export default {@@ -46,7 +46,7 @@ export default {components: {},props: {selectedId: {- type: String,+ type: Number,},selectDefault: {default: true,diff --git a/frontend/src/components/EnvironmentTabFilter.vue b/frontend/src/components/EnvironmentTabFilter.vueindex dc5b273c5e..67b727ad64 100644--- a/frontend/src/components/EnvironmentTabFilter.vue+++ b/frontend/src/components/EnvironmentTabFilter.vue@@ -31,7 +31,7 @@ export default {components: {},props: {selectedId: {- type: String,+ type: Number,},},setup(props, ctx) {diff --git a/frontend/src/components/InstanceSelect.vue b/frontend/src/components/InstanceSelect.vueindex bf1936d6ef..c5df1dae99 100644--- a/frontend/src/components/InstanceSelect.vue+++ b/frontend/src/components/InstanceSelect.vue@@ -37,7 +37,7 @@ import { useStore } from "vuex";import { Instance } from "../types";interface LocalState {- selectedId?: string;+ selectedId?: number;}export default {@@ -46,10 +46,10 @@ export default {components: {},props: {selectedId: {- type: String,+ type: Number,},environmentId: {- type: String,+ type: Number,},disabled: {default: false,@@ -64,9 +64,10 @@ export default {const instanceList = computed(() => {if (props.environmentId) {- return store.getters[- "instance/instanceListByEnvironmentId"- ](props.environmentId, ["NORMAL", "ARCHIVED"]);+ return store.getters["instance/instanceListByEnvironmentId"](+ props.environmentId,+ ["NORMAL", "ARCHIVED"]+ );}return store.getters["instance/instanceList"](["NORMAL", "ARCHIVED"]);});diff --git a/frontend/src/components/PrincipalSelect.vue b/frontend/src/components/PrincipalSelect.vueindex 25b3e4b003..453644a32b 100644--- a/frontend/src/components/PrincipalSelect.vue+++ b/frontend/src/components/PrincipalSelect.vue@@ -52,7 +52,7 @@ export default {emits: ["select-principal-id"],props: {selectedId: {- type: String,+ type: Number,},disabled: {default: false,diff --git a/frontend/src/components/ProjectListSidePanel.vue b/frontend/src/components/ProjectListSidePanel.vueindex ae96f0915d..ad52eba90b 100644--- a/frontend/src/components/ProjectListSidePanel.vue+++ b/frontend/src/components/ProjectListSidePanel.vue@@ -43,7 +43,7 @@ export default {return projectList.map((item: Project): BBOutlineItem => {return {- id: item.id,+ id: item.id.toString(),name: projectName(item),link: `/project/${projectSlug(item)}`,};diff --git a/frontend/src/components/ProjectSelect.vue b/frontend/src/components/ProjectSelect.vueindex 7edf602a1c..0468f9030d 100644--- a/frontend/src/components/ProjectSelect.vue+++ b/frontend/src/components/ProjectSelect.vue@@ -50,7 +50,7 @@ import { useStore } from "vuex";import { Principal, Project, UNKNOWN_ID, DEFAULT_PROJECT_ID } from "../types";interface LocalState {- selectedId: string;+ selectedId: number;}export default {@@ -60,7 +60,7 @@ export default {props: {selectedId: {default: UNKNOWN_ID,- type: String,+ type: Number,},disabled: {default: false,diff --git a/frontend/src/components/StageSelect.vue b/frontend/src/components/StageSelect.vueindex 6bad60e556..60d6b57bbc 100644--- a/frontend/src/components/StageSelect.vue+++ b/frontend/src/components/StageSelect.vue@@ -21,7 +21,7 @@ import { UNKNOWN_ID, Pipeline, StageId } from "../types";import { activeStage } from "../utils";interface LocalState {- selectedId: string;+ selectedId: number;}export default {@@ -35,7 +35,7 @@ export default {},selectedId: {default: UNKNOWN_ID,- type: String,+ type: Number,},},setup(props, { emit }) {diff --git a/frontend/src/miragejs/seeds/index.ts b/frontend/src/miragejs/seeds/index.tsindex b3dfe0f3d1..a9d85373d6 100644--- a/frontend/src/miragejs/seeds/index.ts+++ b/frontend/src/miragejs/seeds/index.ts@@ -151,7 +151,7 @@ const workspacesSeeder = (server: any) => {environmentList2,projectList2,ws2DBA,- "2",+ 2,WORKSPACE_INTERVAL + INSTANCE_ID_START);diff --git a/frontend/src/store/modules/activity.ts b/frontend/src/store/modules/activity.tsindex b8cee43204..359d1fd0d7 100644--- a/frontend/src/store/modules/activity.ts+++ b/frontend/src/store/modules/activity.ts@@ -23,7 +23,7 @@ function convert(return {...(activity.attributes as Omit<Activity, "id" | "creator" | "updater">),- id: activity.id,+ id: parseInt(activity.id),creator,updater,};diff --git a/frontend/src/store/modules/auth.ts b/frontend/src/store/modules/auth.tsindex 6ab56e01f1..c53d112d66 100644--- a/frontend/src/store/modules/auth.ts+++ b/frontend/src/store/modules/auth.ts@@ -113,6 +113,7 @@ const actions = {async logout({ commit }: any) {removeCookie("user");+ console.log("logout:", getIntCookie("user"));commit("setCurrentUser", unknown("PRINCIPAL") as Principal);return unknown("PRINCIPAL") as Principal;},diff --git a/frontend/src/store/modules/bookmark.ts b/frontend/src/store/modules/bookmark.tsindex 46e7d5da96..274c40e4fb 100644--- a/frontend/src/store/modules/bookmark.ts+++ b/frontend/src/store/modules/bookmark.ts@@ -15,7 +15,7 @@ function convert(bookmark: ResourceObject, rootGetters: any): Bookmark {return {...(bookmark.attributes as Omit<Bookmark, "id" | "creator" | "updater">),- id: bookmark.id,+ id: parseInt(bookmark.id),creator,updater,};diff --git a/frontend/src/store/modules/dataSource.ts b/frontend/src/store/modules/dataSource.tsindex af87f388a0..0624e92dc1 100644--- a/frontend/src/store/modules/dataSource.ts+++ b/frontend/src/store/modules/dataSource.ts@@ -63,7 +63,7 @@ function convert(DataSource,"id" | "creator" | "updater" | "instanceId" | "database" | "memberList">),- id: dataSource.id,+ id: parseInt(dataSource.id),instance,database,creator,diff --git a/frontend/src/store/modules/database.ts b/frontend/src/store/modules/database.tsindex ae4b9c31fc..80e90909fb 100644--- a/frontend/src/store/modules/database.ts+++ b/frontend/src/store/modules/database.ts@@ -34,19 +34,19 @@ function convert(database.relationships!.instance.data as ResourceIdentifier).id;let instance: Instance = unknown("INSTANCE") as Instance;- instance.id = instanceId;+ instance.id = parseInt(instanceId);const projectId = (database.relationships!.project.data as ResourceIdentifier).id;let project: Project = unknown("PROJECT") as Project;- project.id = projectId;+ project.id = parseInt(projectId);const dataSourceIdList = database.relationships!.dataSource.data as ResourceIdentifier[];const dataSourceList: DataSource[] = [];for (const item of dataSourceIdList) {const dataSource = unknown("DATA_SOURCE") as DataSource;- dataSource.id = item.id;+ dataSource.id = parseInt(item.id);dataSourceList.push(dataSource);}@@ -66,7 +66,7 @@ function convert(Database,"id" | "creator" | "updater" | "instance" | "project" | "dataSourceList">),- id: database.id,+ id: parseInt(database.id),creator,updater,instance,@@ -81,7 +81,7 @@ function convert(database.id) {const i = dataSourceList.findIndex(- (dataSource: DataSource) => item.id == dataSource.id+ (dataSource: DataSource) => parseInt(item.id) == dataSource.id);if (i != -1) {dataSourceList[i] = rootGetters["dataSource/convert"](item);diff --git a/frontend/src/store/modules/environment.ts b/frontend/src/store/modules/environment.tsindex 651608eaf4..1f86293b5a 100644--- a/frontend/src/store/modules/environment.ts+++ b/frontend/src/store/modules/environment.ts@@ -28,7 +28,7 @@ function convert(Environment,"id" | "creator" | "updater">),- id: environment.id,+ id: parseInt(environment.id),creator,updater,};diff --git a/frontend/src/store/modules/instance.ts b/frontend/src/store/modules/instance.tsindex 794edb4a6e..b8cb2b9ef5 100644--- a/frontend/src/store/modules/instance.ts+++ b/frontend/src/store/modules/instance.ts@@ -28,7 +28,7 @@ function convert(instance.relationships!.environment.data as ResourceIdentifier).id;let environment: Environment = unknown("ENVIRONMENT") as Environment;- environment.id = environmentId;+ environment.id = parseInt(environmentId);let username = undefined;let password = undefined;@@ -56,7 +56,7 @@ function convert(Instance,"id" | "environment" | "creator" | "updater">),- id: instance.id,+ id: parseInt(instance.id),creator,updater,environment,diff --git a/frontend/src/store/modules/issue.ts b/frontend/src/store/modules/issue.tsindex 8a1742191b..338471eccf 100644--- a/frontend/src/store/modules/issue.ts+++ b/frontend/src/store/modules/issue.ts@@ -36,12 +36,12 @@ function convert(const projectId = (issue.relationships!.project.data as ResourceIdentifier).id;let project: Project = unknown("PROJECT") as Project;- project.id = projectId;+ project.id = parseInt(projectId);const pipelineId = (issue.relationships!.pipeline.data as ResourceIdentifier).id;let pipeline = unknown("PIPELINE") as Pipeline;- pipeline.id = pipelineId;+ pipeline.id = parseInt(pipelineId);for (const item of includedList || []) {if (@@ -65,7 +65,7 @@ function convert(Issue,"id" | "project" | "creator" | "updater" | "assignee" | "subscriberList">),- id: issue.id,+ id: parseInt(issue.id),project,creator,updater,diff --git a/frontend/src/store/modules/member.ts b/frontend/src/store/modules/member.tsindex a6b493bb13..8a048e4788 100644--- a/frontend/src/store/modules/member.ts+++ b/frontend/src/store/modules/member.ts@@ -28,7 +28,7 @@ function convert(Member,"id" | "creator" | "updater" | "principal">),- id: member.id,+ id: parseInt(member.id),creator,updater,principal,diff --git a/frontend/src/store/modules/message.ts b/frontend/src/store/modules/message.tsindex ad12cf130f..8ea6f22d45 100644--- a/frontend/src/store/modules/message.ts+++ b/frontend/src/store/modules/message.ts@@ -27,7 +27,7 @@ function convert(message: ResourceObject, rootGetters: any): Message {Message,"id" | "creator" | "updater" | "receiver">),- id: message.id,+ id: parseInt(message.id),creator,updater,receiver,diff --git a/frontend/src/store/modules/pipeline.ts b/frontend/src/store/modules/pipeline.tsindex 87ce14d2de..d152c41d8c 100644--- a/frontend/src/store/modules/pipeline.ts+++ b/frontend/src/store/modules/pipeline.ts@@ -46,7 +46,7 @@ function convert(Pipeline,"id" | "creator" | "updater" | "stageList">),- id: pipeline.id,+ id: parseInt(pipeline.id),creator,updater,stageList,diff --git a/frontend/src/store/modules/principal.ts b/frontend/src/store/modules/principal.tsindex cb1147135b..a5dab45aad 100644--- a/frontend/src/store/modules/principal.ts+++ b/frontend/src/store/modules/principal.ts@@ -17,7 +17,7 @@ import { isRelease, randomString } from "../../utils";function convert(principal: ResourceObject, rootGetters: any): Principal {const member = rootGetters["member/memberByPrincipalId"](principal.id);return {- id: principal.id,+ id: parseInt(principal.id),creatorId: principal.attributes.creatorId as PrincipalId,createdTs: principal.attributes.createdTs as number,updaterId: principal.attributes.updaterId as PrincipalId,diff --git a/frontend/src/store/modules/project.ts b/frontend/src/store/modules/project.tsindex 3715829315..6d193d244c 100644--- a/frontend/src/store/modules/project.ts+++ b/frontend/src/store/modules/project.ts@@ -34,7 +34,7 @@ function convert(// Only able to assign an empty member list, otherwise would cause circular dependency.// This should be fine as we shouldn't access member via member.project.memberListconst projectWithoutMemberList: Project = {- id: project.id,+ id: parseInt(project.id),rowStatus: attrs.rowStatus,name: attrs.name,key: attrs.key,@@ -84,7 +84,7 @@ function convertMember(>;return {- id: projectMember.id,+ id: parseInt(projectMember.id),project: unknown("PROJECT") as Project,creator,updater,diff --git a/frontend/src/store/modules/stage.ts b/frontend/src/store/modules/stage.tsindex 0cd0251941..c8b28dddd5 100644--- a/frontend/src/store/modules/stage.ts+++ b/frontend/src/store/modules/stage.ts@@ -31,7 +31,7 @@ function convertPartial(stage.relationships!.environment.data as ResourceIdentifier).id;let environment: Environment = unknown("ENVIRONMENT") as Environment;- environment.id = environmentId;+ environment.id = parseInt(environmentId);const taskList: Task[] = [];for (const item of includedList || []) {@@ -62,7 +62,7 @@ function convertPartial(Stage,"id" | "creator" | "updater" | "database" | "taskList">),- id: stage.id,+ id: parseInt(stage.id),creator,updater,environment,diff --git a/frontend/src/store/modules/task.ts b/frontend/src/store/modules/task.tsindex bec696b784..a0a049ea0b 100644--- a/frontend/src/store/modules/task.ts+++ b/frontend/src/store/modules/task.ts@@ -30,7 +30,7 @@ function convertPartial(const databaseId = (task.relationships!.database.data as ResourceIdentifier).id;let database: Database = empty("DATABASE") as Database;- database.id = databaseId;+ database.id = parseInt(databaseId);for (const item of includedList || []) {if (item.type == "database" &&@@ -45,7 +45,7 @@ function convertPartial(Task,"id" | "creator" | "updater" | "database" | "pipeline" | "stage">),- id: task.id,+ id: parseInt(task.id),creator,updater,database,diff --git a/frontend/src/types/common.ts b/frontend/src/types/common.tsindex c18381951f..ad3c108315 100644--- a/frontend/src/types/common.ts+++ b/frontend/src/types/common.ts@@ -13,11 +13,11 @@ import { Message } from "./message";import { Bookmark } from "./bookmark";// System bot id-export const SYSTEM_BOT_ID = "1";+export const SYSTEM_BOT_ID = 1;// The project to hold those databases synced from the instance but haven't been assigned an application// project yet. We can't use UNKNOWN_ID because of referential integrity.-export const DEFAULT_PROJECT_ID = "1";+export const DEFAULT_PROJECT_ID = 1;export const ALL_DATABASE_NAME = "*";@@ -64,10 +64,10 @@ export type QuickActionType =// unknown represents an anomaly.// Returns as function to avoid caller accidentally mutate it.// UNKNOWN_ID means an anomaly, it expects a resource which is missing (e.g. Keyed lookup missing).-export const UNKNOWN_ID = "-1";+export const UNKNOWN_ID = -1;// EMPTY_ID means an expected behavior, it expects no resource (e.g. contains an empty value, using this technic enables// us to declare variable as required, which leads to cleaner code)-export const EMPTY_ID = "";+export const EMPTY_ID = 0;export type ResourceType =| "PRINCIPAL"diff --git a/frontend/src/types/id.ts b/frontend/src/types/id.tsindex e7cc434e24..020127a68f 100644--- a/frontend/src/types/id.ts+++ b/frontend/src/types/id.ts@@ -1,38 +1,40 @@-// These ID format may change in the future, so we encapsulate with a type.-// Also good for readability.+// Use number as the ID type, though the ID type could be transparent to the client and just+// use string, however, that requires server to do string to int conversion since we store+// ID as auto incremental int in the database.+export type IdType = number;-export type ExecutionId = string;+export type ExecutionId = IdType;-export type PrincipalId = string;+export type PrincipalId = IdType;-export type MemberId = string;+export type MemberId = IdType;-export type BookmarkId = string;+export type BookmarkId = IdType;-export type ProjectId = string;+export type ProjectId = IdType;-export type IssueId = string;+export type IssueId = IdType;-export type PipelineId = string;+export type PipelineId = IdType;-export type StageId = string;+export type StageId = IdType;-export type TaskId = string;+export type TaskId = IdType;-export type ActivityId = string;+export type ActivityId = IdType;-export type MessageId = string;+export type MessageId = IdType;-export type EnvironmentId = string;+export type EnvironmentId = IdType;-export type InstanceId = string;+export type InstanceId = IdType;-export type DataSourceId = string;+export type DataSourceId = IdType;-export type DatabaseId = string;+export type DatabaseId = IdType;-export type CommandId = string;-export type CommandRegisterId = string;+export type CommandId = IdType;+export type CommandRegisterId = IdType;// This references to the object id, which can be used as a container.// Currently, only issue can be used a container.diff --git a/frontend/src/views/IssueDetail.vue b/frontend/src/views/IssueDetail.vueindex 92c910919b..2dbb4fa686 100644--- a/frontend/src/views/IssueDetail.vue+++ b/frontend/src/views/IssueDetail.vue@@ -312,7 +312,7 @@ export default {currentUser: currentUser.value,}),projectId: router.currentRoute.value.query.project- ? (router.currentRoute.value.query.project as ProjectId)+ ? parseInt(router.currentRoute.value.query.project as string): UNKNOWN_ID,creatorId: currentUser.value.id,};@@ -337,8 +337,9 @@ export default {.rollbacksql as string;}if (router.currentRoute.value.query.assignee) {- newIssue.assigneeId = router.currentRoute.value.query- .assignee as PrincipalId;+ newIssue.assigneeId = parseInt(+ router.currentRoute.value.query.assignee as string+ );}for (const field of newIssueTemplate.value.inputFieldList) {diff --git a/frontend/src/views/PipelineSimpleFlow.vue b/frontend/src/views/PipelineSimpleFlow.vueindex f6b36a707b..4fa83a50c3 100644--- a/frontend/src/views/PipelineSimpleFlow.vue+++ b/frontend/src/views/PipelineSimpleFlow.vue@@ -1,7 +1,12 @@<template><nav aria-label="Pipeline"><ol- class="border-t border-b border-block-border divide-y divide-gray-300 lg:flex lg:divide-y-0"+ class="+ border-t border-b border-block-border+ divide-y divide-gray-300+ lg:flex+ lg:divide-y-0+ "><liv-for="(item, index) in itemList"@@ -13,7 +18,16 @@><span class="pl-4 py-2 flex items-center text-sm font-medium"><div- class="relative w-6 h-6 flex flex-shrink-0 items-center justify-center rounded-full select-none"+ class="+ relative+ w-6+ h-6+ flex flex-shrink-0+ items-center+ justify-center+ rounded-full+ select-none+ ":class="flowItemIconClass(item)"><template v-if="item.taskStatus === 'PENDING'">@@ -54,7 +68,15 @@</template><template v-else-if="item.taskStatus == 'FAILED'"><span- class="h-2.5 w-2.5 rounded-full text-center pb-6 font-medium text-base"+ class="+ h-2.5+ w-2.5+ rounded-full+ text-center+ pb-6+ font-medium+ text-base+ "aria-hidden="true">!</span>@@ -77,7 +99,13 @@</template></div><div- class="hidden cursor-pointer hover:underline lg:ml-4 lg:flex lg:flex-col"+ class="+ hidden+ cursor-pointer+ hover:underline+ lg:ml-4+ lg:flex lg:flex-col+ ":class="flowItemTextClass(item)"@click.prevent="clickItem(item)">@@ -123,11 +151,11 @@<script lang="ts">import { computed, PropType } from "vue";import { useRouter } from "vue-router";-import { Pipeline, TaskStatus, TaskId, Stage } from "../types";+import { Pipeline, TaskStatus, TaskId, Stage, StageId } from "../types";import { activeTask } from "../utils";interface FlowItem {- stageId: string;+ stageId: StageId;stageName: string;taskId: TaskId;taskName: string;