Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Subject Request Events and Logs Section #1018

Merged
merged 16 commits into from
Aug 3, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update to new solution
TheAndrewJackson committed Aug 2, 2022
commit 74a018a1f46bf1ee7dd71daec486354306e15c66
Original file line number Diff line number Diff line change
@@ -24,18 +24,18 @@ const EventLog = ({ eventLogs, openErrorPanel }: EventDetailsProps) => {
key={detail.updated_at}
_hover={{
backgroundColor:
detail.status === ExecutionLogStatus.IN_PROCESSING
detail.status === ExecutionLogStatus.ERROR
? "#F7FAFC"
: "unset",
}}
onClick={() => {
if (detail.status === ExecutionLogStatus.IN_PROCESSING) {
if (detail.status === ExecutionLogStatus.ERROR) {
openErrorPanel(detail.message);
}
}}
style={{
cursor:
detail.status === ExecutionLogStatus.IN_PROCESSING
detail.status === ExecutionLogStatus.ERROR
? "pointer"
: "unset",
}}
@@ -55,12 +55,6 @@ const EventLog = ({ eventLogs, openErrorPanel }: EventDetailsProps) => {
{detail.collection_name}
</Text>
</Td>

<Td>
<Text color="gray.600" fontSize="xs" lineHeight="4" fontWeight="medium">
{detail.message}
</Text>
</Td>
</Tr>
));
return (
@@ -110,22 +104,11 @@ const EventLog = ({ eventLogs, openErrorPanel }: EventDetailsProps) => {
Collection
</Text>
</Th>
<Th>
<Text
color="black"
fontSize="xs"
lineHeight="4"
fontWeight="medium"
>
Event Details
</Text>
</Th>
</Tr>
</Thead>

<Tbody id="tabelBody">
{tableItems}
{tableItems}
</Tbody>
</Table>
</TableContainer>