From 3f6e8bf5eaf411e3a82fe9c0084f47fc8f10bc7f Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 11 May 2022 19:40:13 +0100 Subject: [PATCH 01/29] Start of automation logs for #4977 - implementing some of the UI. --- packages/builder/package.json | 1 + .../common/renderers/DateTimeRenderer.svelte | 6 + .../portal/history/HistoryDetailsPanel.svelte | 33 + .../src/pages/builder/portal/_layout.svelte | 11 +- .../pages/builder/portal/history/index.svelte | 129 +++ packages/builder/yarn.lock | 952 +++++++++++++++++- packages/server/yarn.lock | 506 +--------- packages/worker/yarn.lock | 18 +- 8 files changed, 1146 insertions(+), 510 deletions(-) create mode 100644 packages/builder/src/components/common/renderers/DateTimeRenderer.svelte create mode 100644 packages/builder/src/components/portal/history/HistoryDetailsPanel.svelte create mode 100644 packages/builder/src/pages/builder/portal/history/index.svelte diff --git a/packages/builder/package.json b/packages/builder/package.json index 5a58f2066e..bd7e838bde 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -75,6 +75,7 @@ "@spectrum-css/page": "^3.0.1", "@spectrum-css/vars": "^3.0.1", "codemirror": "^5.59.0", + "dayjs": "^1.11.2", "downloadjs": "1.4.7", "lodash": "4.17.21", "posthog-js": "1.4.5", diff --git a/packages/builder/src/components/common/renderers/DateTimeRenderer.svelte b/packages/builder/src/components/common/renderers/DateTimeRenderer.svelte new file mode 100644 index 0000000000..8bf9499b98 --- /dev/null +++ b/packages/builder/src/components/common/renderers/DateTimeRenderer.svelte @@ -0,0 +1,6 @@ + + +{new dayjs(value).format("MMM D, YYYY HH:mm")} diff --git a/packages/builder/src/components/portal/history/HistoryDetailsPanel.svelte b/packages/builder/src/components/portal/history/HistoryDetailsPanel.svelte new file mode 100644 index 0000000000..936692586c --- /dev/null +++ b/packages/builder/src/components/portal/history/HistoryDetailsPanel.svelte @@ -0,0 +1,33 @@ + + +
+ +
+ + Run log details + +
+
+
+ + diff --git a/packages/builder/src/pages/builder/portal/_layout.svelte b/packages/builder/src/pages/builder/portal/_layout.svelte index 39a5def7d6..b49205ef84 100644 --- a/packages/builder/src/pages/builder/portal/_layout.svelte +++ b/packages/builder/src/pages/builder/portal/_layout.svelte @@ -31,7 +31,16 @@ $: menu = buildMenu($auth.isAdmin) const buildMenu = admin => { - let menu = [{ title: "Apps", href: "/builder/portal/apps" }] + let menu = [ + { + title: "Apps", + href: "/builder/portal/apps", + }, + { + title: "Run History", + href: "/builder/portal/history", + }, + ] if (admin) { menu = menu.concat([ { diff --git a/packages/builder/src/pages/builder/portal/history/index.svelte b/packages/builder/src/pages/builder/portal/history/index.svelte new file mode 100644 index 0000000000..d53a809a03 --- /dev/null +++ b/packages/builder/src/pages/builder/portal/history/index.svelte @@ -0,0 +1,129 @@ + + +
+ + + Run History + View all the automations your published apps have performed +