From 61236952f7a8ce33168ba2f2bf5d697976f2c4c4 Mon Sep 17 00:00:00 2001 From: jfrer <76432831+jfrer@users.noreply.github.com> Date: Tue, 6 Aug 2024 10:55:40 +0200 Subject: [PATCH] feat: add processor github links to the overlays of each step of a timeline item (#100) * refactor: unify project store, use typescript * feat: add processor github links to timeline item step overlays * feat: add hover effect to links * style: lint --- src/components/Projects.vue | 6 +-- src/components/Workflows.vue | 2 + src/components/projects/Project.vue | 4 +- src/components/workflows/WorkflowsList.vue | 4 +- .../workflows/timeline/TimelineItem.vue | 15 +++++- src/helpers/api.ts | 6 +-- src/helpers/store.ts | 41 ---------------- src/store/projects-store.ts | 25 ++++++++++ src/types/index.d.ts | 48 +++++++++++++++++++ 9 files changed, 99 insertions(+), 52 deletions(-) delete mode 100644 src/helpers/store.ts create mode 100644 src/store/projects-store.ts diff --git a/src/components/Projects.vue b/src/components/Projects.vue index d6434c9..c71a2d1 100644 --- a/src/components/Projects.vue +++ b/src/components/Projects.vue @@ -23,17 +23,17 @@ diff --git a/src/components/Workflows.vue b/src/components/Workflows.vue index 8596a2b..ee20a74 100644 --- a/src/components/Workflows.vue +++ b/src/components/Workflows.vue @@ -12,6 +12,7 @@ import filtersStore from "@/store/filters-store" import workflowsStore from "@/store/workflows-store" import type { ReleaseInfo } from "@/types" +import projectsStore from "@/store/projects-store" const { t } = useI18n() @@ -53,6 +54,7 @@ workflowsStore.latestRuns = await api.getLatestRuns() workflowsStore.gt = await api.getGroundTruth() workflowsStore.workflows = await api.getWorkflows() + projectsStore.setRepos(await api.getProjects()) workflowsStore.runs.forEach(run => { const gtId = mapGtId(run.metadata.gt_workspace.id) diff --git a/src/components/projects/Project.vue b/src/components/projects/Project.vue index c993642..10dee38 100644 --- a/src/components/projects/Project.vue +++ b/src/components/projects/Project.vue @@ -1,6 +1,6 @@ @@ -154,7 +162,12 @@ function toggleParameterOverlay(step: WorkflowStep, event: Event) { @hide="isOpVisible = false" >