add the number of features in the flow and live
This commit is contained in:
@@ -23,6 +23,9 @@ const hasFeaturesInProgress = computed(
|
|||||||
() => featuresInProgress.value.length > 0
|
() => featuresInProgress.value.length > 0
|
||||||
)
|
)
|
||||||
const hasFeaturesDone = computed(() => featuresDone.value.length > 0)
|
const hasFeaturesDone = computed(() => featuresDone.value.length > 0)
|
||||||
|
const isLive = computed(
|
||||||
|
() => props.step.title.toLocaleLowerCase() === 'release'
|
||||||
|
)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -50,7 +53,10 @@ const hasFeaturesDone = computed(() => featuresDone.value.length > 0)
|
|||||||
>
|
>
|
||||||
Blue bucket
|
Blue bucket
|
||||||
</div>
|
</div>
|
||||||
<ul class="done-list" v-if="hasFeaturesDone">
|
<div v-if="isLive" class="live">
|
||||||
|
{{ featuresDone.length }} features live!
|
||||||
|
</div>
|
||||||
|
<ul class="done-list" v-else-if="hasFeaturesDone">
|
||||||
<li v-for="feature in featuresDone" :key="feature.name">
|
<li v-for="feature in featuresDone" :key="feature.name">
|
||||||
<Starport
|
<Starport
|
||||||
:port="feature.name"
|
:port="feature.name"
|
||||||
@@ -66,18 +72,10 @@ const hasFeaturesDone = computed(() => featuresDone.value.length > 0)
|
|||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@mixin hideScrollbar {
|
@mixin hideScrollbar {
|
||||||
// https://blogs.msdn.microsoft.com/kurlak/2013/11/03/hiding-vertical-scrollbars-with-pure-css-in-chrome-ie-6-firefox-opera-and-safari/
|
|
||||||
// There is a CSS rule that can hide scrollbars in Webkit-based browsers (Chrome and Safari).
|
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
width: 0 !important;
|
width: 0 !important;
|
||||||
}
|
}
|
||||||
// There is a CSS rule that can hide scrollbars in IE 10+.
|
|
||||||
-ms-overflow-style: none;
|
-ms-overflow-style: none;
|
||||||
|
|
||||||
// Use -ms-autohiding-scrollbar if you wish to display on hover.
|
|
||||||
// -ms-overflow-style: -ms-autohiding-scrollbar;
|
|
||||||
|
|
||||||
// There used to be a CSS rule that could hide scrollbars in Firefox, but it has since been deprecated.
|
|
||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -113,5 +111,9 @@ const hasFeaturesDone = computed(() => featuresDone.value.length > 0)
|
|||||||
.done-list {
|
.done-list {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.live {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -57,8 +57,8 @@ const featuresGroupedByStep = computed(() => {
|
|||||||
<template>
|
<template>
|
||||||
<div class="dashboard">
|
<div class="dashboard">
|
||||||
<div>
|
<div>
|
||||||
mean complexity : {{ meanComplexity }}, mean lead time :
|
{{ features.length }} features | mean complexity : {{ meanComplexity }} |
|
||||||
{{ meanLeadTime }} days
|
mean lead time : {{ meanLeadTime }} days
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<button @click="nextDay">next day</button>
|
<button @click="nextDay">next day</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user