diff --git a/spiffworkflow-frontend/src/index.css b/spiffworkflow-frontend/src/index.css index 53e04b78..ade073f5 100644 --- a/spiffworkflow-frontend/src/index.css +++ b/spiffworkflow-frontend/src/index.css @@ -72,15 +72,19 @@ h2 { /* match normal link colors */ .cds--btn--ghost.button-link { color: #0062fe; + padding-left: 0; } .cds--btn--ghost.button-link:visited { color: #0062fe; + padding-left: 0; } .cds--btn--ghost.button-link:hover { color: #0062fe; + padding-left: 0; } .cds--btn--ghost.button-link:visited:hover { color: #0062fe; + padding-left: 0; } .cds--header__global .cds--btn--primary { @@ -311,3 +315,11 @@ td.actions-cell { text-align: right; padding-bottom: 10px; } + +.cds--btn--ghost:not([disabled]) svg { + fill: red; +} + +.failure-string { + color: red; +} diff --git a/spiffworkflow-frontend/src/routes/MessageInstanceList.tsx b/spiffworkflow-frontend/src/routes/MessageInstanceList.tsx index 5a2d4e1a..b77b744c 100644 --- a/spiffworkflow-frontend/src/routes/MessageInstanceList.tsx +++ b/spiffworkflow-frontend/src/routes/MessageInstanceList.tsx @@ -1,5 +1,7 @@ import { useEffect, useState } from 'react'; // @ts-ignore +import { ErrorOutline } from '@carbon/icons-react'; +// @ts-ignore import { Table, Modal, Button } from '@carbon/react'; import { Link, useParams, useSearchParams } from 'react-router-dom'; import PaginationForTable from '../components/PaginationForTable'; @@ -46,14 +48,27 @@ export default function MessageInstanceList() { const correlationsDisplayModal = () => { if (messageInstanceForModal) { + let failureCausePre = null; + if (messageInstanceForModal.failure_cause) { + failureCausePre = ( + <> +
+ {messageInstanceForModal.failure_cause} +
+Correlations:
{JSON.stringify( messageInstanceForModal.message_correlations, @@ -69,6 +84,17 @@ export default function MessageInstanceList() { const buildTable = () => { const rows = messageIntances.map((row: MessageInstance) => { + let errorIcon = null; + let errorTitle = null; + if (row.failure_cause) { + errorTitle = 'Instance has an error'; + errorIcon = ( + <> + ++ > + ); + } return ( {row.id} @@ -85,14 +111,15 @@ export default function MessageInstanceList() {{row.message_identifier} {row.message_type} -{row.failure_cause || '-'} {row.status} @@ -111,8 +138,7 @@ export default function MessageInstanceList() {Process Instance Name Type -Failure Cause -Correlations +Details Status Created At