From 0606c86e2a7a56e32026129f8779e52c2cd5115a Mon Sep 17 00:00:00 2001 From: Azmi Date: Fri, 23 Jun 2023 10:06:40 +0700 Subject: [PATCH 01/11] update version --- packages/react-components/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-components/package.json b/packages/react-components/package.json index 8fa4c350..1de4a0c1 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -1,5 +1,5 @@ { - "version": "0.8.19", + "version": "0.8.20", "license": "MIT", "main": "dist/index.js", "typings": "dist/index.d.ts", From 6a81e86324688ff32f54b4e42ef59c52d7bfa7a0 Mon Sep 17 00:00:00 2001 From: Azmi Date: Mon, 26 Jun 2023 13:30:03 +0700 Subject: [PATCH 02/11] wip --- .../src/Automations/Automations.stories.tsx | 3 ++- .../AutomationsList/AutomationsList.tsx | 5 ++++- .../src/Automations/helper/cell.tsx | 17 +++++++++++++++++ .../src/Automations/helper/helper.ts | 4 +++- .../react-components/src/Automations/type.ts | 4 ++++ .../src/Jobs/JobList/JobList.tsx | 4 ++-- .../react-components/src/Jobs/JobList/types.ts | 3 +++ .../react-components/src/Jobs/Jobs.stories.tsx | 3 +++ 8 files changed, 38 insertions(+), 5 deletions(-) diff --git a/packages/react-components/src/Automations/Automations.stories.tsx b/packages/react-components/src/Automations/Automations.stories.tsx index 02b99fa5..7d96a569 100644 --- a/packages/react-components/src/Automations/Automations.stories.tsx +++ b/packages/react-components/src/Automations/Automations.stories.tsx @@ -11,7 +11,7 @@ export default { export const AutomationsStory = () => { - const disabledColumns = ['fullName', 'updated', 'taskId', 'hostId'] + const disabledColumns = ['fullName', 'updated', 'hostId', 'triggerCondition.conditional', 'triggerCondition.isMet', 'currentStatus', 'requested'] const dataSources = (token) => ({ @@ -27,6 +27,7 @@ export const AutomationsStory = () => { )} diff --git a/packages/react-components/src/Automations/AutomationsList/AutomationsList.tsx b/packages/react-components/src/Automations/AutomationsList/AutomationsList.tsx index 8588ced3..9de6822e 100644 --- a/packages/react-components/src/Automations/AutomationsList/AutomationsList.tsx +++ b/packages/react-components/src/Automations/AutomationsList/AutomationsList.tsx @@ -42,6 +42,7 @@ const DEFAULT_COLUMNS = [ { title: 'Group', name: 'group' }, { title: 'Name', name: 'name' }, { title: 'Task Id', name: 'taskId' }, + { title: 'Job Id', name: 'jobId' }, { title: 'Enabled', name: 'isEnabled' }, { title: 'Host Group', name: 'hostGroup' }, { title: 'Trigger Condition', name: 'triggerCondition.conditional' }, @@ -57,6 +58,7 @@ function AutomationsList(props: AutomationsListProps) { const { dataSources, disabledColumns, + jobRefferingPage } = props; const classes = AutomationsListStyles(); const [automations, setAutomations] = useState([]) @@ -146,7 +148,7 @@ function AutomationsList(props: AutomationsListProps) { showDialog: true, title: `Delete Automation`, message: ` - This will delete the selected scenario from the list. After it is + This will delete the selected Automtion from the list. After it is deleted you cannot retrieve the data. Are you sure you want to delete this Automation?`, cancelLabel: 'Cancel', @@ -263,6 +265,7 @@ function AutomationsList(props: AutomationsListProps) { cellComponent={(props) => ( void; onEditAutomation: (automation: AutomationData) => void; onDeleteDialog: (id: string) => void isLoading: boolean + pageJob: string } export const FilterCellRow = (props) => { @@ -77,11 +79,26 @@ const Cell: React.FC = (props) => { onEditAutomation, onDeleteDialog, isLoading, + pageJob, ...rest } = props; const value = row[column.name]; const classes = CellStyles(); + if (column.name === 'taskId') { + const handleClick = () => { + window.location.assign(`${pageJob}/${value}`); + }; + + return ( + +
+ {value} +
+ + ) + } + if (column.name === 'isEnabled') { return ( diff --git a/packages/react-components/src/Automations/helper/helper.ts b/packages/react-components/src/Automations/helper/helper.ts index 1962c45d..7349cbea 100644 --- a/packages/react-components/src/Automations/helper/helper.ts +++ b/packages/react-components/src/Automations/helper/helper.ts @@ -55,7 +55,9 @@ export const processScalarStatus = (scalarStatus) => { triggerStatusMap.set(id + '/' + triggerId, scalar.value === "True"); } } - + console.log('condition', conditionStatusMap) + console.log('lastJobid', lastJobIdMap) + console.log('trigger', triggerStatusMap) return { conditionStatusMap, lastJobIdMap, triggerStatusMap }; } diff --git a/packages/react-components/src/Automations/type.ts b/packages/react-components/src/Automations/type.ts index aa0c743f..86c6548a 100644 --- a/packages/react-components/src/Automations/type.ts +++ b/packages/react-components/src/Automations/type.ts @@ -6,6 +6,8 @@ interface AutomationsListProps { dataSources: DataSource; /** Hide or show columns */ disabledColumns?: string[]; + /** Reffering Job Pages */ + jobRefferingPage?: string } interface AutomationData { @@ -13,6 +15,8 @@ interface AutomationData { id?: string; /** Task Id of Automation */ taskId: string; + /** Jobs Id of Automation */ + jobId?: string; /** Group of the Automation */ group: string; /** Host group of Automations */ diff --git a/packages/react-components/src/Jobs/JobList/JobList.tsx b/packages/react-components/src/Jobs/JobList/JobList.tsx index 654adb73..8787112a 100644 --- a/packages/react-components/src/Jobs/JobList/JobList.tsx +++ b/packages/react-components/src/Jobs/JobList/JobList.tsx @@ -47,7 +47,7 @@ const DEFAULT_COLUMNS = [ const NOTIFICATION_HUB = '/notificationhub'; const JobList = (props: JobListProps) => { - const { dataSources, disabledColumns, parameters, startTimeUtc, dateTimeFormat, timeZone } = props; + const { dataSources, disabledColumns, parameters, startTimeUtc, dateTimeFormat, timeZone, defaultFilter } = props; const initialDateState = { from: new Date(startTimeUtc).toISOString(), to: new Date().toISOString(), @@ -451,7 +451,7 @@ const JobList = (props: JobListProps) => { {loading && } - + diff --git a/packages/react-components/src/Jobs/JobList/types.ts b/packages/react-components/src/Jobs/JobList/types.ts index 8761d643..41d371ef 100644 --- a/packages/react-components/src/Jobs/JobList/types.ts +++ b/packages/react-components/src/Jobs/JobList/types.ts @@ -1,12 +1,15 @@ import { DataSource } from '../../api/types'; import { LogData } from '../../Logs/LogList/types'; import { DateProps } from '../../common/types'; +import { Filter } from '@devexpress/dx-react-grid'; interface JobListProps { /** Data source to get the logs data */ dataSources: DataSource[]; /** Hide or show columns */ disabledColumns?: string[]; + /** Hide or show columns */ + defaultFilter?: Filter[]; /** Data source to get the logs specific parameters */ parameters?: Parameters[]; /** The date time format that the dates shown in */ diff --git a/packages/react-components/src/Jobs/Jobs.stories.tsx b/packages/react-components/src/Jobs/Jobs.stories.tsx index 31366910..a3580800 100644 --- a/packages/react-components/src/Jobs/Jobs.stories.tsx +++ b/packages/react-components/src/Jobs/Jobs.stories.tsx @@ -25,6 +25,8 @@ export const JobListStory = () => { const disabledColumns = ['accountId', 'Area']; + const defaultFilter = [{columnName: 'taskId', operation: 'contains', value: 'workflow'}] + const parameters = [ { parameter: 'Area', @@ -42,6 +44,7 @@ export const JobListStory = () => { dateTimeFormat="yyyy-MM-dd HH:mm:ss" startTimeUtc={addDays(new Date(), -2).toISOString()} timeZone="Australia/Brisbane" + defaultFilter={defaultFilter} translations={{ noEntriesData: 'Tidak ada entri job', noEntriesFilter: 'Tidak ada entri job untuk status job yang dipilih', From a433bc3b0a2fe81a03fc1600f0187a7677ac44a8 Mon Sep 17 00:00:00 2001 From: Azmi Date: Mon, 26 Jun 2023 13:30:41 +0700 Subject: [PATCH 03/11] tidy up --- packages/react-components/src/Automations/helper/cell.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/react-components/src/Automations/helper/cell.tsx b/packages/react-components/src/Automations/helper/cell.tsx index 302a6deb..5d3b05a7 100644 --- a/packages/react-components/src/Automations/helper/cell.tsx +++ b/packages/react-components/src/Automations/helper/cell.tsx @@ -13,7 +13,6 @@ import { Table } from '@devexpress/dx-react-grid'; import { AutomationData, ITrigger } from '../type'; import StatusCell from '../../Jobs/JobList/helpers/StatusCell' import { CellStyles } from '../styles'; -import { useHistory } from 'react-router-dom'; interface CellProps extends Table.DataCellProps { onViewAutomation: (automation: AutomationData) => void; From dd4f3ac1cafafbaa0ba932c10e5b7a0528e7e6cd Mon Sep 17 00:00:00 2001 From: Azmi Date: Mon, 26 Jun 2023 13:32:04 +0700 Subject: [PATCH 04/11] upgrade version --- packages/react-components/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-components/package.json b/packages/react-components/package.json index 1de4a0c1..9f107d75 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -1,5 +1,5 @@ { - "version": "0.8.20", + "version": "0.8.21", "license": "MIT", "main": "dist/index.js", "typings": "dist/index.d.ts", From 3e1b084d8bf53d50e6547e951eb66d00cabea435 Mon Sep 17 00:00:00 2001 From: Azmi Date: Mon, 26 Jun 2023 15:28:47 +0700 Subject: [PATCH 05/11] integrate it with Jobs Id --- .../src/Automations/helper/cell.tsx | 21 ++++++++++++++----- .../src/Automations/helper/helper.ts | 4 +--- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/packages/react-components/src/Automations/helper/cell.tsx b/packages/react-components/src/Automations/helper/cell.tsx index 5d3b05a7..10813f04 100644 --- a/packages/react-components/src/Automations/helper/cell.tsx +++ b/packages/react-components/src/Automations/helper/cell.tsx @@ -84,17 +84,28 @@ const Cell: React.FC = (props) => { const value = row[column.name]; const classes = CellStyles(); - if (column.name === 'taskId') { + if (column.name === 'jobId') { const handleClick = () => { - window.location.assign(`${pageJob}/${value}`); + window.location.assign(`${pageJob}/${row.taskId}`); }; return ( -
- {value} -
+ +
+ {value} +
+
+ ) } diff --git a/packages/react-components/src/Automations/helper/helper.ts b/packages/react-components/src/Automations/helper/helper.ts index 7349cbea..8845db2f 100644 --- a/packages/react-components/src/Automations/helper/helper.ts +++ b/packages/react-components/src/Automations/helper/helper.ts @@ -16,6 +16,7 @@ export const applyLastJobIdStatus = async (lastJobIdMap: Map, dataS if (lastJobIdMap.has(automation.id!)) { try { const job = await fetchJob(dataSources, lastJobIdMap.get(automation.id!)).toPromise(); + automation.jobId = job.id automation.currentStatus = job.status; automation.requested = job.requested; } catch (error) { @@ -55,9 +56,6 @@ export const processScalarStatus = (scalarStatus) => { triggerStatusMap.set(id + '/' + triggerId, scalar.value === "True"); } } - console.log('condition', conditionStatusMap) - console.log('lastJobid', lastJobIdMap) - console.log('trigger', triggerStatusMap) return { conditionStatusMap, lastJobIdMap, triggerStatusMap }; } From f189b64a0fc2b334bd81a261ff21201d4f82135f Mon Sep 17 00:00:00 2001 From: Azmi Date: Mon, 26 Jun 2023 15:29:21 +0700 Subject: [PATCH 06/11] upgrade version --- packages/react-components/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-components/package.json b/packages/react-components/package.json index 9f107d75..ddea61df 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -1,5 +1,5 @@ { - "version": "0.8.21", + "version": "0.8.22", "license": "MIT", "main": "dist/index.js", "typings": "dist/index.d.ts", From 14629d32c84712a75d6546cbab01ccae3f094597 Mon Sep 17 00:00:00 2001 From: Azmi Date: Wed, 28 Jun 2023 15:07:07 +0700 Subject: [PATCH 07/11] update general dialog --- .../src/common/GeneralDialog/GeneralDialog.tsx | 16 +++++++++++++--- .../src/common/GeneralDialog/types.ts | 17 +++++++++++++++++ 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/packages/react-components/src/common/GeneralDialog/GeneralDialog.tsx b/packages/react-components/src/common/GeneralDialog/GeneralDialog.tsx index b6dd1591..3927cd54 100644 --- a/packages/react-components/src/common/GeneralDialog/GeneralDialog.tsx +++ b/packages/react-components/src/common/GeneralDialog/GeneralDialog.tsx @@ -12,7 +12,17 @@ const GeneralDialog = (props: GeneralDialogProps) => { showDialog, onConfirm, onCancel, - isLoading + isLoading, + button = { + cancel: { + color: 'default', + variant: 'outlined' + }, + submit: { + color: 'primary', + variant: 'contained' + }, + } } = props; const setCancel = () => { @@ -36,10 +46,10 @@ const GeneralDialog = (props: GeneralDialogProps) => { {message} - - diff --git a/packages/react-components/src/common/GeneralDialog/types.ts b/packages/react-components/src/common/GeneralDialog/types.ts index 79f3b965..cb866771 100644 --- a/packages/react-components/src/common/GeneralDialog/types.ts +++ b/packages/react-components/src/common/GeneralDialog/types.ts @@ -1,3 +1,7 @@ +import { PropTypes } from "@material-ui/core"; + +type Variant = 'text' | 'outlined' | 'contained' + interface GeneralDialogProps { /** * Value to be set as dialog id @@ -35,6 +39,19 @@ interface GeneralDialogProps { * when state is Loading */ isLoading?: boolean; + /** + * Color of button dialog + */ + button?: { + cancel: { + color: PropTypes.Color + variant: Variant + }, + submit: { + color: PropTypes.Color + variant: Variant + }, + }; } From 853a03fdbf41947636b124d2cd688152d2e14920 Mon Sep 17 00:00:00 2001 From: Azmi Date: Wed, 28 Jun 2023 15:08:47 +0700 Subject: [PATCH 08/11] fix automation --- .../src/Automations/Automations.stories.tsx | 6 +++- .../AutomationsList/AutomationsList.tsx | 30 +++++++++++++------ .../helper/detailAutomationsDialog.tsx | 6 ++-- .../helper/formAutomationDialog.tsx | 4 ++- .../helper/formInputAutomation.tsx | 10 ++++++- .../react-components/src/Automations/type.ts | 3 ++ 6 files changed, 44 insertions(+), 15 deletions(-) diff --git a/packages/react-components/src/Automations/Automations.stories.tsx b/packages/react-components/src/Automations/Automations.stories.tsx index 7d96a569..f8a4c7e5 100644 --- a/packages/react-components/src/Automations/Automations.stories.tsx +++ b/packages/react-components/src/Automations/Automations.stories.tsx @@ -12,7 +12,10 @@ export default { export const AutomationsStory = () => { const disabledColumns = ['fullName', 'updated', 'hostId', 'triggerCondition.conditional', 'triggerCondition.isMet', 'currentStatus', 'requested'] - + const disabledTextField = { + name: true, + group: true + } const dataSources = (token) => ({ token, @@ -28,6 +31,7 @@ export const AutomationsStory = () => { disabledColumns={disabledColumns} dataSources={dataSources(accessToken.token)} jobRefferingPage={'jobs'} + disabledTextField={disabledTextField} /> )} diff --git a/packages/react-components/src/Automations/AutomationsList/AutomationsList.tsx b/packages/react-components/src/Automations/AutomationsList/AutomationsList.tsx index 9de6822e..77c2bc15 100644 --- a/packages/react-components/src/Automations/AutomationsList/AutomationsList.tsx +++ b/packages/react-components/src/Automations/AutomationsList/AutomationsList.tsx @@ -58,7 +58,8 @@ function AutomationsList(props: AutomationsListProps) { const { dataSources, disabledColumns, - jobRefferingPage + jobRefferingPage, + disabledTextField } = props; const classes = AutomationsListStyles(); const [automations, setAutomations] = useState([]) @@ -97,7 +98,7 @@ function AutomationsList(props: AutomationsListProps) { const processGroupIds = async (listGroupId, dataSources, conditionStatusMap: Map, lastJobIdMap: Map, triggerStatusMap: Map, change?: boolean) => { const newAutomations: AutomationData[] = []; const uniqueGroupSet = new Set(); - + for (let element of listGroupId) { const group = element.split('/'); const groupId = group[0]; @@ -106,32 +107,32 @@ function AutomationsList(props: AutomationsListProps) { } uniqueGroupSet.add(groupId); const automationsData = await fetchListAutomations(dataSources, groupId).toPromise(); - + for (let automation of automationsData) { applyConditionStatus(conditionStatusMap, automation); applyLastJobIdStatus(lastJobIdMap, dataSources, automation); applyTriggerStatus(triggerStatusMap, automation); } - + if (change) { newAutomations.push(...automationsData); } else { setAutomations((prevVal) => [...prevVal, ...automationsData]); } } - + return newAutomations; } - + const fetchInitialData = async (change?: boolean) => { setLoading(true); try { const listGroupId = await fetchGroupId(dataSources).toPromise(); const scalarStatus = await getScalarStatus(dataSources).toPromise(); - - const {conditionStatusMap, lastJobIdMap, triggerStatusMap} = processScalarStatus(scalarStatus); + + const { conditionStatusMap, lastJobIdMap, triggerStatusMap } = processScalarStatus(scalarStatus); const automationsData = await processGroupIds(listGroupId, dataSources, conditionStatusMap, lastJobIdMap, triggerStatusMap, change); - + if (change) { setAutomations(automationsData); } @@ -230,6 +231,16 @@ function AutomationsList(props: AutomationsListProps) { showDialog={dialog.showDialog} onConfirm={dialog.onConfirm} onCancel={handleCloseDeleteDialog} + button={{ + cancel: { + color: 'primary', + variant: 'contained' + }, + submit: { + color: 'default', + variant: 'outlined' + }, + }} isLoading={loading} /> = ({ open, onClo const classes = DetailAutomationStyle(); return ( - + @@ -129,14 +129,14 @@ const DetailAutomationsDialog: FC = ({ open, onClo Priority: {automation?.priority} Host Group: {automation?.hostGroup}
- + Tag: {automation?.tag} Task Parameters: {Object.entries(automation?.taskParameters || {}).map(([key, value], index) => (
- {index + 1}. {key}: {value} + {index + 1}. {key}: {value}
))}
diff --git a/packages/react-components/src/Automations/helper/formAutomationDialog.tsx b/packages/react-components/src/Automations/helper/formAutomationDialog.tsx index 18408f3c..8753ff68 100644 --- a/packages/react-components/src/Automations/helper/formAutomationDialog.tsx +++ b/packages/react-components/src/Automations/helper/formAutomationDialog.tsx @@ -24,7 +24,7 @@ import { useForm } from './helper'; import { ArrowBack } from '@material-ui/icons'; const FormAutomationDialog: React.FC = ({ - open, onClose, automation, dataSources, fetchData + open, onClose, automation, dataSources, fetchData, disabledTextField }) => { const classes = FormAutomationStyles(); const [addMode, setAddMode] = useState(true) @@ -257,6 +257,7 @@ const FormAutomationDialog: React.FC = ({ {tabValue === 0 && ( = ({ handleAddField={handleAddField} handleUpdateField={handleUpdateField} handleRemoveField={handleRemoveField} + disabledTextField={disabledTextField} /> )} {tabValue === 1 && ( diff --git a/packages/react-components/src/Automations/helper/formInputAutomation.tsx b/packages/react-components/src/Automations/helper/formInputAutomation.tsx index 3b9dcaf4..602f6972 100644 --- a/packages/react-components/src/Automations/helper/formInputAutomation.tsx +++ b/packages/react-components/src/Automations/helper/formInputAutomation.tsx @@ -11,6 +11,8 @@ export default function FormInputAutomation({ handleAddField, handleUpdateField, handleRemoveField, + disabledTextField, + addMode, }) { return ( @@ -25,7 +27,8 @@ export default function FormInputAutomation({ fullWidth value={formValues.name} onChange={handleChange} - /> + disabled={!addMode && disabledTextField?.name} + /> @@ -51,6 +55,7 @@ export default function FormInputAutomation({ fullWidth value={formValues.taskId} onChange={handleChange} + disabled={!addMode && disabledTextField?.taskId} /> @@ -64,6 +69,7 @@ export default function FormInputAutomation({ fullWidth value={formValues.hostGroup} onChange={handleChange} + disabled={!addMode && disabledTextField?.hostGroup} /> @@ -77,6 +83,7 @@ export default function FormInputAutomation({ fullWidth value={formValues.tag} onChange={handleChange} + disabled={!addMode && disabledTextField?.tag} /> @@ -88,6 +95,7 @@ export default function FormInputAutomation({ fullWidth value={formValues.priority} onChange={handleChange} + disabled={!addMode && disabledTextField?.priority} /> diff --git a/packages/react-components/src/Automations/type.ts b/packages/react-components/src/Automations/type.ts index 86c6548a..4c728f0b 100644 --- a/packages/react-components/src/Automations/type.ts +++ b/packages/react-components/src/Automations/type.ts @@ -6,6 +6,8 @@ interface AutomationsListProps { dataSources: DataSource; /** Hide or show columns */ disabledColumns?: string[]; + /** Disabled spesific text field */ + disabledTextField?: Record /** Reffering Job Pages */ jobRefferingPage?: string } @@ -94,6 +96,7 @@ interface IFormAutomationDialog { open: boolean; onClose: () => void; automation?: AutomationData + disabledTextField?: Record } interface ITriggerParameter { From 7e11c07c34fec1a65762bc666c73e6100cc11a95 Mon Sep 17 00:00:00 2001 From: Azmi Date: Wed, 28 Jun 2023 15:54:19 +0700 Subject: [PATCH 09/11] fix interval --- .../src/Automations/AutomationsList/AutomationsList.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/react-components/src/Automations/AutomationsList/AutomationsList.tsx b/packages/react-components/src/Automations/AutomationsList/AutomationsList.tsx index 77c2bc15..31599c86 100644 --- a/packages/react-components/src/Automations/AutomationsList/AutomationsList.tsx +++ b/packages/react-components/src/Automations/AutomationsList/AutomationsList.tsx @@ -83,6 +83,9 @@ function AutomationsList(props: AutomationsListProps) { (async () => { try { await fetchInitialData(); + intervalId = setInterval(async () => { + await fetchInitialData(true); + }, 30000); } catch (error) { console.log('err', error); } From 6f2da27a112bca5e7727a2dbe593d9eb5749c55c Mon Sep 17 00:00:00 2001 From: Azmi Date: Wed, 28 Jun 2023 16:04:58 +0700 Subject: [PATCH 10/11] update version --- packages/react-components/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-components/package.json b/packages/react-components/package.json index ddea61df..c655865b 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -1,5 +1,5 @@ { - "version": "0.8.22", + "version": "0.8.23", "license": "MIT", "main": "dist/index.js", "typings": "dist/index.d.ts", From e3022407b24c95004bd62d3a18da507fcedda54d Mon Sep 17 00:00:00 2001 From: Azmi Date: Thu, 6 Jul 2023 10:57:46 +0700 Subject: [PATCH 11/11] fix feedback --- packages/react-components/package.json | 2 +- .../src/Automations/AutomationsList/AutomationsList.tsx | 4 ++-- packages/react-components/src/Automations/type.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-components/package.json b/packages/react-components/package.json index c655865b..0a5bb854 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -1,5 +1,5 @@ { - "version": "0.8.23", + "version": "0.8.24", "license": "MIT", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/packages/react-components/src/Automations/AutomationsList/AutomationsList.tsx b/packages/react-components/src/Automations/AutomationsList/AutomationsList.tsx index 31599c86..09b36af3 100644 --- a/packages/react-components/src/Automations/AutomationsList/AutomationsList.tsx +++ b/packages/react-components/src/Automations/AutomationsList/AutomationsList.tsx @@ -58,7 +58,7 @@ function AutomationsList(props: AutomationsListProps) { const { dataSources, disabledColumns, - jobRefferingPage, + jobReferringPage, disabledTextField } = props; const classes = AutomationsListStyles(); @@ -280,7 +280,7 @@ function AutomationsList(props: AutomationsListProps) { cellComponent={(props) => ( /** Reffering Job Pages */ - jobRefferingPage?: string + jobReferringPage?: string } interface AutomationData {