diff --git a/src/components/Workflows.vue b/src/components/Workflows.vue
index d14bb8e..151c568 100644
--- a/src/components/Workflows.vue
+++ b/src/components/Workflows.vue
@@ -1,4 +1,4 @@
-
diff --git a/src/components/workflows/timeline/BaseTimelineChart.vue b/src/components/workflows/timeline/BaseTimelineChart.vue
index 34b3d3c..8c92c69 100644
--- a/src/components/workflows/timeline/BaseTimelineChart.vue
+++ b/src/components/workflows/timeline/BaseTimelineChart.vue
@@ -4,6 +4,7 @@ import { ref, watch, computed, onMounted } from "vue"
import type { TimelineChartDataPoint } from "@/types"
import { createTooltip, setEventListeners } from "@/helpers/d3/d3-tooltip"
import colors from 'tailwindcss/colors'
+import workflowsStore from "@/store/workflows-store"
interface Props {
@@ -41,6 +42,10 @@ function isUp(data: TimelineChartDataPoint[], higherIsUp = true) {
else return -1
}
+function renderReleases() {
+
+}
+
function render([data, startDate, endDate, maxY]) {
if (!data || !startDate || !endDate) return
@@ -129,6 +134,21 @@ function render([data, startDate, endDate, maxY]) {
setEventListeners(svg.selectAll('.chart-point'), tooltip, { useData: props.tooltipContent })
+
+ const releasesGroup = svg
+ .append('g')
+ .classed('releases-group', true)
+
+ workflowsStore.releases.forEach(release => {
+ const xPos = x(new Date(release.published_at))
+
+ releasesGroup
+ .append("path")
+ .attr("stroke-width", 1.5)
+ .attr('stroke-dasharray', 4)
+ .attr("d", d3.line()([[xPos, y(0)], [xPos, y(maxY)]]))
+ })
+
// Append the SVG element.
container.value.append(svg.node())
}
@@ -146,6 +166,11 @@ watch([() => props.data, () => props.startDate, () => props.endDate, () => props