Skip to content

Commit

Permalink
Remove child workflow timeline from row (#2330)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Tideman authored Sep 18, 2024
1 parent 04e1fa8 commit 6853d85
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/lib/components/event/event-details-full.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
import { spaceBetweenCapitalLetters } from '$lib/utilities/format-camel-case';
import { formatDate } from '$lib/utilities/format-date';
import { formatAttributes } from '$lib/utilities/format-event-attributes';
import { isChildWorkflowExecutionStartedEvent } from '$lib/utilities/is-event-type';
import { isPendingActivity } from '$lib/utilities/is-pending-activity';
import GraphWidget from '../lines-and-dots/svg/graph-widget.svelte';
import EventDetailsRowExpanded from './event-details-row-expanded.svelte';
import EventLinksExpanded from './event-links-expanded.svelte';
Expand All @@ -18,16 +15,12 @@
$: pendingEvent = group?.pendingActivity || group?.pendingNexusOperation;
$: showEventGroup = group && (group.eventList.length > 1 || pendingEvent);
$: childWorkflowEvent = group?.eventList.find(
isChildWorkflowExecutionStartedEvent,
);
</script>

{#if showEventGroup}
<div class="w-full p-2">
<div
class="flex flex-col gap-0 overflow-hidden rounded-xl border-2 border-subtle xl:flex-row"
class:rounded-b-none={!!childWorkflowEvent}
>
{#each group.eventList as groupEvent}
{@const attributes = formatAttributes(groupEvent)}
Expand Down Expand Up @@ -66,15 +59,6 @@
</div>
{/if}
</div>
{#if childWorkflowEvent}
<GraphWidget
namespace={childWorkflowEvent.attributes.namespace}
workflowId={childWorkflowEvent.attributes.workflowExecution.workflowId}
runId={childWorkflowEvent.attributes.workflowExecution.runId}
height={240}
class="overflow-x-hidden"
/>
{/if}
</div>
{:else if event}
{@const attributes = formatAttributes(event)}
Expand Down

0 comments on commit 6853d85

Please sign in to comment.