Skip to content

Commit

Permalink
Merge branch 'main' into tags-input-min-width
Browse files Browse the repository at this point in the history
  • Loading branch information
pleek91 authored Dec 3, 2024
2 parents e1a31bd + 562df0c commit 5df789a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 47 deletions.
17 changes: 13 additions & 4 deletions src/components/ArtifactTimeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,22 @@
getArtifacts()
})
type ArtifactTimelineArtifactItem = TimelineItem & {
data: Artifact,
id: string,
type: 'artifact',
}
type ArtifactTimelineItem = TimelineItem & {
icon?: Icon,
type ArtifactTimelineMessageItem = TimelineItem & {
id: string,
data: Artifact | string,
type: 'artifact' | 'message',
data: string,
icon: Icon,
type: 'message',
}
type ArtifactTimelineItem = ArtifactTimelineArtifactItem | ArtifactTimelineMessageItem
const items = computed<ArtifactTimelineItem[]>(() => {
const items: ArtifactTimelineItem[] = []
Expand Down
6 changes: 4 additions & 2 deletions src/components/WorkspaceEventsTimeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@
</template>

<script lang="ts" setup>
import { TimelineLayout, media } from '@prefecthq/prefect-design'
import { TimelineItem, TimelineLayout, media } from '@prefecthq/prefect-design'
import { computed } from 'vue'
import WorkspaceEventIcon from '@/components/WorkspaceEventIcon.vue'
import WorkspaceEventListItemDate from '@/components/WorkspaceEventListItemDate.vue'
import WorkspaceEventsTimelineContent from '@/components/WorkspaceEventsTimelineContent.vue'
import { WorkspaceEvent, isWorkspaceEvent } from '@/models/workspaceEvent'
type WorkspaceEventTimelineItem = TimelineItem & WorkspaceEvent
const props = defineProps<{
events: WorkspaceEvent[],
events: WorkspaceEventTimelineItem[],
startDate: Date,
endDate: Date,
layout?: TimelineLayout,
Expand Down
41 changes: 0 additions & 41 deletions src/utilities/timeline.ts

This file was deleted.

0 comments on commit 5df789a

Please sign in to comment.