Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/shared/lib/api/sqle/service/common.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export interface IGlobalWorkflowListData {
}

export interface IGlobalWorkflowListItem {
assignee?: string;
current_step_assignee_user_name_list?: string[];

created_at?: string;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const mockGlobalWorkflowListData: IGlobalWorkflowListData = {
workflow_desc: 'workflow-desc-1',
workflow_type: GlobalWorkflowListItemWorkflowTypeEnum.sql_release,
status: GlobalWorkflowListItemStatusEnum.pending_action,
assignee: 'admin',
current_step_assignee_user_name_list: ['admin'],
created_at: '2026-04-13 10:00:00',
instance_id: '1739531854064652288',
instance_name: 'mysql-1',
Expand All @@ -44,7 +44,7 @@ export const mockGlobalWorkflowListData: IGlobalWorkflowListData = {
workflow_desc: 'workflow-desc-2',
workflow_type: GlobalWorkflowListItemWorkflowTypeEnum.data_export,
status: GlobalWorkflowListItemStatusEnum.completed,
assignee: 'admin',
current_step_assignee_user_name_list: ['admin'],
created_at: '2026-04-13 12:00:00',
instance_id: '1739531942258282496',
instance_name: 'mysql-2',
Expand All @@ -58,7 +58,7 @@ export const mockGlobalWorkflowListData: IGlobalWorkflowListData = {
workflow_desc: 'workflow-desc-3',
workflow_type: GlobalWorkflowListItemWorkflowTypeEnum.sql_release,
status: GlobalWorkflowListItemStatusEnum.pending_approval,
assignee: 'approver',
current_step_assignee_user_name_list: ['approver'],
created_at: '2026-04-13 13:00:00',
instance_id: '1739531854064652288',
instance_name: 'mysql-1',
Expand All @@ -72,7 +72,7 @@ export const mockGlobalWorkflowListData: IGlobalWorkflowListData = {
workflow_desc: 'workflow-desc-4',
workflow_type: GlobalWorkflowListItemWorkflowTypeEnum.sql_release,
status: GlobalWorkflowListItemStatusEnum.in_progress,
assignee: 'operator',
current_step_assignee_user_name_list: ['operator'],
created_at: '2026-04-13 14:00:00',
instance_id: '1739531854064652288',
instance_name: 'mysql-1',
Expand All @@ -86,7 +86,7 @@ export const mockGlobalWorkflowListData: IGlobalWorkflowListData = {
workflow_desc: 'workflow-desc-5',
workflow_type: GlobalWorkflowListItemWorkflowTypeEnum.data_export,
status: GlobalWorkflowListItemStatusEnum.exporting,
assignee: 'exporter',
current_step_assignee_user_name_list: ['exporter'],
created_at: '2026-04-13 15:00:00',
instance_id: '1739531942258282496',
instance_name: 'mysql-2',
Expand All @@ -100,7 +100,7 @@ export const mockGlobalWorkflowListData: IGlobalWorkflowListData = {
workflow_desc: 'workflow-desc-6',
workflow_type: GlobalWorkflowListItemWorkflowTypeEnum.sql_release,
status: GlobalWorkflowListItemStatusEnum.rejected,
assignee: 'reviewer',
current_step_assignee_user_name_list: ['reviewer'],
created_at: '2026-04-13 16:00:00',
instance_id: '1739531854064652288',
instance_name: 'mysql-1',
Expand All @@ -114,7 +114,7 @@ export const mockGlobalWorkflowListData: IGlobalWorkflowListData = {
workflow_desc: 'workflow-desc-7',
workflow_type: GlobalWorkflowListItemWorkflowTypeEnum.sql_release,
status: GlobalWorkflowListItemStatusEnum.cancelled,
assignee: 'owner',
current_step_assignee_user_name_list: ['owner'],
created_at: '2026-04-13 17:00:00',
instance_id: '1739531854064652288',
instance_name: 'mysql-1',
Expand All @@ -128,7 +128,7 @@ export const mockGlobalWorkflowListData: IGlobalWorkflowListData = {
workflow_desc: 'workflow-desc-8',
workflow_type: GlobalWorkflowListItemWorkflowTypeEnum.sql_release,
status: GlobalWorkflowListItemStatusEnum.failed,
assignee: 'owner',
current_step_assignee_user_name_list: ['owner'],
created_at: '2026-04-13 18:00:00',
instance_id: '1739531854064652288',
instance_name: 'mysql-1',
Expand All @@ -142,7 +142,7 @@ export const mockGlobalWorkflowListData: IGlobalWorkflowListData = {
workflow_desc: 'workflow-desc-9',
workflow_type: GlobalWorkflowListItemWorkflowTypeEnum.sql_release,
status: GlobalWorkflowListItemStatusEnum.unknown,
assignee: 'owner',
current_step_assignee_user_name_list: ['owner'],
created_at: '2026-04-13 19:00:00',
instance_id: '1739531854064652288',
instance_name: 'mysql-1',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,15 @@ export const workflowPanelColumns = (): ActiontechTableColumn<
}
},
{
dataIndex: 'assignee',
dataIndex: 'current_step_assignee_user_name_list',
title: t('globalDashboard.workflow.column.assignee'),
render: (assignee) => {
if (!assignee) {
render: (list) => {
if (!list || list.length === 0) {
return '-';
}
return <CustomAvatar name={assignee} />;
return list.map((v: string) => (
<CustomAvatar key={v} name={v} />
));
}
},
{
Expand Down
Loading