Commit 20efd43f authored by Alfredo Sumaran's avatar Alfredo Sumaran

Set stage descriptions dynamically

parent f9cfc87c
......@@ -8,11 +8,12 @@
},
props: {
items: Array,
stage: Object,
},
template: `
<div>
<div class="events-description">
Time spent coding
{{ stage.shortDescription }}
</div>
<ul class="stage-event-list">
<li class="stage-event-item" v-for="mergeRequest in items">
......
......@@ -8,11 +8,12 @@
},
props: {
items: Array,
stage: Object,
},
template: `
<div>
<div class="events-description">
Time before an issue get scheluded
{{ stage.shortDescription }}
</div>
<ul class="stage-event-list">
<li class="stage-event-item" v-for="issue in items">
......
......@@ -8,11 +8,12 @@
},
props: {
items: Array,
stage: Object,
},
template: `
<div>
<div class="events-description">
Time before an issue starts implementation
{{ stage.shortDescription }}
</div>
<ul class="stage-event-list">
<li class="stage-event-item" v-for="commit in items">
......
......@@ -8,11 +8,12 @@
},
props: {
items: Array,
stage: Object,
},
template: `
<div>
<div class="events-description">
The total time taken from idea to production
{{ stage.shortDescription }}
</div>
<ul>
<li v-for="issue in items">
......
......@@ -8,11 +8,12 @@
},
props: {
items: Array,
stage: Object,
},
template: `
<div>
<div class="events-description">
The time taken to build and test the application
{{ stage.shortDescription }}
</div>
<ul class="stage-event-list">
<li class="stage-event-item" v-for="build in items">
......
......@@ -13,42 +13,49 @@
active: false,
component: 'stage-issue-component',
legendTitle: 'Related Issues',
shortDescription: 'Time before an issue get scheduled',
},
{
name:'Plan',
active: false,
component: 'stage-plan-component',
legendTitle: 'Related Commits',
shortDescription: 'Time before an issue starts implementation',
},
{
name:'Code',
active: false,
component: 'stage-code-component',
legendTitle: 'Related Merge Requests',
shortDescription: 'Time spent coding',
},
{
name:'Test',
active: false,
component: 'stage-test-component',
legendTitle: 'Relative Builds Trigger by Commits',
shortDescription: 'The time taken to build and test the application',
},
{
name:'Review',
active: false,
component: 'stage-review-component',
legendTitle: 'Relative Merged Requests',
shortDescription: 'The time taken to review the code',
},
{
name:'Staging',
active: false,
component: 'stage-staging-component',
legendTitle: 'Relative Deployed Builds',
shortDescription: 'The time taken in staging',
},
{
name:'Production',
active: false,
component: 'stage-production-component',
legendTitle: 'Related Issues',
shortDescription: 'The total time taken from idea to production',
}
],
},
......
......@@ -92,4 +92,4 @@
%template{ "v-if" => "isEmptyStage" }
%p No results
%template{ "v-if" => "state.items.length && !isLoadingStage && !isEmptyStage" }
%component{ ":is" => "currentStage.component", ":items" => "state.items" }
%component{ ":is" => "currentStage.component", ":stage" => "currentStage", ":items" => "state.items" }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment