-
+ Dashboard
-Dashboard
-
+
-
-
+
Alle Userstories
- Lege einen Sprint an, um Userstories zu organisieren. -
-
+
+
-
-
+
+
+
+
- Alle Userstories
+ Lege einen Sprint an, um Userstories zu organisieren. +Aktueller Sprint:
-Sprint:
-{{selectedSprint.title}}
-{{toDateString(selectedSprint.startDate)}} - {{toDateString(selectedSprint.endDate)}}
+Aktueller Sprint:
+Sprint:
+{{selectedSprint.title}}
+{{toDateString(selectedSprint.startDate)}} - {{toDateString(selectedSprint.endDate)}}
- -- Verbleibende Tage: {{getRemainingDaysInSprint()}} -
+ -+ Verbleibende Tage: {{getRemainingDaysInSprint()}} +
-
+
-
-
-
+
+
+
diff --git a/src/app/dashboard/dashboard.component.ts b/src/app/dashboard/dashboard.component.ts
index e8e4c92..2ea774d 100644
--- a/src/app/dashboard/dashboard.component.ts
+++ b/src/app/dashboard/dashboard.component.ts
@@ -108,9 +108,29 @@ export class DashboardComponent {
}
}
-// public getNumberOfUserstoriesByStatus(status: ScrumStatus): number {
-// return this.userstories.filter((us) => us.statusid === status.id).length;
-// }
+ private getBackgroundColors(): string[] {
+ const baseColors = [
+ 'rgb(255, 153, 102)',
+ 'rgb(255, 102, 102)',
+ 'rgb(153, 204, 255)',
+ 'rgb(102, 153, 102)',
+ 'rgb(204, 204, 153)',
+ 'rgb(153, 102, 204)',
+ 'rgb(204, 102, 102)',
+ 'rgb(255, 204, 153)',
+ 'rgb(153, 102, 255)',
+ 'rgb(204, 204, 204)',
+ 'rgb(102, 255, 204)',
+ 'rgb(102, 153, 255)',
+ 'rgb(153, 102, 153)',
+ 'rgb(204, 204, 255)',
+ ];
+ const colors = [];
+ while (colors.length < this.usedStatus.length) {
+ colors.push(...baseColors);
+ }
+ return colors;
+ }
public getNumberOfUserstoriesByStatus(status: ScrumStatus): number {
return this.selectedSprintUserstories.filter(us => us.statusid === status.id).length;
diff --git a/src/app/userstory-table/userstory-table.component.html b/src/app/userstory-table/userstory-table.component.html
index 75b9cf0..0203afa 100644
--- a/src/app/userstory-table/userstory-table.component.html
+++ b/src/app/userstory-table/userstory-table.component.html
@@ -1,4 +1,6 @@
-
+
-
+
-
Userstories
-
-
-
-
-
- Zum Sprint "{{selectedSprint.title}}" sind aktuell keine Userstories vorhanden.
+
+
+
+ Zum Sprint "{{selectedSprint.title}}" sind aktuell keine Userstories vorhanden.
+
+
+
-
-
-
-
+
-
+
+
{{status.title}}
-
-
+
+
{{getNumberOfUserstoriesByStatus(status)}}
+
+
-
-
-
-
+
+
+
+
+
+
+
+
-
-
+Userstories
-
+
\ No newline at end of file
+
+
+