From 0bfda409122ed6837e13cf7f5418b093bf3ef97b Mon Sep 17 00:00:00 2001 From: Manuel Zedel Date: Wed, 16 Oct 2024 13:31:16 +0200 Subject: [PATCH] feat(gui): extended webhook event details Ticket: MEN-7574 Changelog: Title Signed-off-by: Manuel Zedel --- .../__snapshots__/webhooks.test.js.snap | 2091 ++++++++--------- .../components/settings/webhooks/activity.js | 158 -- .../components/settings/webhooks/activity.tsx | 70 + .../settings/webhooks/eventdetails.tsx | 83 + .../settings/webhooks/management.js | 149 +- 5 files changed, 1230 insertions(+), 1321 deletions(-) delete mode 100644 frontend/src/js/components/settings/webhooks/activity.js create mode 100644 frontend/src/js/components/settings/webhooks/activity.tsx create mode 100644 frontend/src/js/components/settings/webhooks/eventdetails.tsx diff --git a/frontend/src/js/components/settings/webhooks/__snapshots__/webhooks.test.js.snap b/frontend/src/js/components/settings/webhooks/__snapshots__/webhooks.test.js.snap index 8fe3499d..28d7d998 100644 --- a/frontend/src/js/components/settings/webhooks/__snapshots__/webhooks.test.js.snap +++ b/frontend/src/js/components/settings/webhooks/__snapshots__/webhooks.test.js.snap @@ -1,25 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Webhooks Component renders correctly 1`] = ` -
-

- Webhooks -

-
- No webhooks are configured yet. Learn more about webhooks in our - - documentation - -
-
-`; +exports[`Webhooks Component renders correctly 1`] = `null`; exports[`Webhooks Component renders correctly with entries 1`] = ` .emotion-0 { @@ -114,6 +95,10 @@ exports[`Webhooks Component renders correctly with entries 1`] = ` } .emotion-11 { + white-space: nowrap; +} + +.emotion-12 { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; @@ -127,10 +112,11 @@ exports[`Webhooks Component renders correctly with entries 1`] = ` -webkit-transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; fill: currentColor; - font-size: 1.3929rem; + font-size: 1.1607rem; + margin-left: 8px; } -.emotion-11 iconButton { +.emotion-12 iconButton { margin-right: 8px; } @@ -157,7 +143,7 @@ exports[`Webhooks Component renders correctly with entries 1`] = ` class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeMedium columnHeader nonSortable emotion-3" scope="col" > - Status + Description - enabled - + /> @@ -579,9 +562,38 @@ exports[`Webhooks Component static components renders WebhookActivity correctly
- - {"id":"1","status":"accepted"} - +
+
+
+
+ + + + +
+
+
+
@@ -667,9 +679,38 @@ exports[`Webhooks Component static components renders WebhookActivity correctly
- - {"id":"3","status":"accepted"} - +
+
+
+
+ + + + +
+
+
+
@@ -679,10 +720,13 @@ exports[`Webhooks Component static components renders WebhookActivity correctly +