From 16543a233bd2d582269287e5df9953daa81b2397 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 7 Apr 2024 20:37:26 -0500 Subject: [PATCH] basic ui complete --- .../editor/workflow-action-card.svelte | 15 ++++ .../editor/workflow-rule-card.svelte | 15 ++++ .../editor/workflow-trigger-card.svelte | 5 ++ .../workflow-page/workflow-editor.svelte | 83 +++++++++---------- .../workflow-page/workflow-list.svelte | 6 +- web/src/routes/(user)/workflows/+page.svelte | 2 +- 6 files changed, 79 insertions(+), 47 deletions(-) create mode 100644 web/src/lib/components/workflow-page/editor/workflow-action-card.svelte create mode 100644 web/src/lib/components/workflow-page/editor/workflow-rule-card.svelte create mode 100644 web/src/lib/components/workflow-page/editor/workflow-trigger-card.svelte diff --git a/web/src/lib/components/workflow-page/editor/workflow-action-card.svelte b/web/src/lib/components/workflow-page/editor/workflow-action-card.svelte new file mode 100644 index 0000000000..966537a980 --- /dev/null +++ b/web/src/lib/components/workflow-page/editor/workflow-action-card.svelte @@ -0,0 +1,15 @@ + + +
+

Add to album "RANDOM"

+ +
+ + +
+
diff --git a/web/src/lib/components/workflow-page/editor/workflow-rule-card.svelte b/web/src/lib/components/workflow-page/editor/workflow-rule-card.svelte new file mode 100644 index 0000000000..7d9a522eda --- /dev/null +++ b/web/src/lib/components/workflow-page/editor/workflow-rule-card.svelte @@ -0,0 +1,15 @@ + + +
+

And has Alex and Henry and Nate

+ +
+ + +
+
diff --git a/web/src/lib/components/workflow-page/editor/workflow-trigger-card.svelte b/web/src/lib/components/workflow-page/editor/workflow-trigger-card.svelte new file mode 100644 index 0000000000..a270733a39 --- /dev/null +++ b/web/src/lib/components/workflow-page/editor/workflow-trigger-card.svelte @@ -0,0 +1,5 @@ +
+ When an asset is uploaded +
diff --git a/web/src/lib/components/workflow-page/workflow-editor.svelte b/web/src/lib/components/workflow-page/workflow-editor.svelte index 90c070d181..8bd5c87b3e 100644 --- a/web/src/lib/components/workflow-page/workflow-editor.svelte +++ b/web/src/lib/components/workflow-page/workflow-editor.svelte @@ -1,76 +1,73 @@
-
-
-

- Add this photo to every albums and notify everybody about this glorious asset -

-
+
+

+ Add this photo to every albums and notify everybody about this glorious asset +

-
+
-
-
- When an asset is uploaded +
+ +
+

TRIGGER

+
-
-
-
-
-
+ +
+

RULES

+
+
+
+
-
-
- And has Alex and Henry and Nate -
+ +
+ +
- And from Nurnberg, Germany -
- -
ADD RULE
-
-
-
-
+ +
+

ACTIONS

+
+
+
-
-
- Add to Album -
-
- Send webhook to abc.com with payload 123 -
+ +
+ +
diff --git a/web/src/lib/components/workflow-page/workflow-list.svelte b/web/src/lib/components/workflow-page/workflow-list.svelte index c827ca74f8..80a37d625c 100644 --- a/web/src/lib/components/workflow-page/workflow-list.svelte +++ b/web/src/lib/components/workflow-page/workflow-list.svelte @@ -3,14 +3,14 @@ import WorkflowCard from '$lib/components/workflow-page/workflow-card.svelte'; -
+
-

CURRENT WORKFLOW

+

CURRENT WORKFLOWS

- {#each Array.from({ length: 50 }) as _, i} + {#each Array.from({ length: 50 }) as _} {/each}
diff --git a/web/src/routes/(user)/workflows/+page.svelte b/web/src/routes/(user)/workflows/+page.svelte index e1abf8b7a1..5c9dc4a861 100644 --- a/web/src/routes/(user)/workflows/+page.svelte +++ b/web/src/routes/(user)/workflows/+page.svelte @@ -8,7 +8,7 @@ -
+