Skip to content

Commit cc572d3

Browse files
authored
Merge pull request #700 from PROCEED-Labs/ant-design-upgrade
Ant Design Update
2 parents 5933691 + 82f4337 commit cc572d3

File tree

109 files changed

+1027
-1042
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+1027
-1042
lines changed

src/management-system-v2/app/(auth)/signin/signin.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ const SignIn: FC<{
147147
</Button>
148148

149149
<Alert
150-
message='Note: if you select "Continue as Guest", the this Platform is functionally restricted and your created processes will not be accessible on other devices. All your data will be deleted automatically after a few days."'
150+
title='Note: if you select "Continue as Guest", the this Platform is functionally restricted and your created processes will not be accessible on other devices. All your data will be deleted automatically after a few days."'
151151
type="info"
152152
/>
153153
</>

src/management-system-v2/app/(dashboard)/[environmentId]/(automation)/executions-dashboard/dashboard-view.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import { useMemo } from 'react';
3+
import { useMemo, Fragment } from 'react';
44
import useDeployments from './use-deployments';
55
import { Card, Col, Row, Skeleton, Statistic } from 'antd';
66

@@ -97,7 +97,7 @@ const DashboardView: React.FC = () => {
9797
return (
9898
<>
9999
{Object.entries(stats).map(([name, entries]) => (
100-
<>
100+
<Fragment key={name}>
101101
<h3>{name}</h3>
102102
<Row key={name} gutter={16}>
103103
{entries.map((entry) => (
@@ -108,7 +108,7 @@ const DashboardView: React.FC = () => {
108108
</Col>
109109
))}
110110
</Row>
111-
</>
111+
</Fragment>
112112
))}
113113
</>
114114
);

src/management-system-v2/app/(dashboard)/[environmentId]/(automation)/executions/[processId]/element-status.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export function ElementStatus({ info }: { info: RelevantInstanceInfo }) {
3232
{/** TODO: correct image url */}
3333
<Image
3434
// TODO: use engine endpoint to get the image
35+
alt="Image linked to the element"
3536
src={endpointBuilder('get', '/resources/process/:definitionId/images/:fileName', {
3637
pathParams: {
3738
definitionId: info.process.definitionId,
@@ -59,7 +60,7 @@ export function ElementStatus({ info }: { info: RelevantInstanceInfo }) {
5960

6061
statusEntries.push([
6162
'Current state:',
62-
status && statusType && <Alert type={statusType} message={status} showIcon />,
63+
status && statusType && <Alert type={statusType} title={status} showIcon />,
6364
]);
6465

6566
// from ./src/management-system/src/frontend/components/deployments/activityInfo/ActivityStatusInformation.vue

src/management-system-v2/app/(dashboard)/[environmentId]/(automation)/executions/[processId]/instance-variables.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const InstanceVariables: React.FC<InstanceVariableProps> = ({ info, refetch }) =
115115
return (
116116
<>
117117
<Table
118-
pagination={{ position: ['bottomCenter'] }}
118+
pagination={{ placement: ['bottomCenter'] }}
119119
rowKey="name"
120120
scroll={{ x: true }}
121121
columns={columns}

src/management-system-v2/app/(dashboard)/[environmentId]/(automation)/executions/[processId]/process-deployment-view.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ export default function ProcessDeploymentView({
170170
? selectedInstance.processInstanceId
171171
: undefined
172172
}
173+
variant="borderless"
173174
onSelect={(value) => setSelectedInstanceId(value)}
174175
options={instances?.map((instance, idx) => ({
175176
value: instance.processInstanceId,

src/management-system-v2/app/(dashboard)/[environmentId]/(automation)/executions/[processId]/start-form-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const StartFormModal: React.FC<StartFormModalProps> = ({ html, onSubmit, onCance
1818
height={'80vh'}
1919
style={{ padding: '1px' }}
2020
styles={{
21-
content: {
21+
container: {
2222
height: '80vh',
2323
display: 'flex',
2424
flexDirection: 'column',

src/management-system-v2/app/(dashboard)/[environmentId]/(automation)/executions/[processId]/use-colors.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RefObject, useCallback, useEffect, useRef, useState } from 'react';
1+
import { RefObject, useCallback, useEffect, useRef } from 'react';
22

33
import { ColorOptions, flowElementsStyling } from './instance-coloring';
44
import { InstanceInfo } from '@/lib/engines/deployment';

src/management-system-v2/app/(dashboard)/[environmentId]/(automation)/executions/[processId]/use-instance-variables.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import { useEffect, useMemo, useState } from 'react';
22
import { getProcessIds, getVariablesFromElementById } from '@proceed/bpmn-helper';
33
import { DeployedProcessInfo, InstanceInfo, VersionInfo } from '@/lib/engines/deployment';
4-
import {
5-
ProcessVariable,
6-
ProcessVariableSchema,
7-
textFormatMap,
8-
} from '@/lib/process-variable-schema';
4+
import { ProcessVariable, ProcessVariableSchema } from '@/lib/process-variable-schema';
95

106
export type Variable = {
117
name: string;

src/management-system-v2/app/(dashboard)/[environmentId]/(automation)/executions/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import { getUsersFavourites } from '@/lib/data/users';
66
import { getDeployedProcessesFromSavedEngines } from '@/lib/engines/saved-engines-helpers';
77
import { DeployedProcessInfo } from '@/lib/engines/deployment';
88
import { isUserErrorResponse } from '@/lib/user-error';
9-
import { Skeleton } from 'antd';
10-
import { Suspense } from 'react';
119
import { getDbEngines } from '@/lib/data/db/engines';
1210

1311
function getDeploymentNames<T extends { versions: DeployedProcessInfo['versions'] }>(

src/management-system-v2/app/(dashboard)/[environmentId]/(automation)/projects/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const Projects = async (props: { params: Promise<{ environmentId: string }> }) =
1212

1313
return (
1414
<Content title="Projects">
15-
<Space direction="vertical" size="large" style={{ display: 'flex' }}>
15+
<Space orientation="vertical" size="large" style={{ display: 'flex' }}>
1616
<ProjectStats />
1717
<Processes
1818
processes={[]}

0 commit comments

Comments
 (0)