@implements IDisposable; @inject IAgileService AgileService; @layout PageLayout @inherits BasePage @page "/agile" @if (!AgileService.IsLoaded()) { } else { Agile
@foreach (var sprint in AgileService.AgileSprintModels! .OrderBy(e => e.EndDate).Reverse()) {
@sprint.Name
@if (sprint.StartDate != null) { Start: @sprint.StartDate.Value.ToString("dd/MM/yyyy") }
@if (sprint.EndDate != null) { End: @sprint.EndDate.Value.ToString("dd/MM/yyyy") }
}
Backlog
What is Agile? Agile is a work methodology for determing task assignment and release deadlines.

My agile practice will be creating tasks in a backlog. Assigning them to weekly sprints. And completing all tasks in the allotted time frame.

Any unfinished tasks are moved into the next sprint, or the sprint will be extended by a week.
} @code { private readonly List backlog = new(); protected override void OnInitialized() { base.OnInitialized(); AgileService.Subscribe(HasChanged); HasChanged(); } void IDisposable.Dispose() { AgileService.Unsubscribe(HasChanged); } void HasChanged() { if (!AgileService.IsLoaded()) return; backlog.Clear(); foreach (var task in AgileService.AgileTaskModels!) { if (task.AgileSprintModelId == null) { backlog.Add(task); } } StateHasChanged(); } protected override async Task OnInitializedAsync() { await AgileService.Load(); } }