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 +