Skip to content

Commit

Permalink
Merge pull request #2776 from PrefectHQ/deployments-table-activity-du…
Browse files Browse the repository at this point in the history
…ration-tooltip

Add a tooltip describing the duration of the activity column on deployment table
  • Loading branch information
collincchoy authored Oct 18, 2024
2 parents 5144b30 + 079735d commit 2c1a2be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/components/DeploymentList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@
</div>
</template>

<template #activity-heading="{ column }">
<div class="flex items-center gap-1">
{{ column.label }}
<ExtraInfoTooltip description="Runs from the past week" size="small" />
</div>
</template>

<template #action-heading>
<span />
</template>
Expand Down Expand Up @@ -128,7 +135,8 @@
DeploymentTagsInput,
DeploymentDisableToggle,
DeploymentStatusBadge,
DeploymentScheduleTags
DeploymentScheduleTags,
ExtraInfoTooltip
} from '@/components'
import { useCan, useDeploymentsPaginationFilterFromRoute, useWorkspaceRoutes, useDeployments, useComponent } from '@/compositions'
import { Deployment } from '@/models'
Expand Down
3 changes: 2 additions & 1 deletion src/components/ExtraInfoTooltip.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<p-tooltip :text="description" avoid-collisions>
<p-icon icon="InformationCircleIcon" class="extra-info-tooltip__icon" />
<p-icon :size="size" icon="InformationCircleIcon" class="extra-info-tooltip__icon" />
<template #content>
<slot />
</template>
Expand All @@ -10,6 +10,7 @@
<script lang="ts" setup>
defineProps<{
description?: string,
size?: 'small' | 'default' | 'large',
}>()
</script>

Expand Down

0 comments on commit 2c1a2be

Please sign in to comment.