Agent Tests for API, MAUI, and Slop Features
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Model.Entity.Data;
|
||||
using Model.Glossary;
|
||||
using Model.Website;
|
||||
using Model.Website.Data;
|
||||
|
||||
@@ -43,6 +44,7 @@ public class SearchService : ISearchService
|
||||
Searches.Add("Pages", new List<SearchPointModel>());
|
||||
Searches.Add("Notes", new List<SearchPointModel>());
|
||||
Searches.Add("Entities", new List<SearchPointModel>());
|
||||
Searches.Add("Glossary", new List<SearchPointModel>());
|
||||
|
||||
foreach (var webPage in WebsiteData.GetPages())
|
||||
{
|
||||
@@ -92,6 +94,20 @@ public class SearchService : ISearchService
|
||||
Searches["Entities"].Add(SearchPoints.Last());
|
||||
}
|
||||
|
||||
if (WebsiteData.allowSlopData)
|
||||
foreach (var term in GlossaryData.GetTerms().Values)
|
||||
{
|
||||
SearchPoints.Add(new SearchPointModel
|
||||
{
|
||||
Title = term.Term,
|
||||
PointType = "Glossary",
|
||||
Summary = term.ShortDefinition,
|
||||
Href = $"glossary/{term.Id}"
|
||||
});
|
||||
|
||||
Searches["Glossary"].Add(SearchPoints.Last());
|
||||
}
|
||||
|
||||
isLoaded = true;
|
||||
|
||||
NotifyDataChanged();
|
||||
|
||||
Reference in New Issue
Block a user