Agent Tests for API, MAUI, and Slop Features

This commit is contained in:
2026-06-03 19:08:35 -04:00
parent 46150d3a69
commit 0feac0f0a0
142 changed files with 4156 additions and 1462 deletions
+43 -7
View File
@@ -1,14 +1,28 @@
using System.Collections.Generic;
using System.Linq;
namespace Model.Website.Data;
public class WebsiteData
{
/**
* Flag for content generated by the AI. Can contain UI that makes no sense, or more importantly,
* game data that is not real. Fun to look at, but needs to be thoroughly vetted before it can ever go live.
*/
public static bool allowSlopData { get; set; } = false;
private static bool IsPageAllowed(WebPageModel page)
{
if (allowSlopData) return true;
return page.Id != 5 && page.Id != 6;
}
public static List<WebPageModel> GetPages()
{
return
[
new WebPageModel
var pages = new List<WebPageModel>
{
new()
{
Id = 2,
WebSectionModelId = 2,
@@ -18,7 +32,7 @@ public class WebsiteData
IsPrivate = "False",
Icon = "fa-solid fa-helmet-battle"
},
new WebPageModel
new()
{
Id = 1,
WebSectionModelId = 2,
@@ -28,7 +42,7 @@ public class WebsiteData
IsPrivate = "False",
Icon = "fa-solid fa-clipboard-list"
},
new WebPageModel
new()
{
Id = 3,
WebSectionModelId = 2,
@@ -38,7 +52,7 @@ public class WebsiteData
IsPrivate = "False",
Icon = "fa-solid fa-bow-arrow"
},
new WebPageModel
new()
{
Id = 4,
WebSectionModelId = 2,
@@ -47,7 +61,29 @@ public class WebsiteData
Href = "data-tables",
IsPrivate = "False",
Icon = "fa-solid fa-table-list"
},
new()
{
Id = 5,
WebSectionModelId = 2,
Name = "Glossary",
Description = "Reference for game terms and mechanics",
Href = "glossary",
IsPrivate = "False",
Icon = "fa-solid fa-book-open"
},
new()
{
Id = 6,
WebSectionModelId = 2,
Name = "Tech Tree",
Description = "Interactive tech tree visualization",
Href = "tech-tree",
IsPrivate = "False",
Icon = "fa-solid fa-diagram-project"
}
];
};
return pages.Where(IsPageAllowed).ToList();
}
}