diff --git a/spiffworkflow-frontend/src/ContainerForExtensions.tsx b/spiffworkflow-frontend/src/ContainerForExtensions.tsx index b3e5f000..8be72a5f 100644 --- a/spiffworkflow-frontend/src/ContainerForExtensions.tsx +++ b/spiffworkflow-frontend/src/ContainerForExtensions.tsx @@ -36,7 +36,7 @@ export default function ContainerForExtensions() { [targetUris.extensionListPath]: ['GET'], }; const { ability, permissionsLoaded } = usePermissionFetcher( - permissionRequestData + permissionRequestData, ); const { removeError } = useAPIError(); @@ -58,12 +58,12 @@ export default function ContainerForExtensions() { const eni: UiSchemaUxElement[] = processModels .map((processModel: ProcessModel) => { const extensionUiSchemaFile = processModel.files.find( - (file: ProcessFile) => file.name === 'extension_uischema.json' + (file: ProcessFile) => file.name === 'extension_uischema.json', ); if (extensionUiSchemaFile && extensionUiSchemaFile.file_contents) { try { const extensionUiSchema: ExtensionUiSchema = JSON.parse( - extensionUiSchemaFile.file_contents + extensionUiSchemaFile.file_contents, ); if ( extensionUiSchema && @@ -74,7 +74,7 @@ export default function ContainerForExtensions() { } } catch (jsonParseError: any) { console.error( - `Unable to get navigation items for ${processModel.id}` + `Unable to get navigation items for ${processModel.id}`, ); } } diff --git a/spiffworkflow-frontend/src/components/ActiveUsers.tsx b/spiffworkflow-frontend/src/components/ActiveUsers.tsx index 3875cdb4..1c5f7a91 100644 --- a/spiffworkflow-frontend/src/components/ActiveUsers.tsx +++ b/spiffworkflow-frontend/src/components/ActiveUsers.tsx @@ -51,7 +51,7 @@ export default function ActiveUsers() { 15, DateAndTimeService.REFRESH_TIMEOUT_SECONDS, updateActiveUsers, - unregisterUser + unregisterUser, ); // eslint-disable-next-line react-hooks/exhaustive-deps }, []); // it is critical to only run this once. diff --git a/spiffworkflow-frontend/src/components/DataStoreForm.tsx b/spiffworkflow-frontend/src/components/DataStoreForm.tsx index 4e1345bb..91b94ec6 100644 --- a/spiffworkflow-frontend/src/components/DataStoreForm.tsx +++ b/spiffworkflow-frontend/src/components/DataStoreForm.tsx @@ -34,7 +34,7 @@ export default function DataStoreForm({ const [typeInvalid, setTypeInvalid] = useState(false); const [schemaInvalid, setSchemaInvalid] = useState(false); const [dataStoreTypes, setDataStoreTypes] = useState<[DataStoreType] | []>( - [] + [], ); const [selectedDataStoreType, setSelectedDataStoreType] = useState(null); @@ -67,7 +67,7 @@ export default function DataStoreForm({ const location = dataStoreLocation(); if (location !== '/') { navigate( - `/process-groups/${modifyProcessIdentifierForPathParam(location)}` + `/process-groups/${modifyProcessIdentifierForPathParam(location)}`, ); } else { navigate(`/process-groups`); @@ -173,12 +173,12 @@ export default function DataStoreForm({ }; const dataStoreTypeDisplayString = ( - dataStoreType: DataStoreType | null + dataStoreType: DataStoreType | null, ): string => { if (dataStoreType) { return `${dataStoreType.name} (${truncateString( dataStoreType.description, - 75 + 75, )})`; } return ''; @@ -215,7 +215,7 @@ export default function DataStoreForm({ } setIdHasBeenUpdatedByUser(true); }} - /> + />, ); if (mode === 'edit') { @@ -226,7 +226,7 @@ export default function DataStoreForm({ readonly labelText="Type*" value={dataStoreTypeDisplayString(selectedDataStoreType)} - /> + />, ); } else { textInputs.push( @@ -241,7 +241,7 @@ export default function DataStoreForm({ invalid={typeInvalid} placeholder="Choose the data store type" selectedItem={selectedDataStoreType} - /> + />, ); } @@ -254,7 +254,7 @@ export default function DataStoreForm({ labelText="Schema*" value={dataStore.schema} onChange={(event: any) => onSchemaChanged(event.target.value)} - /> + />, ); textInputs.push( @@ -266,7 +266,7 @@ export default function DataStoreForm({ onChange={(event: any) => updateDataStore({ description: event.target.value }) } - /> + />, ); return textInputs; diff --git a/spiffworkflow-frontend/src/components/DataStoreListTable.tsx b/spiffworkflow-frontend/src/components/DataStoreListTable.tsx index 4c919ca9..5fde46aa 100644 --- a/spiffworkflow-frontend/src/components/DataStoreListTable.tsx +++ b/spiffworkflow-frontend/src/components/DataStoreListTable.tsx @@ -34,7 +34,7 @@ export default function DataStoreListTable() { searchParams, 10, 1, - 'datastore' + 'datastore', ); const dataStoreType = searchParams.get('type') || ''; const dataStoreIdentifier = searchParams.get('identifier') || ''; @@ -114,7 +114,7 @@ export default function DataStoreListTable() { searchParams, 10, 1, - 'datastore' + 'datastore', ); return ( <> diff --git a/spiffworkflow-frontend/src/components/DataStoreListTiles.tsx b/spiffworkflow-frontend/src/components/DataStoreListTiles.tsx index 62b2240c..d7882da3 100644 --- a/spiffworkflow-frontend/src/components/DataStoreListTiles.tsx +++ b/spiffworkflow-frontend/src/components/DataStoreListTiles.tsx @@ -33,7 +33,7 @@ export default function DataStoreListTiles({ [targetUris.dataStoreListPath]: ['GET'], }; const { ability, permissionsLoaded } = usePermissionFetcher( - permissionRequestData + permissionRequestData, ); useEffect(() => { diff --git a/spiffworkflow-frontend/src/components/ErrorDisplay.tsx b/spiffworkflow-frontend/src/components/ErrorDisplay.tsx index 441aa377..960a10ff 100644 --- a/spiffworkflow-frontend/src/components/ErrorDisplay.tsx +++ b/spiffworkflow-frontend/src/components/ErrorDisplay.tsx @@ -12,7 +12,7 @@ const defaultMessageClassName = 'failure-string'; function errorDetailDisplay( errorObject: any, propertyName: string, - title: string + title: string, ) { // Creates a bit of html for displaying a single error property if it exists. let value = errorObject[propertyName]; @@ -40,7 +40,7 @@ export const errorForDisplayFromString = (errorMessage: string) => { export const errorForDisplayFromProcessInstanceErrorDetail = ( processInstanceEvent: ProcessInstanceLogEntry, - processInstanceErrorEventDetail: ProcessInstanceEventErrorDetail + processInstanceErrorEventDetail: ProcessInstanceEventErrorDetail, ) => { const errorForDisplay: ErrorForDisplay = { message: processInstanceErrorEventDetail.message, @@ -56,7 +56,7 @@ export const errorForDisplayFromProcessInstanceErrorDetail = ( }; export const errorForDisplayFromTestCaseErrorDetails = ( - testCaseErrorDetails: TestCaseErrorDetails + testCaseErrorDetails: TestCaseErrorDetails, ) => { const errorForDisplay: ErrorForDisplay = { message: testCaseErrorDetails.error_messages.join('\n'), @@ -99,19 +99,19 @@ export const childrenForErrorObject = (errorObject: ErrorForDisplay) => { const lineNumber = errorDetailDisplay( errorObject, 'line_number', - 'Line Number' + 'Line Number', ); const errorLine = errorDetailDisplay(errorObject, 'error_line', 'Context'); const taskType = errorDetailDisplay(errorObject, 'task_type', 'Task Type'); const outputData = errorDetailDisplay( errorObject, 'output_data', - 'Output Data' + 'Output Data', ); const expectedData = errorDetailDisplay( errorObject, 'expected_data', - 'Expected Data' + 'Expected Data', ); let codeTrace = null; if (errorObject.task_trace && errorObject.task_trace.length > 0) { @@ -153,7 +153,7 @@ export const childrenForErrorObject = (errorObject: ErrorForDisplay) => { export function ErrorDisplayStateless( errorObject: ErrorForDisplay, - onClose?: Function + onClose?: Function, ) { const title = 'Error:'; const hideCloseButton = !onClose; diff --git a/spiffworkflow-frontend/src/components/ExtensionUxElementForDisplay.tsx b/spiffworkflow-frontend/src/components/ExtensionUxElementForDisplay.tsx index 81e6fa54..94d391c8 100644 --- a/spiffworkflow-frontend/src/components/ExtensionUxElementForDisplay.tsx +++ b/spiffworkflow-frontend/src/components/ExtensionUxElementForDisplay.tsx @@ -19,12 +19,12 @@ export function ExtensionUxElementMap({ const elementsForDisplayLocation = extensionUxElements.filter( (uxElement: UiSchemaUxElement) => { return uxElement.display_location === displayLocation; - } + }, ); return elementsForDisplayLocation.map( (uxElement: UiSchemaUxElement, index: number) => { return elementCallback(uxElement, index); - } + }, ); }; return mainElement(); diff --git a/spiffworkflow-frontend/src/components/Filters.tsx b/spiffworkflow-frontend/src/components/Filters.tsx index cc197536..7f110d62 100644 --- a/spiffworkflow-frontend/src/components/Filters.tsx +++ b/spiffworkflow-frontend/src/components/Filters.tsx @@ -46,7 +46,7 @@ export default function Filters({ iconDescription="Copy shareable link" hasIconOnly size="md" - /> + />, ); } elements.push( @@ -57,7 +57,7 @@ export default function Filters({ hasIconOnly size="md" onClick={toggleShowFilterOptions} - /> + />, ); if (copiedReportLinktoClipboard) { elements.push( @@ -68,7 +68,7 @@ export default function Filters({ timeout={2000} hideCloseButton withBottomMargin={false} - /> + />, ); } return elements; diff --git a/spiffworkflow-frontend/src/components/MessageInstanceList.tsx b/spiffworkflow-frontend/src/components/MessageInstanceList.tsx index f9bdb7c4..4562d222 100644 --- a/spiffworkflow-frontend/src/components/MessageInstanceList.tsx +++ b/spiffworkflow-frontend/src/components/MessageInstanceList.tsx @@ -38,7 +38,7 @@ export default function MessageInstanceList({ processInstanceId }: OwnProps) { searchParams, undefined, undefined, - paginationQueryParamPrefix + paginationQueryParamPrefix, ); let queryParamString = `per_page=${perPage}&page=${page}`; if (processInstanceId) { @@ -108,7 +108,7 @@ export default function MessageInstanceList({ processInstanceId }: OwnProps) { {row.process_instance_id} @@ -136,7 +136,7 @@ export default function MessageInstanceList({ processInstanceId }: OwnProps) { {row.status} {DateAndTimeService.convertSecondsToFormattedDateTime( - row.created_at_in_seconds + row.created_at_in_seconds, )} @@ -166,7 +166,7 @@ export default function MessageInstanceList({ processInstanceId }: OwnProps) { searchParams, undefined, undefined, - paginationQueryParamPrefix + paginationQueryParamPrefix, ); let breadcrumbElement = null; if (searchParams.get('process_instance_id')) { @@ -182,7 +182,7 @@ export default function MessageInstanceList({ processInstanceId }: OwnProps) { [ `Process Instance: ${searchParams.get('process_instance_id')}`, `/process-instances/${searchParams.get( - 'process_model_id' + 'process_model_id', )}/${searchParams.get('process_instance_id')}`, ], ['Messages'], diff --git a/spiffworkflow-frontend/src/components/MiniComponents.tsx b/spiffworkflow-frontend/src/components/MiniComponents.tsx index 13fd7225..703c4eb0 100644 --- a/spiffworkflow-frontend/src/components/MiniComponents.tsx +++ b/spiffworkflow-frontend/src/components/MiniComponents.tsx @@ -3,7 +3,7 @@ import { modifyProcessIdentifierForPathParam } from '../helpers'; import { MessageInstance, ProcessInstance } from '../interfaces'; export function FormatProcessModelDisplayName( - instanceObject: ProcessInstance | MessageInstance + instanceObject: ProcessInstance | MessageInstance, ) { const { process_model_identifier: processModelIdentifier, @@ -12,7 +12,7 @@ export function FormatProcessModelDisplayName( return ( diff --git a/spiffworkflow-frontend/src/components/NavigationBar.tsx b/spiffworkflow-frontend/src/components/NavigationBar.tsx index 1191703b..34c95f45 100644 --- a/spiffworkflow-frontend/src/components/NavigationBar.tsx +++ b/spiffworkflow-frontend/src/components/NavigationBar.tsx @@ -232,7 +232,7 @@ export default function NavigationBar({ extensionUxElements }: OwnProps) { to={navItemPage} isActive={isActivePage(navItemPage)} data-qa={`extension-${slugifyString( - uxElement.label || uxElement.page + uxElement.label || uxElement.page, )}`} > {uxElement.label || uxElement.page} diff --git a/spiffworkflow-frontend/src/components/Notification.tsx b/spiffworkflow-frontend/src/components/Notification.tsx index 9fe3e47d..b005e66b 100644 --- a/spiffworkflow-frontend/src/components/Notification.tsx +++ b/spiffworkflow-frontend/src/components/Notification.tsx @@ -33,7 +33,7 @@ export function Notification({ 'data-qa': dataQa, }: OwnProps) { const [showMessage, setShowMessage] = useState( - !allowTogglingFullMessage + !allowTogglingFullMessage, ); let iconComponent = ; if (type === 'error') { diff --git a/spiffworkflow-frontend/src/components/ProcessBreadcrumb.test.tsx b/spiffworkflow-frontend/src/components/ProcessBreadcrumb.test.tsx index e4a66bba..98d291ba 100644 --- a/spiffworkflow-frontend/src/components/ProcessBreadcrumb.test.tsx +++ b/spiffworkflow-frontend/src/components/ProcessBreadcrumb.test.tsx @@ -21,7 +21,7 @@ test('renders hotCrumbs', () => { [`Process Group: hey`], ]} /> - + , ); const homeElement = screen.getByText(/Process Groups/); expect(homeElement).toBeInTheDocument(); diff --git a/spiffworkflow-frontend/src/components/ProcessBreadcrumb.tsx b/spiffworkflow-frontend/src/components/ProcessBreadcrumb.tsx index 3a9215bb..1e471363 100644 --- a/spiffworkflow-frontend/src/components/ProcessBreadcrumb.tsx +++ b/spiffworkflow-frontend/src/components/ProcessBreadcrumb.tsx @@ -36,25 +36,25 @@ export default function ProcessBreadcrumb({ hotCrumbs }: OwnProps) { if (entityType === 'process-model-id') { HttpService.makeCallToBackend({ path: `/process-models/${modifyProcessIdentifierForPathParam( - entityToExplode as string + entityToExplode as string, )}`, successCallback: setProcessEntity, onUnauthorized: () => {}, failureCallback: (error: any) => console.error( - `Failed to load process model for breadcrumb. Error was: ${error.message}` + `Failed to load process model for breadcrumb. Error was: ${error.message}`, ), }); } else if (entityType === 'process-group-id') { HttpService.makeCallToBackend({ path: `/process-groups/${modifyProcessIdentifierForPathParam( - entityToExplode as string + entityToExplode as string, )}`, successCallback: setProcessEntity, onUnauthorized: () => {}, failureCallback: (error: any) => console.error( - `Failed to load process group for breadcrumb. Error was: ${error.message}` + `Failed to load process group for breadcrumb. Error was: ${error.message}`, ), }); } else { @@ -93,14 +93,14 @@ export default function ProcessBreadcrumb({ hotCrumbs }: OwnProps) { const breadcrumbs = processEntity.parent_groups.map( (parentGroup: ProcessGroupLite) => { const fullUrl = `/process-groups/${modifyProcessIdentifierForPathParam( - parentGroup.id + parentGroup.id, )}`; return ( {parentGroup.display_name} ); - } + }, ); if (crumb.linkLastItem) { @@ -111,18 +111,18 @@ export default function ProcessBreadcrumb({ hotCrumbs }: OwnProps) { dataQaTag = 'process-model-breadcrumb-link'; } const fullUrl = `${apiBase}/${modifyProcessIdentifierForPathParam( - processEntity.id + processEntity.id, )}`; breadcrumbs.push( {processEntity.display_name} - + , ); } else { breadcrumbs.push( {processEntity.display_name} - + , ); } return breadcrumbs; @@ -146,7 +146,7 @@ export default function ProcessBreadcrumb({ hotCrumbs }: OwnProps) { } } return null; - } + }, ); return ( diff --git a/spiffworkflow-frontend/src/components/ProcessGroupForm.tsx b/spiffworkflow-frontend/src/components/ProcessGroupForm.tsx index 4b7d8e61..c4e6cad9 100644 --- a/spiffworkflow-frontend/src/components/ProcessGroupForm.tsx +++ b/spiffworkflow-frontend/src/components/ProcessGroupForm.tsx @@ -32,8 +32,8 @@ export default function ProcessGroupForm({ updateProcessGroupCache(processGroup); navigate( `/process-groups/${modifyProcessIdentifierForPathParam( - newProcessGroupId - )}` + newProcessGroupId, + )}`, ); } }; @@ -62,7 +62,7 @@ export default function ProcessGroupForm({ let path = '/process-groups'; if (mode === 'edit') { path = `/process-groups/${modifyProcessIdentifierForPathParam( - processGroup.id + processGroup.id, )}`; } let httpMethod = 'POST'; @@ -140,7 +140,7 @@ export default function ProcessGroupForm({ } setIdHasBeenUpdatedByUser(true); }} - /> + />, ); } @@ -153,7 +153,7 @@ export default function ProcessGroupForm({ onChange={(event: any) => updateProcessGroup({ description: event.target.value }) } - /> + />, ); return textInputs; diff --git a/spiffworkflow-frontend/src/components/ProcessGroupListTiles.tsx b/spiffworkflow-frontend/src/components/ProcessGroupListTiles.tsx index 6c56f3a3..5baf88d2 100644 --- a/spiffworkflow-frontend/src/components/ProcessGroupListTiles.tsx +++ b/spiffworkflow-frontend/src/components/ProcessGroupListTiles.tsx @@ -28,7 +28,7 @@ export default function ProcessGroupListTiles({ const navigate = useNavigate(); const [processGroups, setProcessGroups] = useState( - null + null, ); useEffect(() => { @@ -69,7 +69,7 @@ export default function ProcessGroupListTiles({ className="tile-process-group" onClick={() => navigateToProcessGroup( - `/process-groups/${modifyProcessIdentifierForPathParam(row.id)}` + `/process-groups/${modifyProcessIdentifierForPathParam(row.id)}`, ) } > diff --git a/spiffworkflow-frontend/src/components/ProcessInstanceCurrentTaskInfo.tsx b/spiffworkflow-frontend/src/components/ProcessInstanceCurrentTaskInfo.tsx index de565154..e14b5d6d 100644 --- a/spiffworkflow-frontend/src/components/ProcessInstanceCurrentTaskInfo.tsx +++ b/spiffworkflow-frontend/src/components/ProcessInstanceCurrentTaskInfo.tsx @@ -31,7 +31,7 @@ export default function ProcessInstanceCurrentTaskInfo({ const inlineMessage = ( title: string, subtitle: string, - kind: string = 'info' + kind: string = 'info', ) => { return (
@@ -60,13 +60,13 @@ export default function ProcessInstanceCurrentTaskInfo({ potentialOwnerArray = potentialOwnerArray.slice(0, 2).concat(['...']); } message = `This next task is assigned to user(s): ${potentialOwnerArray.join( - ', ' + ', ', )}.`; } return inlineMessage( '', - `${message} There is no action for you to take at this time.` + `${message} There is no action for you to take at this time.`, ); } if (task && task.can_complete && HUMAN_TASK_TYPES.includes(task.type)) { @@ -87,7 +87,7 @@ export default function ProcessInstanceCurrentTaskInfo({ return inlineMessage( `Process ${processInstance.status}`, `This process instance was ${processInstance.status} by an administrator. Please get in touch with them for more information.`, - 'warning' + 'warning', ); } if (processInstance.status === 'error') { diff --git a/spiffworkflow-frontend/src/components/ProcessInstanceListSaveAsReport.tsx b/spiffworkflow-frontend/src/components/ProcessInstanceListSaveAsReport.tsx index fdaf5b17..ab416acd 100644 --- a/spiffworkflow-frontend/src/components/ProcessInstanceListSaveAsReport.tsx +++ b/spiffworkflow-frontend/src/components/ProcessInstanceListSaveAsReport.tsx @@ -25,7 +25,7 @@ export default function ProcessInstanceListSaveAsReport({ reportMetadata, }: OwnProps) { const [identifier, setIdentifier] = useState( - processInstanceReportSelection?.identifier || '' + processInstanceReportSelection?.identifier || '', ); const [showSaveForm, setShowSaveForm] = useState(false); diff --git a/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx b/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx index 37dc8fb7..efd0882b 100644 --- a/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx +++ b/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx @@ -86,7 +86,7 @@ export default function ProcessInstanceListTable({ const [searchParams] = useSearchParams(); const [processInstances, setProcessInstances] = useState( - [] + [], ); const [ reportMetadataFromProcessInstances, @@ -131,7 +131,7 @@ export default function ProcessInstanceListTable({ onProcessInstanceTableListUpdate(result); } }, - [onProcessInstanceTableListUpdate] + [onProcessInstanceTableListUpdate], ); const getProcessInstances = useCallback( @@ -150,7 +150,7 @@ export default function ProcessInstanceListTable({ searchParams, undefined, undefined, - paginationQueryParamPrefix + paginationQueryParamPrefix, ); if (perPageOptions && !perPageOptions.includes(perPage)) { // eslint-disable-next-line prefer-destructuring @@ -185,12 +185,12 @@ export default function ProcessInstanceListTable({ searchParams, setProcessInstancesFromResult, stopRefreshing, - ] + ], ); useEffect(() => { const setReportMetadataFromReport = ( - processInstanceReport: ProcessInstanceReport + processInstanceReport: ProcessInstanceReport, ) => { getProcessInstances(processInstanceReport.report_metadata); }; @@ -212,7 +212,7 @@ export default function ProcessInstanceListTable({ clearRefreshRef.current = refreshAtInterval( DateAndTimeService.REFRESH_INTERVAL_SECONDS, DateAndTimeService.REFRESH_TIMEOUT_SECONDS, - checkForReportAndRun + checkForReportAndRun, ); return clearRefreshRef.current; } @@ -234,15 +234,15 @@ export default function ProcessInstanceListTable({ const getProcessModelSpanTag = ( _processInstance: ProcessInstance, - identifier: string + identifier: string, ) => { return {identifier}; }; const navigateToProcessInstance = (processInstance: ProcessInstance) => { navigate( `${processInstanceShowPathPrefix}/${modifyProcessIdentifierForPathParam( - processInstance.process_model_identifier - )}/${processInstance.id}` + processInstance.process_model_identifier, + )}/${processInstance.id}`, ); }; @@ -267,7 +267,7 @@ export default function ProcessInstanceListTable({ }; const formatProcessInstanceId = ( processInstance: ProcessInstance, - id: number + id: number, ) => { return {id}; // when we get rid of clickable table rows, something like this will be better @@ -283,23 +283,23 @@ export default function ProcessInstanceListTable({ }; const formatProcessModelIdentifier = ( processInstance: ProcessInstance, - identifier: any + identifier: any, ) => { return getProcessModelSpanTag(processInstance, identifier); }; const formatProcessModelDisplayName = ( processInstance: ProcessInstance, - identifier: any + identifier: any, ) => { return getProcessModelSpanTag(processInstance, identifier); }; const formatLastMilestone = ( processInstance: ProcessInstance, - value: any + value: any, ) => { const [valueToUse, truncatedValue] = getLastMilestoneFromProcessInstance( processInstance, - value + value, ); return {truncatedValue}; }; @@ -323,7 +323,7 @@ export default function ProcessInstanceListTable({ }; const formattedColumn = ( processInstance: ProcessInstance, - column: ReportColumn + column: ReportColumn, ) => { const reportColumnFormatters: Record = { id: formatProcessInstanceId, @@ -522,7 +522,7 @@ export default function ProcessInstanceListTable({ ); } const piLink = `${processInstanceShowPathPrefix}/${modifyProcessIdentifierForPathParam( - processInstance.process_model_identifier + processInstance.process_model_identifier, )}/${processInstance.id}`; const piShowButtonElement = ( - + , ); textInputs.push(

Metadata Extractions

); @@ -355,7 +355,7 @@ export default function ProcessModelForm({ perspectives.

- + , ); textInputs.push(<>{metadataExtractionPathFormArea()}); textInputs.push( @@ -373,7 +373,7 @@ export default function ProcessModelForm({ Add Metadata Extraction Path - + , ); return textInputs; diff --git a/spiffworkflow-frontend/src/components/ProcessModelListTiles.tsx b/spiffworkflow-frontend/src/components/ProcessModelListTiles.tsx index dfc868f3..b23b8190 100644 --- a/spiffworkflow-frontend/src/components/ProcessModelListTiles.tsx +++ b/spiffworkflow-frontend/src/components/ProcessModelListTiles.tsx @@ -33,7 +33,7 @@ export default function ProcessModelListTiles({ }: OwnProps) { const [searchParams] = useSearchParams(); const [processModels, setProcessModels] = useState( - null + null, ); useEffect(() => { @@ -76,7 +76,7 @@ export default function ProcessModelListTiles({ title={row.id} data-qa="process-model-show-link" to={`/process-models/${modifyProcessIdentifierForPathParam( - row.id + row.id, )}`} > {row.display_name} diff --git a/spiffworkflow-frontend/src/components/ProcessModelTestRun.tsx b/spiffworkflow-frontend/src/components/ProcessModelTestRun.tsx index eda42aa8..aba2b192 100644 --- a/spiffworkflow-frontend/src/components/ProcessModelTestRun.tsx +++ b/spiffworkflow-frontend/src/components/ProcessModelTestRun.tsx @@ -93,7 +93,7 @@ export default function ProcessModelTestRun({ .forEach((testCaseResult: TestCaseResult) => { if (testCaseResult.test_case_error_details) { const errorForDisplay = errorForDisplayFromTestCaseErrorDetails( - testCaseResult.test_case_error_details + testCaseResult.test_case_error_details, ); const errorChildren = childrenForErrorObject(errorForDisplay); failingRows.push( @@ -104,7 +104,7 @@ export default function ProcessModelTestRun({ {testCaseResult.test_case_identifier}

{errorChildren} - + , ); } }); diff --git a/spiffworkflow-frontend/src/components/ProcessSearch.tsx b/spiffworkflow-frontend/src/components/ProcessSearch.tsx index ff0aa97d..f3a0de52 100644 --- a/spiffworkflow-frontend/src/components/ProcessSearch.tsx +++ b/spiffworkflow-frontend/src/components/ProcessSearch.tsx @@ -41,7 +41,7 @@ export default function ProcessSearch({ if (process) { return `${process.display_name} (${truncateString( process.identifier, - 75 + 75, )})`; } return null; diff --git a/spiffworkflow-frontend/src/components/ReactDiagramEditor.tsx b/spiffworkflow-frontend/src/components/ReactDiagramEditor.tsx index e4341d89..3b9a4576 100644 --- a/spiffworkflow-frontend/src/components/ReactDiagramEditor.tsx +++ b/spiffworkflow-frontend/src/components/ReactDiagramEditor.tsx @@ -165,7 +165,7 @@ export default function ReactDiagramEditor({ } } }, - [diagramModelerState, diagramType] + [diagramModelerState, diagramType], ); /* This restores unresolved references that camunda removes, I wish we could move this to the bpmn-io extensions */ @@ -179,11 +179,11 @@ export default function ReactDiagramEditor({ const refs = event.references.filter( (r: any) => r.property === 'bpmn:loopDataInputRef' || - r.property === 'bpmn:loopDataOutputRef' + r.property === 'bpmn:loopDataOutputRef', ); // eslint-disable-next-line no-underscore-dangle const desc = diagramModelerToUse._moddle.registry.getEffectiveDescriptor( - 'bpmn:ItemAwareElement' + 'bpmn:ItemAwareElement', ); refs.forEach((ref: any) => { const props = { @@ -287,7 +287,7 @@ export default function ReactDiagramEditor({ element: any, script: string, scriptType: string, - eventBus: any + eventBus: any, ) { if (onLaunchScriptEditor) { setPerformingXmlUpdates(true); @@ -299,7 +299,7 @@ export default function ReactDiagramEditor({ function handleLaunchMarkdownEditor( element: any, value: string, - eventBus: any + eventBus: any, ) { if (onLaunchMarkdownEditor) { setPerformingXmlUpdates(true); @@ -311,7 +311,7 @@ export default function ReactDiagramEditor({ if (onElementClick) { const canvas = diagramModeler.get('canvas'); const bpmnProcessIdentifiers = getBpmnProcessIdentifiers( - canvas.getRootElement() + canvas.getRootElement(), ); onElementClick(event.element, bpmnProcessIdentifiers); } @@ -459,13 +459,13 @@ export default function ReactDiagramEditor({ canvas: any, task: Task, bpmnIoClassName: string, - bpmnProcessIdentifiers: string[] + bpmnProcessIdentifiers: string[], ) { if (checkTaskCanBeHighlighted(task.bpmn_identifier)) { try { if ( bpmnProcessIdentifiers.includes( - task.bpmn_process_definition_identifier + task.bpmn_process_definition_identifier, ) ) { canvas.addMarker(task.bpmn_identifier, bpmnIoClassName); @@ -504,7 +504,7 @@ export default function ReactDiagramEditor({ // https://github.com/bpmn-io/bpmn-js-examples/tree/master/colors if (tasks) { const bpmnProcessIdentifiers = getBpmnProcessIdentifiers( - canvas.getRootElement() + canvas.getRootElement(), ); tasks.forEach((task: Task) => { let className = ''; @@ -522,7 +522,7 @@ export default function ReactDiagramEditor({ canvas, task, className, - bpmnProcessIdentifiers + bpmnProcessIdentifiers, ); } }); @@ -531,7 +531,7 @@ export default function ReactDiagramEditor({ function displayDiagram( diagramModelerToUse: any, - diagramXMLToDisplay: any + diagramXMLToDisplay: any, ) { if (alreadyImportedXmlRef.current) { return; @@ -558,7 +558,7 @@ export default function ReactDiagramEditor({ function fetchDiagramFromURL( urlToUse: any, - textHandler?: (text: str) => void + textHandler?: (text: str) => void, ) { fetch(urlToUse) .then((response) => response.text()) @@ -683,7 +683,7 @@ export default function ReactDiagramEditor({ {`${ref.display_name}`} @@ -762,7 +762,7 @@ export default function ReactDiagramEditor({ + , ); } if (showViewFormDataButton) { @@ -291,7 +291,7 @@ export default function TaskListTable({ onClick={() => getFormSubmissionDataForTask(processInstanceTask)} > View task - + , ); } return actions; @@ -309,16 +309,16 @@ export default function TaskListTable({ {processInstanceTask.task_title ? processInstanceTask.task_title : processInstanceTask.task_name} - + , ); if (showStartedBy) { rowElements.push( - {processInstanceTask.process_initiator_username} + {processInstanceTask.process_initiator_username}, ); } if (showWaitingOn) { rowElements.push( - {getWaitingForTableCellComponent(processInstanceTask)} + {getWaitingForTableCellComponent(processInstanceTask)}, ); } if (showCompletedBy) { @@ -328,16 +328,16 @@ export default function TaskListTable({ rowElements.push( {DateAndTimeService.convertSecondsToFormattedDateTime( - processInstanceTask.created_at_in_seconds + processInstanceTask.created_at_in_seconds, ) || '-'} - + , ); } if (showLastUpdated) { rowElements.push( + />, ); } if (showActionsColumn) { @@ -410,7 +410,7 @@ export default function TaskListTable({ searchParams, defaultPerPage, undefined, - paginationQueryParamPrefix + paginationQueryParamPrefix, ); let tableElement = (
{buildTable()}
diff --git a/spiffworkflow-frontend/src/components/UserSearch.tsx b/spiffworkflow-frontend/src/components/UserSearch.tsx index 93bd1a95..79aa30cd 100644 --- a/spiffworkflow-frontend/src/components/UserSearch.tsx +++ b/spiffworkflow-frontend/src/components/UserSearch.tsx @@ -46,7 +46,7 @@ export default function UserSearch({ searchForUser(value); }, // delay in ms - 250 + 250, ); return ( { expect(slugifyString('hello---world_ and then Some such-')).toEqual( - 'hello-world-and-then-some-such' + 'hello-world-and-then-some-such', ); }); test('it can underscorize a string', () => { expect(underscorizeString('hello---world_ and then Some such-')).toEqual( - 'hello_world_and_then_some_such' + 'hello_world_and_then_some_such', ); }); diff --git a/spiffworkflow-frontend/src/helpers.tsx b/spiffworkflow-frontend/src/helpers.tsx index de5f50a2..631bd6b3 100644 --- a/spiffworkflow-frontend/src/helpers.tsx +++ b/spiffworkflow-frontend/src/helpers.tsx @@ -47,7 +47,7 @@ export const underscorizeString = (inputString: string) => { export const getKeyByValue = ( object: any, value: string, - onAttribute?: string + onAttribute?: string, ) => { return Object.keys(object).find((key) => { if (onAttribute) { @@ -104,7 +104,7 @@ export const getPageInfoFromSearchParams = ( searchParams: any, defaultPerPage: string | number = DEFAULT_PER_PAGE, defaultPage: string | number = DEFAULT_PAGE, - paginationQueryParamPrefix: string | null = null + paginationQueryParamPrefix: string | null = null, ) => { const paginationQueryParamPrefixToUse = paginationQueryParamPrefix ? `${paginationQueryParamPrefix}_` @@ -112,12 +112,12 @@ export const getPageInfoFromSearchParams = ( const page = parseInt( searchParams.get(`${paginationQueryParamPrefixToUse}page`) || defaultPage.toString(), - 10 + 10, ); const perPage = parseInt( searchParams.get(`${paginationQueryParamPrefixToUse}per_page`) || defaultPerPage.toString(), - 10 + 10, ); return { page, perPage }; @@ -135,12 +135,12 @@ export const makeid = (length: number) => { }; export const getProcessModelFullIdentifierFromSearchParams = ( - searchParams: any + searchParams: any, ) => { let processModelFullIdentifier = null; if (searchParams.get('process_model_identifier')) { processModelFullIdentifier = `${searchParams.get( - 'process_model_identifier' + 'process_model_identifier', )}`; } return processModelFullIdentifier; @@ -182,7 +182,7 @@ export const refreshAtInterval = ( interval: number, timeout: number, periodicFunction: Function, - cleanupFunction?: Function + cleanupFunction?: Function, ) => { const intervalRef = setInterval(() => periodicFunction(), interval * 1000); const timeoutRef = setTimeout(() => { @@ -262,7 +262,7 @@ export const decodeBase64 = (data: string) => { export const getLastMilestoneFromProcessInstance = ( processInstance: ProcessInstance, - value: any + value: any, ) => { let valueToUse = value; if (!valueToUse) { @@ -281,7 +281,7 @@ export const getLastMilestoneFromProcessInstance = ( if (truncatedValue.length > milestoneLengthLimit) { truncatedValue = `${truncatedValue.substring( 0, - milestoneLengthLimit - 3 + milestoneLengthLimit - 3, )}...`; } return [valueToUse, truncatedValue]; @@ -293,7 +293,7 @@ export const parseTaskShowUrl = (url: string) => { // expected url pattern: // /tasks/[process_instance_id]/[task_guid] return path.match( - /^\/tasks\/(\d+)\/([0-9a-z]{8}-([0-9a-z]{4}-){3}[0-9a-z]{12})$/ + /^\/tasks\/(\d+)\/([0-9a-z]{8}-([0-9a-z]{4}-){3}[0-9a-z]{12})$/, ); }; diff --git a/spiffworkflow-frontend/src/helpers/appVersionInfo.ts b/spiffworkflow-frontend/src/helpers/appVersionInfo.ts index b39cdaeb..86319c2e 100644 --- a/spiffworkflow-frontend/src/helpers/appVersionInfo.ts +++ b/spiffworkflow-frontend/src/helpers/appVersionInfo.ts @@ -2,7 +2,7 @@ import { ObjectWithStringKeysAndValues } from '../interfaces'; const appVersionInfo = () => { const versionInfoFromHtmlMetaTag = document.querySelector( - 'meta[name="version-info"]' + 'meta[name="version-info"]', ); let versionInfo: ObjectWithStringKeysAndValues = {}; if (versionInfoFromHtmlMetaTag) { diff --git a/spiffworkflow-frontend/src/hooks/PermissionService.tsx b/spiffworkflow-frontend/src/hooks/PermissionService.tsx index f0f8ffbc..e8d50982 100644 --- a/spiffworkflow-frontend/src/hooks/PermissionService.tsx +++ b/spiffworkflow-frontend/src/hooks/PermissionService.tsx @@ -8,7 +8,7 @@ import { PermissionCheckResponseBody, PermissionsToCheck } from '../interfaces'; import HttpService from '../services/HttpService'; export const usePermissionFetcher = ( - permissionsToCheck: PermissionsToCheck + permissionsToCheck: PermissionsToCheck, ) => { const ability = useContext(AbilityContext); const [permissionsLoaded, setPermissionsLoaded] = useState(false); diff --git a/spiffworkflow-frontend/src/hooks/useEffectDebugger.tsx b/spiffworkflow-frontend/src/hooks/useEffectDebugger.tsx index facdce38..8d9a34d3 100644 --- a/spiffworkflow-frontend/src/hooks/useEffectDebugger.tsx +++ b/spiffworkflow-frontend/src/hooks/useEffectDebugger.tsx @@ -13,7 +13,7 @@ const usePrevious = (value: any, initialValue: any) => { export default function useEffectDebugger( effectHook: any, dependencies: any, - dependencyNames: any = [] + dependencyNames: any = [], ) { const previousDeps = usePrevious(dependencies, []); @@ -32,7 +32,7 @@ export default function useEffectDebugger( return accum; }, - {} + {}, ); if (Object.keys(changedDeps).length) { diff --git a/spiffworkflow-frontend/src/hooks/useKeyboardShortcut.tsx b/spiffworkflow-frontend/src/hooks/useKeyboardShortcut.tsx index 40018e6d..bb50d580 100644 --- a/spiffworkflow-frontend/src/hooks/useKeyboardShortcut.tsx +++ b/spiffworkflow-frontend/src/hooks/useKeyboardShortcut.tsx @@ -26,7 +26,7 @@ const DEFAULT_OPTIONS = { const useKeyboardShortcut = ( keyboardShortcuts: KeyboardShortcuts, - userOptions?: any + userOptions?: any, ) => { let options = DEFAULT_OPTIONS; if (userOptions) { @@ -40,7 +40,7 @@ const useKeyboardShortcut = ( const shortcutKeys = Object.keys(keyboardShortcuts); const lengthsOfShortcutKeys = shortcutKeys.map( - (shortcutKey: string) => shortcutKey.length + (shortcutKey: string) => shortcutKey.length, ); const numberOfKeysToKeep = Math.max(...lengthsOfShortcutKeys); @@ -103,7 +103,7 @@ const useKeyboardShortcut = ( if ( options.ignoreInputFields && EXCLUDE_LIST_DOM_TARGETS.indexOf( - (keydownEvent.target as any).tagName + (keydownEvent.target as any).tagName, ) >= 0 ) { return undefined; @@ -112,7 +112,7 @@ const useKeyboardShortcut = ( keySequence.current.push(loweredKey); const keySequenceString = keySequence.current.join(','); const shortcutKey = shortcutKeys.find((sk: string) => - keySequenceString.endsWith(sk) + keySequenceString.endsWith(sk), ); if (shortcutKey) { @@ -133,7 +133,7 @@ const useKeyboardShortcut = ( keyboardShortcuts, numberOfKeysToKeep, shortcutKeys, - ] + ], ); useEffect(() => { diff --git a/spiffworkflow-frontend/src/hooks/useProcessGroupFetcher.tsx b/spiffworkflow-frontend/src/hooks/useProcessGroupFetcher.tsx index 7bd1571d..a80ee176 100644 --- a/spiffworkflow-frontend/src/hooks/useProcessGroupFetcher.tsx +++ b/spiffworkflow-frontend/src/hooks/useProcessGroupFetcher.tsx @@ -15,7 +15,7 @@ export default function useProcessGroupFetcher(processGroupIdentifier: string) { const getProcessGroupCache = useCallback(() => { return JSON.parse( - localStorage.getItem(LOCAL_STORAGE_PROCESS_GROUP_CACHE_KEY) || '{}' + localStorage.getItem(LOCAL_STORAGE_PROCESS_GROUP_CACHE_KEY) || '{}', ); }, []); @@ -33,7 +33,7 @@ export default function useProcessGroupFetcher(processGroupIdentifier: string) { }); localStorage.setItem( 'storedProcessGroups', - JSON.stringify(storedProcessGroups) + JSON.stringify(storedProcessGroups), ); }; @@ -77,7 +77,7 @@ export default function useProcessGroupFetcher(processGroupIdentifier: string) { }; localStorage.setItem( LOCAL_STORAGE_PROCESS_GROUP_CACHE_KEY, - JSON.stringify(storedProcessGroups) + JSON.stringify(storedProcessGroups), ); }; diff --git a/spiffworkflow-frontend/src/index.tsx b/spiffworkflow-frontend/src/index.tsx index 301f6706..d21f1ff4 100644 --- a/spiffworkflow-frontend/src/index.tsx +++ b/spiffworkflow-frontend/src/index.tsx @@ -46,7 +46,7 @@ const doRender = () => { - + , ); }; diff --git a/spiffworkflow-frontend/src/rjsf/carbon_theme/AddButton/AddButton.tsx b/spiffworkflow-frontend/src/rjsf/carbon_theme/AddButton/AddButton.tsx index 4bb2ad95..9702fc4f 100644 --- a/spiffworkflow-frontend/src/rjsf/carbon_theme/AddButton/AddButton.tsx +++ b/spiffworkflow-frontend/src/rjsf/carbon_theme/AddButton/AddButton.tsx @@ -13,7 +13,7 @@ import { Add } from '@carbon/icons-react'; export default function AddButton< T = any, S extends StrictRJSFSchema = RJSFSchema, - F extends FormContextType = any + F extends FormContextType = any, >({ className, onClick, disabled, registry }: IconButtonProps) { return (
{canAdd && ( diff --git a/spiffworkflow-frontend/src/rjsf/carbon_theme/BaseInputTemplate/BaseInputTemplate.tsx b/spiffworkflow-frontend/src/rjsf/carbon_theme/BaseInputTemplate/BaseInputTemplate.tsx index 2cc721b1..a9845dd6 100644 --- a/spiffworkflow-frontend/src/rjsf/carbon_theme/BaseInputTemplate/BaseInputTemplate.tsx +++ b/spiffworkflow-frontend/src/rjsf/carbon_theme/BaseInputTemplate/BaseInputTemplate.tsx @@ -24,7 +24,7 @@ import { getCommonAttributes } from '../../helpers'; export default function BaseInputTemplate< T = any, S extends StrictRJSFSchema = RJSFSchema, - F extends FormContextType = any + F extends FormContextType = any, >(props: WidgetProps) { const { id, @@ -62,29 +62,29 @@ export default function BaseInputTemplate< ({ target }: React.ChangeEvent) => { onChange(target.value === '' ? options.emptyValue : target.value); }, - [onChange, options] + [onChange, options], ); const _onBlur = useCallback( ({ target }: React.FocusEvent) => onBlur(id, target.value), - [onBlur, id] + [onBlur, id], ); const _onFocus = useCallback( ({ target }: React.FocusEvent) => onFocus(id, target.value), - [onFocus, id] + [onFocus, id], ); const addDebouncedOnChangeDate = useDebouncedCallback( (fullObject: React.ChangeEvent) => { fullObject.target.value = DateAndTimeService.attemptToConvertUnknownDateStringFormatToKnownFormat( - fullObject.target.value + fullObject.target.value, ); _onChange(fullObject); }, // delay in ms - 100 + 100, ); const addDebouncedOnChangeText = useDebouncedCallback( @@ -92,7 +92,7 @@ export default function BaseInputTemplate< (onChangeOverride || _onChange)(fullObject); }, // delay in ms - 100 + 100, ); let enableCounter = false; @@ -103,7 +103,7 @@ export default function BaseInputTemplate< maxCount = schema.maxLength; } else { throw new Error( - `Counter was requested but no maxLength given on the ${label}` + `Counter was requested but no maxLength given on the ${label}`, ); } } @@ -112,7 +112,7 @@ export default function BaseInputTemplate< label, schema, uiSchema, - rawErrors + rawErrors, ); let component = null; @@ -202,7 +202,7 @@ export default function BaseInputTemplate< {[ ...new Set( - schema.examples.concat(schema.default ? [schema.default] : []) + schema.examples.concat(schema.default ? [schema.default] : []), ), ].map((example: any) => (