Skip to content

Commit

Permalink
#1334 Notifications records in the promotion run page
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoraboeuf committed Jul 24, 2024
1 parent 80b99e6 commit 87fdd51
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {homeBreadcrumbs} from "@components/common/Breadcrumbs";
import {CloseCommand} from "@components/common/Commands";
import {homeUri} from "@components/common/Links";
import {useEffect, useState} from "react";
import {Col, Skeleton, Table} from "antd";
import {Skeleton, Table} from "antd";
import {useGraphQLClient} from "@components/providers/ConnectionContextProvider";
import {gql} from "graphql-request";
import Timestamp from "@components/common/Timestamp";
Expand All @@ -16,6 +16,7 @@ import TableColumnFilterDropdown from "@components/common/table/TableColumnFilte
import SelectNotificationResultType from "@components/extension/notifications/SelectNotificationResultType";
import SelectNotificationChannel from "@components/extension/notifications/SelectNotificationChannel";
import NotificationSourceData from "@components/extension/notifications/NotificationSourceData";
import {gqlNotificationRecordContent} from "@components/extension/notifications/NotificationRecordsGraphQLFragments";

const {Column} = Table

Expand Down Expand Up @@ -62,23 +63,11 @@ export default function NotificationRecordingsView() {
}
}
pageItems {
key: id
source {
id
data
}
channel
channelConfig
event
result {
type
message
output
}
timestamp
...NotificationRecordContent
}
}
}
${gqlNotificationRecordContent}
`,
{
offset: pagination.offset,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import {gql} from "graphql-request";

export const gqlNotificationRecordContent = gql`
fragment NotificationRecordContent on NotificationRecord {
key: id
id
source {
id
data
}
channel
channelConfig
event
result {
type
message
output
}
timestamp
}
`

0 comments on commit 87fdd51

Please sign in to comment.