From 1f38b9b65073fa672e28b3236421528db5e47467 Mon Sep 17 00:00:00 2001 From: Alex Tideman Date: Fri, 6 Dec 2024 14:58:45 -0600 Subject: [PATCH 1/2] Include WorkflowUpdateAdmitted in Event Type filter (#2467) * Include WorkflowUpdateAdmitted in filter * Update test with new event * Add to update const --- src/lib/models/event-history/get-event-categorization.test.ts | 2 ++ src/lib/models/event-history/get-event-categorization.ts | 1 + src/lib/utilities/is-event-type.ts | 1 + 3 files changed, 4 insertions(+) diff --git a/src/lib/models/event-history/get-event-categorization.test.ts b/src/lib/models/event-history/get-event-categorization.test.ts index 586b7ab91..daa80f38c 100644 --- a/src/lib/models/event-history/get-event-categorization.test.ts +++ b/src/lib/models/event-history/get-event-categorization.test.ts @@ -64,6 +64,7 @@ describe('Event Category Data Structures', () => { "WorkflowExecutionTerminated": "workflow", "WorkflowExecutionTimedOut": "workflow", "WorkflowExecutionUpdateAccepted": "update", + "WorkflowExecutionUpdateAdmitted": "update", "WorkflowExecutionUpdateCompleted": "update", "WorkflowExecutionUpdateRejected": "update", "WorkflowExecutionUpdateRequested": "update", @@ -232,6 +233,7 @@ const categories: Record< update: [ 'WorkflowExecutionUpdateAccepted', + 'WorkflowExecutionUpdateAdmitted', 'WorkflowExecutionUpdateCompleted', ], diff --git a/src/lib/models/event-history/get-event-categorization.ts b/src/lib/models/event-history/get-event-categorization.ts index be377205b..65b00f5b0 100644 --- a/src/lib/models/event-history/get-event-categorization.ts +++ b/src/lib/models/event-history/get-event-categorization.ts @@ -70,6 +70,7 @@ export const eventTypeCategorizations: Readonly< WorkflowExecutionUpdateCompleted: CATEGORIES.UPDATE, WorkflowExecutionUpdateRequested: CATEGORIES.UPDATE, WorkflowExecutionUpdateRejected: CATEGORIES.UPDATE, + WorkflowExecutionUpdateAdmitted: CATEGORIES.UPDATE, NexusOperationScheduled: CATEGORIES.NEXUS, NexusOperationStarted: CATEGORIES.NEXUS, diff --git a/src/lib/utilities/is-event-type.ts b/src/lib/utilities/is-event-type.ts index fa9e6ffa1..ffec35995 100644 --- a/src/lib/utilities/is-event-type.ts +++ b/src/lib/utilities/is-event-type.ts @@ -134,6 +134,7 @@ export const eventTypes = [ 'RequestCancelExternalWorkflowExecutionInitiated', 'UpsertWorkflowSearchAttributes', 'WorkflowExecutionUpdateAccepted', + 'WorkflowExecutionUpdateAdmitted', 'WorkflowExecutionUpdateCompleted', 'WorkflowExecutionUpdateRejected', 'WorkflowExecutionUpdateRequested', From f2e7ef54f2ced02e025aa87cf2bc1de047dc11b9 Mon Sep 17 00:00:00 2001 From: Laura Whitaker Date: Fri, 6 Dec 2024 15:50:41 -0700 Subject: [PATCH 2/2] Form responsive improvements (#2465) * Move Start a Workflow form to Card * Move schedule form to Card * Update custom search attribute form for responsiveness * Update schedule spec form responsiveness * Remove unnecessary divs * Fix input error and disabled classes --- .../schedule-day-of-month-view.svelte | 6 +- .../schedule/schedule-form-view.svelte | 99 +++++++++---------- .../schedule/schedules-interval-view.svelte | 8 +- .../workflow/add-search-attributes.svelte | 3 +- .../search-attribute-input/index.svelte | 43 ++++---- src/lib/holocene/day-of-month-picker.svelte | 31 +++--- src/lib/holocene/day-of-week-picker.svelte | 2 +- src/lib/holocene/input/input.svelte | 3 +- src/lib/pages/start-workflow.svelte | 36 ++++--- 9 files changed, 114 insertions(+), 117 deletions(-) diff --git a/src/lib/components/schedule/schedule-day-of-month-view.svelte b/src/lib/components/schedule/schedule-day-of-month-view.svelte index 96b9757e6..1f00a6824 100644 --- a/src/lib/components/schedule/schedule-day-of-month-view.svelte +++ b/src/lib/components/schedule/schedule-day-of-month-view.svelte @@ -16,9 +16,7 @@ {translate('schedules.recurring-dates-heading')}

{translate('schedules.recurring-dates-description')}

-
- - -
+ + diff --git a/src/lib/components/schedule/schedule-form-view.svelte b/src/lib/components/schedule/schedule-form-view.svelte index 1e3045e8f..6e4176a44 100644 --- a/src/lib/components/schedule/schedule-form-view.svelte +++ b/src/lib/components/schedule/schedule-form-view.svelte @@ -8,6 +8,7 @@ import SchedulesCalendarView from '$lib/components/schedule/schedules-calendar-view.svelte'; import Alert from '$lib/holocene/alert.svelte'; import Button from '$lib/holocene/button.svelte'; + import Card from '$lib/holocene/card.svelte'; import Input from '$lib/holocene/input/input.svelte'; import Link from '$lib/holocene/link.svelte'; import Loading from '$lib/holocene/loading.svelte'; @@ -165,18 +166,16 @@ onDestroy(() => ($error = '')); -
+
{#if $loading} {:else} -
- - {backTitle} - -

{title}

-
-
-
+ + {backTitle} + +

{title}

+ + -
-
-
-
-
-
-
- - - -
- - -
-
-
diff --git a/src/lib/components/schedule/schedules-interval-view.svelte b/src/lib/components/schedule/schedules-interval-view.svelte index 3d117c6ff..39014bf63 100644 --- a/src/lib/components/schedule/schedules-interval-view.svelte +++ b/src/lib/components/schedule/schedules-interval-view.svelte @@ -41,7 +41,7 @@

{translate('schedules.interval-view-description')}

-
+
- + - + - + -
+
{#each attributesToAdd as attribute} {/each}
{#if attribute.type === SEARCH_ATTRIBUTE_TYPE.BOOL} -
+

{translate('workflows.user-metadata')}

{translate('workflows.markdown-supported')} @@ -315,5 +313,5 @@ {#if error} {/if} -

+