updated the column names for the tables on the process instance show page (#436)

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
This commit is contained in:
jasquat 2023-08-21 12:29:42 -04:00 committed by GitHub
parent 17309fb7fd
commit 48f851e3ff
2 changed files with 11 additions and 11 deletions

View File

@ -139,12 +139,12 @@ export default function MessageInstanceList({ processInstanceId }: OwnProps) {
<tr> <tr>
<th>Id</th> <th>Id</th>
<th>Process</th> <th>Process</th>
<th>Process Instance</th> <th>Process instance</th>
<th>Name</th> <th>Name</th>
<th>Type</th> <th>Type</th>
<th>Details</th> <th>Details</th>
<th>Status</th> <th>Status</th>
<th>Created At</th> <th>Created at</th>
</tr> </tr>
</thead> </thead>
<tbody>{rows}</tbody> <tbody>{rows}</tbody>

View File

@ -81,7 +81,7 @@ export default function ProcessInstanceLogList({
if (variant === 'all') { if (variant === 'all') {
processInstanceShowPageBaseUrl = `/admin/process-instances/${processModelId}`; processInstanceShowPageBaseUrl = `/admin/process-instances/${processModelId}`;
} }
const taskNameHeader = isEventsView ? 'Task Name' : 'Milestone'; const taskNameHeader = isEventsView ? 'Task name' : 'Milestone';
const tableType = isEventsView ? 'events' : 'milestones'; const tableType = isEventsView ? 'events' : 'milestones';
const paginationQueryParamPrefix = `log-list-${tableType}`; const paginationQueryParamPrefix = `log-list-${tableType}`;
@ -320,7 +320,7 @@ export default function ProcessInstanceLogList({
tableHeaders.push( tableHeaders.push(
<> <>
<th>Id</th> <th>Id</th>
<th>Bpmn Process</th> <th>Bpmn process</th>
<th>{taskNameHeader}</th> <th>{taskNameHeader}</th>
</> </>
); );
@ -328,16 +328,16 @@ export default function ProcessInstanceLogList({
tableHeaders.push( tableHeaders.push(
<> <>
<th>{taskNameHeader}</th> <th>{taskNameHeader}</th>
<th>Bpmn Process</th> <th>Bpmn process</th>
</> </>
); );
} }
if (isEventsView) { if (isEventsView) {
tableHeaders.push( tableHeaders.push(
<> <>
<th>Task Identifier</th> <th>Task identifier</th>
<th>Task Type</th> <th>Task type</th>
<th>Event Type</th> <th>Event type</th>
<th>User</th> <th>User</th>
</> </>
); );
@ -423,7 +423,7 @@ export default function ProcessInstanceLogList({
}} }}
shouldFilterItem={shouldFilterStringItem} shouldFilterItem={shouldFilterStringItem}
placeholder="Choose a task bpmn identifier" placeholder="Choose a task bpmn identifier"
titleText="Task Identifier" titleText="Task identifier"
selectedItem={searchParams.get('bpmn_identifier')} selectedItem={searchParams.get('bpmn_identifier')}
/> />
</Column> </Column>
@ -440,7 +440,7 @@ export default function ProcessInstanceLogList({
}} }}
shouldFilterItem={shouldFilterStringItem} shouldFilterItem={shouldFilterStringItem}
placeholder="Choose a task type" placeholder="Choose a task type"
titleText="Task Type" titleText="Task type"
selectedItem={searchParams.get('task_type')} selectedItem={searchParams.get('task_type')}
/> />
</Column> </Column>
@ -457,7 +457,7 @@ export default function ProcessInstanceLogList({
}} }}
shouldFilterItem={shouldFilterStringItem} shouldFilterItem={shouldFilterStringItem}
placeholder="Choose an event type" placeholder="Choose an event type"
titleText="Event Type" titleText="Event type"
selectedItem={searchParams.get('event_type')} selectedItem={searchParams.get('event_type')}
/> />
</Column> </Column>