Skip to content

Commit 8064a7d

Browse files
committed
feat(frontend): display integration logs in drawer
1 parent 33308a8 commit 8064a7d

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

apps/frontend/app/routes/_dashboard.settings.integrations.tsx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
Checkbox,
99
Container,
1010
CopyButton,
11+
Drawer,
1112
Flex,
1213
Group,
1314
Modal,
@@ -338,11 +339,16 @@ const DisplayIntegration = (props: {
338339

339340
const integrationUrl = `${applicationBaseUrl}/_i/${props.integration.id}`;
340341

342+
const integrationDisplayName = [
343+
changeCase(props.integration.provider),
344+
props.integration.name,
345+
]
346+
.filter(Boolean)
347+
.join(" - ");
348+
341349
const firstRow = [
342350
<Text size="sm" fw="bold" key="name">
343-
{[changeCase(props.integration.provider), props.integration.name]
344-
.filter(Boolean)
345-
.join(" - ")}
351+
{integrationDisplayName}
346352
</Text>,
347353
props.integration.isDisabled ? (
348354
<Text size="sm" key="isPaused">
@@ -373,13 +379,13 @@ const DisplayIntegration = (props: {
373379

374380
return (
375381
<>
376-
<Modal
377-
withCloseButton={false}
382+
<Drawer
378383
opened={integrationTriggerResultOpened}
384+
title={`Logs for ${integrationDisplayName}`}
379385
onClose={() => integrationTriggerResultToggle()}
380386
>
381387
<Table data={tableData} />
382-
</Modal>
388+
</Drawer>
383389
<Paper p="xs" withBorder>
384390
<Stack ref={parent}>
385391
<Flex align="center" justify="space-between">

0 commit comments

Comments
 (0)