553db2bce3873799f010f15d7172c1943211445f
Replaces PreMatch/Live placeholder pages with a shared EventListShell
(filter chips, date range, sortable virtualized-friendly table, debounced
search, live auto-refresh with odds-movement indicators) and adds a new
/events/{eventCode} detail page (asymmetric header lockup, dynamic
Match/Period tabs, Plotly.Blazor odds-over-time chart with accessible
data-table fallback, snapshot history, Excel export modal).
New primitives matching Phase 5's editorial-quant system:
- SportIcon: inline SVGs per sport (basketball=6, football=11,
tennis=22723, hockey=43658, generic fallback)
- OddsCell: tabular mono with ▲/▼/— delta + flash on change
(prefers-reduced-motion honored)
- OddsTimeline: Plotly.Blazor wrapper with theme-aware colors and
<details>/<summary> data-table screen-reader fallback
- ExportDialog: From/To pickers + ExportKind radio + Esc/Enter
keyboard, surfaces use-case errors inline
- EventListShell: shared section shell for PreMatch/Live cadence
State + service split keeps the RCL host-agnostic:
- IEventBrowsingService / EventBrowsingService — wraps repos, returns
view-model records (EventListItem, EventDetail, EventScopeBoard,
BetRow, OddsTimelinePoint, SnapshotHistoryEntry); pages never see
EF or domain entities directly.
- EventBrowsingState — singleton (per-circuit in BlazorWebView) holding
immutable PageFilter records for PreMatch and Live.
Plotly.Blazor 5.4.1 added (latest .NET 8 line; 7.x has breaking changes).
+59 RU/EN localization keys following the Phase 5 dot-segmented convention.
Tests: +26 bUnit tests (PreMatch/Live/Detail pages, OddsCell/SportIcon/
ExportDialog components, EventBrowsingState). Total 228/228 passing
(Domain 96 + Application 15 + Infrastructure 80 + UI 37; baseline 202).
Build clean (0/0).
PLAN.md: P2/P3/P5 top-level checkboxes ticked; P6 row marked Done.
maraphon-app
Sports betting odds analyzer for marathonbet.by.
Scrapes pre-match (/su) and live (/su/live) sports events, tracks coefficient changes
over time, and detects anomalies — in particular the "odds-flip" pattern where the
bookmaker freezes betting and then inverts underdog/favorite odds.
Tech stack
- .NET 8 + C# 12
- Blazor Hybrid — WPF shell hosting
BlazorWebView(designed to migrate to ASP.NET Core Blazor Server with no UI rewrite) - EF Core + SQLite (WAL mode) for local storage
- ClosedXML for Excel export
- AngleSharp for HTML scraping (with Playwright fallback for JS-rendered pages)
- Polly v8 for retry / circuit breaker / rate limiting
- MudBlazor UI components, Plotly.Blazor for charts
- Serilog structured logging
- xUnit / FluentAssertions / NSubstitute for tests
Project layout
src/
Marathon.Domain/ entities, value objects, no dependencies
Marathon.Application/ use cases, abstractions (IOddsScraper, IRepository, ...)
Marathon.Infrastructure/ EF Core, scraping, Polly, Excel, Playwright
Marathon.UI/ Razor Class Library — all Blazor components live here
Marathon.Hosts.WpfBlazor/ WPF + BlazorWebView host (replaceable for web)
tests/
Marathon.*.Tests/ unit + integration tests per layer
Build & run
dotnet build Marathon.sln
dotnet test Marathon.sln
dotnet run --project src/Marathon.Hosts.WpfBlazor
Configuration
All variable parameters (polling intervals, concurrency, user-agents, retry policy,
snapshot retention, locale) are exposed via appsettings.json and live-editable via
the in-app Settings page.
Status
🟡 In active development. See plans/initial-implementation/PLAN.md
for the current phase plan and progress.
License
Private — customer project.
Description
Languages
HTML
54.3%
C#
45%
CSS
0.7%