feat(Documents) Notes/Docs page improvements and warning cleanup

This commit is contained in:
2022-04-07 13:30:00 -04:00
parent b270453030
commit d82e60efdf
223 changed files with 4396 additions and 2861 deletions
+33
View File
@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using Model.Work.Tasks.Enums;
namespace Model.Work.Tasks;
public class AgileSprintModel
{
public int Id { get; set; }
public string Name { get; set; } = "Add name...";
public string Description { get; set; } = "Add description...";
public DateTime? StartDate { get; set; } = null;
public DateTime? EndDate { get; set; } = null;
public string Notes { get; set; } = "Add notes...";
[NotMapped] public virtual ICollection<AgileTaskModel> AgileTaskModels { get; set; } = new List<AgileTaskModel>();
public string GetSprintType()
{
var now = DateTime.Now;
if (StartDate == null || EndDate == null) return SprintType.Planned;
if (DateTime.Compare(now, EndDate.GetValueOrDefault()) > 0) return SprintType.Completed;
if (DateTime.Compare(now, StartDate.GetValueOrDefault()) >= 0) return SprintType.Current;
return SprintType.Planned;
}
}
+19
View File
@@ -0,0 +1,19 @@
using System;
using Model.Work.Tasks.Enums;
namespace Model.Work.Tasks;
public class AgileTaskModel
{
public int Id { get; set; } = 1;
public int? AgileSprintModelId { get; set; } = null;
public string Name { get; set; } = "Add name...";
public string Description { get; set; } = "Add description...";
public string Notes { get; set; } = "Add notes...";
public string Status { get; set; } = StatusType.Fun_Idea;
public string Priority { get; set; } = PriorityType.Medium;
public string Task { get; set; } = TaskType.Feature;
public DateTime? Created { get; set; } = null;
public DateTime? Finished { get; set; } = null;
}
+10
View File
@@ -0,0 +1,10 @@
namespace Model.Work.Tasks.Enums;
public class PriorityType
{
public const string Blocker = "Blocker";
public const string High = "High";
public const string Medium = "Medium";
public const string Low = "Low";
public const string None = "None";
}
+13
View File
@@ -0,0 +1,13 @@
namespace Model.Work.Tasks.Enums;
public class ProjectType
{
public const string Management = "Management";
public const string Immortal = "Management";
public const string Food = "Management";
public const string Job = "Management";
public const string Time = "Management";
public const string Maintence = "Management";
public const string Website = "Management";
public const string Tasks = "Management";
}
+8
View File
@@ -0,0 +1,8 @@
namespace Model.Work.Tasks.Enums;
public class SprintType
{
public const string Current = "Current";
public const string Planned = "Planned";
public const string Completed = "Completed";
}
+11
View File
@@ -0,0 +1,11 @@
namespace Model.Work.Tasks.Enums;
public class StatusType
{
public const string In_Progress = "In_Progress";
public const string Todo = "Todo";
public const string To_Test = "To_Test";
public const string Done = "Done";
public const string Canceled = "Canceled";
public const string Fun_Idea = "Fun_Idea";
}
+7
View File
@@ -0,0 +1,7 @@
namespace Model.Work.Tasks.Enums;
public class TaskType
{
public const string Feature = "Feature";
public const string Bug = "Bug";
}