Show the strategy of each catch in the dashboard
Build and deploy / build (push) Successful in 1m31s
Build and deploy / deploy (push) Successful in 30s

Add a Strategie column to the catch list (searchable, filterable) and a
Strategien tab to the Top 10 card. The MCP top tool accepts strategies.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Sonnet 5.5 committed 2026-11-16 23:34:10 +01:00
1 parent 7d3e6f8842
commit b7027e2a72
15 files changed
+83 -24

No files matched your search

@@ -44,13 +44,32 @@ public sealed class RecentCatchesTests : IDisposable
recent.Total.ShouldBe(expected);
}
[Fact]
public async Task Matches_strategy_exactly()
{
var recent = await _queries.GetRecentAsync(new RecentFilter(Strategy: "env-drip"));
recent.Total.ShouldBe(2);
recent.Items.ShouldAllBe(e => e.Strategy == "env-drip");
}
[Fact]
public async Task Dashboard_ranks_strategies_among_catches()
{
var data = await _queries.GetAsync();
data.TopStrategies.Select(s => (s.Key, s.Count)).ShouldBe([("html-drip", 4), ("env-drip", 1)]);
data.TopStrategies[1].HoldTime.ShouldBe(TimeSpan.FromHours(1));
}
[Theory]
[InlineData("chinanet", 2)]
[InlineData("env-drip", 2)]
[InlineData("CURL", 2)]
[InlineData("198.51", 2)]
[InlineData("wp-login", 1)]
[InlineData("100%", 0)]
public async Task Search_is_case_insensitive_over_ip_provider_target_and_user_agent(string search, int expected)
public async Task Search_is_case_insensitive_over_ip_provider_target_strategy_and_user_agent(string search, int expected)
{
var recent = await _queries.GetRecentAsync(new RecentFilter(Search: search));