-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sprints): add deployment report view
- Loading branch information
1 parent
a62593a
commit fa3c35b
Showing
19 changed files
with
494 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
backend/scrum/migrations/0003_add_deployment_fields_to_user_story_model.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("scrum", "0002_tags"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="userstory", | ||
name="deployment_notes", | ||
field=models.CharField(blank=True, max_length=2000, verbose_name="notas de despliegue"), | ||
), | ||
migrations.AddField( | ||
model_name="userstory", | ||
name="use_migrations", | ||
field=models.BooleanField(default=False, verbose_name="usa migraciones"), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<template> | ||
<span class="d-inline-flex"> | ||
<v-menu v-if="menu" bottom left offset-y> | ||
<template #activator="{ on: onMenu }"> | ||
<v-tooltip bottom> | ||
<template #activator="{ on: onTooltip }"> | ||
<v-btn icon v-on="{ ...onTooltip, ...onMenu }"> | ||
<v-icon>mdi-view-array</v-icon> | ||
</v-btn> | ||
</template> | ||
<span>Vistas</span> | ||
</v-tooltip> | ||
</template> | ||
<v-list dense> | ||
<v-list-item | ||
v-for="view in availableViews" | ||
:key="view.routeName" | ||
:to="{ name: view.routeName, params: { sprintId } }" | ||
> | ||
<v-list-item-icon> | ||
<v-icon>{{ view.icon }}</v-icon> | ||
</v-list-item-icon> | ||
<v-list-item-title>{{ view.label }}</v-list-item-title> | ||
</v-list-item> | ||
</v-list> | ||
</v-menu> | ||
<v-tooltip v-for="view in availableViews" v-else :key="view.routeName" bottom> | ||
<template #activator="{ on, attrs }"> | ||
<v-btn icon :to="{ name: view.routeName, params: { sprintId } }" v-bind="attrs" v-on="on"> | ||
<v-icon>{{ view.icon }}</v-icon> | ||
</v-btn> | ||
</template> | ||
<span> | ||
{{ view.label }} | ||
</span> | ||
</v-tooltip> | ||
</span> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "SprintViewSelector", | ||
props: { | ||
sprintId: { | ||
type: String, | ||
required: true, | ||
}, | ||
menu: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
}, | ||
data() { | ||
return { | ||
views: [ | ||
{ label: "Kanban", routeName: "sprint-kanban", icon: "mdi-teach" }, | ||
{ label: "Diagrama de quemado (Burn-down/up)", routeName: "sprint-chart", icon: "mdi-fire" }, | ||
{ label: "Diagrama de Gantt", routeName: "sprint-gantt", icon: "mdi-chart-timeline" }, | ||
{ label: "Informe de despliegue", routeName: "sprint-deployment-report", icon: "mdi-rocket-launch" }, | ||
], | ||
}; | ||
}, | ||
computed: { | ||
availableViews() { | ||
return this.views.filter((view) => view.routeName !== this.$route.name); | ||
}, | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.