All files / apps/developer-portal/layers/workflows/app/components WorkflowCard.vue

100% Statements 8/8
100% Branches 0/0
100% Functions 2/2
100% Lines 7/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26  6x       3x 3x 3x 6x   3x                         6x    
<template>
    <NuxtLink
        :to="`/workflows/${card.id}`"
        class="flex flex-col gap-3 border border-default bg-default p-4 transition-colors hover:bg-elevated"
    >
        <div class="min-w-0">
            <p class="truncate font-semibold text-highlighted">{{ card.title }}</p>
            <p class="truncate text-xs text-muted">{{ card.templateTitle }}</p>
        </div>
        <WorkflowProgressMeter :percent="card.percent" />
        <p class="text-xs text-muted tabular-nums">{{ card.done }}</p>
    </NuxtLink>
</template>
 
<script setup lang="ts">
import { projectCard, type ProjectView } from "#layers/workflows/shared/workflows.ts";
 
interface Props {
    project: ProjectView;
}
 
const { project } = defineProps<Props>();
 
const card = computed(() => projectCard(project));
</script>