feat: add OnHold list to DashboardViewModel

This commit is contained in:
2026-05-09 14:16:50 +10:00
parent 5da6de3165
commit 0879dae292
+3 -9
View File
@@ -7,6 +7,7 @@ namespace Disco.Plugins.ServiceTracker.Models
{ {
public List<DashboardTile> Tiles { get; set; } public List<DashboardTile> Tiles { get; set; }
public List<DashboardTile> ReadyForReturn { get; set; } public List<DashboardTile> ReadyForReturn { get; set; }
public List<DashboardTile> OnHold { get; set; }
public DashboardStats Stats { get; set; } public DashboardStats Stats { get; set; }
public ServiceTrackerConfig Config { get; set; } public ServiceTrackerConfig Config { get; set; }
public string CurrentFilter { get; set; } public string CurrentFilter { get; set; }
@@ -17,6 +18,7 @@ namespace Disco.Plugins.ServiceTracker.Models
{ {
Tiles = new List<DashboardTile>(); Tiles = new List<DashboardTile>();
ReadyForReturn = new List<DashboardTile>(); ReadyForReturn = new List<DashboardTile>();
OnHold = new List<DashboardTile>();
Stats = new DashboardStats(); Stats = new DashboardStats();
} }
} }
@@ -60,7 +62,6 @@ namespace Disco.Plugins.ServiceTracker.Models
public int AgeDays { get; set; } public int AgeDays { get; set; }
public string EtaDisplay { get; set; } public string EtaDisplay { get; set; }
public DateTime SortDate { get; set; } public DateTime SortDate { get; set; }
public DashboardTile() { Source = "disco"; } public DashboardTile() { Source = "disco"; }
} }
@@ -85,13 +86,6 @@ namespace Disco.Plugins.ServiceTracker.Models
public Dictionary<string, int> ByLocation { get; set; } public Dictionary<string, int> ByLocation { get; set; }
public Dictionary<string, int> ByStatus { get; set; } public Dictionary<string, int> ByStatus { get; set; }
public Dictionary<string, int> ByTech { get; set; } public Dictionary<string, int> ByTech { get; set; }
public DashboardStats() { ByPriority = new Dictionary<string, int>(); ByLocation = new Dictionary<string, int>(); ByStatus = new Dictionary<string, int>(); ByTech = new Dictionary<string, int>(); }
public DashboardStats()
{
ByPriority = new Dictionary<string, int>();
ByLocation = new Dictionary<string, int>();
ByStatus = new Dictionary<string, int>();
ByTech = new Dictionary<string, int>();
}
} }
} }