Show plain German strategy names with explanations in the dashboard

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Opus 5.5 committed 2026-11-17 18:52:11 +01:00
1 parent e250a120ea
commit 0655af2699
11 files changed
+234 -12

No files matched your search

@@ -113,8 +113,10 @@ public sealed class DashboardQueries(IDbContextFactory<FlypaperDbContext> dbCont
if (!string.IsNullOrWhiteSpace(filter.Search))
{
var pattern = $"%{filter.Search.Trim().Replace("\\", "\\\\").Replace("%", "\\%").Replace("_", "\\_")}%";
var strategyNames = filter.SearchStrategies ?? [];
events = events.Where(e =>
EF.Functions.Like(e.RemoteIp, pattern, "\\")
|| strategyNames.Any(name => e.Strategy == name || EF.Functions.Like(e.Strategy, name + " %", "\\"))
|| EF.Functions.Like(e.Provider!, pattern, "\\")
|| EF.Functions.Like(e.Target!, pattern, "\\")
|| EF.Functions.Like(e.Strategy, pattern, "\\")
@@ -12,7 +12,8 @@ public sealed record RecentFilter(
string? Target = null,
string? Strategy = null,
string? Search = null,
int Limit = RecentFilter.DefaultLimit)
int Limit = RecentFilter.DefaultLimit,
IReadOnlyList<string>? SearchStrategies = null)
{
public const int DefaultLimit = 50;
public const int MaxLimit = 500;