Skip to content
Snippets Groups Projects
Commit d9fce672 authored by Paul Pestov's avatar Paul Pestov
Browse files

feat: add titles to timeline item columns

parent 0dd9f267
No related branches found
No related tags found
No related merge requests found
...@@ -70,9 +70,9 @@ ...@@ -70,9 +70,9 @@
</template> </template>
<template v-else> <template v-else>
<div class="flex mb-6"> <div class="flex mb-6">
<p class="text-amber-600 flex-grow-0 p-4 bg-amber-100 rounded-md"><span class="font-semibold">Disclaimer:</span> This is an experimental view.</p> <p class="text-amber-600 flex-grow-0 px-4 py-2 bg-amber-100 rounded-md text-sm"><span class="font-semibold">Disclaimer:</span> This is an experimental view.</p>
</div> </div>
<div class="flex mb-3"> <div class="flex mb-6">
<SelectButton v-model="selectedOption" :options="options" optionLabel="name"></SelectButton> <SelectButton v-model="selectedOption" :options="options" optionLabel="name"></SelectButton>
<Filters class="ml-auto"/> <Filters class="ml-auto"/>
</div> </div>
......
...@@ -44,7 +44,7 @@ watch(selectedMetric, ...@@ -44,7 +44,7 @@ watch(selectedMetric,
unstyled unstyled
/> />
</div> </div>
<div class="flex flex-col space-y-4"> <div class="flex flex-col space-y-6">
<template v-if="gtList.length > 0"> <template v-if="gtList.length > 0">
<TimelineItem v-for="gt in gtList" :key="gt.id" :gt="gt" :metric="selectedMetricValue" /> <TimelineItem v-for="gt in gtList" :key="gt.id" :gt="gt" :metric="selectedMetricValue" />
</template> </template>
......
...@@ -9,6 +9,7 @@ import { Icon } from '@iconify/vue' ...@@ -9,6 +9,7 @@ import { Icon } from '@iconify/vue'
import { onMounted, ref } from "vue" import { onMounted, ref } from "vue"
import { OverlayPanelDropdownStyles } from "@/helpers/pt" import { OverlayPanelDropdownStyles } from "@/helpers/pt"
import workflowsStore from "@/store/workflows-store" import workflowsStore from "@/store/workflows-store"
import HomeView from "@/views/HomeView.vue"
const props = defineProps<{ const props = defineProps<{
gt: GroundTruth, gt: GroundTruth,
...@@ -75,31 +76,40 @@ function hideParametersOverlay() { ...@@ -75,31 +76,40 @@ function hideParametersOverlay() {
<template v-slot:default> <template v-slot:default>
<div class="flex border-t border-gray-300 py-4 px-4"> <div class="flex border-t border-gray-300 py-4 px-4">
<table class="table-fixed w-full"> <table class="table-fixed w-full">
<tr v-for="workflow in workflows" :key="workflow.id"> <thead>
<tr class="">
<th class="text-left pb-4">{{ $t('workflows') }}</th>
<th class="text-left pb-4">{{ $t('processors') }}</th>
<th class="text-right pr-[314px] pb-4">{{ $t('timeline') }}</th>
</tr>
</thead>
<tbody>
<tr v-for="workflow in workflows" :key="workflow.id">
<td class="font-semibold pe-2">{{ workflow.label }}</td> <td class="font-semibold pe-2">{{ workflow.label }}</td>
<td class="p-1 overflow-x-auto"> <td class="p-1 overflow-x-auto">
<span <span
v-for="step in workflow.steps" v-for="step in workflow.steps"
:key="step.id" :key="step.id"
class="p-1 cursor-pointer" class="p-1 cursor-pointer"
@mouseenter="showParametersOverlay(step, $event)" @mouseenter="showParametersOverlay(step, $event)"
@mouseleave="hideParametersOverlay()" @mouseleave="hideParametersOverlay()"
> >
{{ getStepAcronym(step.id) }} {{ getStepAcronym(step.id) }}
</span> </span>
</td> </td>
<td class="overflow-x-auto"> <td class="overflow-x-auto">
<MetricChart <MetricChart
:runs="workflowsStore.getRuns(gt.id, workflow.id)" :runs="workflowsStore.getRuns(gt.id, workflow.id)"
:workflow-name="workflow.label" :workflow-name="workflow.label"
:metric="metric" :metric="metric"
:width="400" :width="400"
:start-date="startDate" :start-date="startDate"
:end-date="endDate" :end-date="endDate"
class="flex justify-end" class="flex justify-end"
/> />
</td> </td>
</tr> </tr>
</tbody>
</table> </table>
</div> </div>
</template> </template>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment