feat(ui): event autocomplete + log-bet deep link, steam-move label

- MyBets: add a "Find event" MudAutocomplete over upcoming events (loaded once,
  filtered client-side) that fills the Event ID; the manual ID field stays as a
  fallback. Backed by IBetJournalService.GetUpcomingEventOptionsAsync.
- Add a "Log bet" CTA on the anomaly detail page that deep-links to
  /my-bets?eventId=<code>; the journal prefills the Event ID from the query.
- Render the new SteamMove anomaly kind with a localized label in the card and
  detail KindLabel switches (was falling through to the raw enum name).
- Localization (en+ru) for all new strings.
This commit is contained in:
2026-05-28 23:08:56 +03:00
parent 2b1025cae3
commit d9d92ea8fd
7 changed files with 103 additions and 0 deletions
@@ -54,6 +54,13 @@
data-test="link-back-to-event">
@L["Anomaly.Detail.LinkBackToEvent"]
</MudButton>
<MudButton Variant="Variant.Outlined"
StartIcon="@Icons.Material.Outlined.Receipt"
OnClick="@(() => Nav.NavigateTo($"/my-bets?eventId={Uri.EscapeDataString(_detail.Item.EventId.Value)}"))"
Class="m-detail-header__export"
data-test="log-bet">
@L["Action.LogBet"]
</MudButton>
</aside>
</header>
@@ -99,6 +106,7 @@
private string KindLabel(AnomalyKind kind) => kind switch
{
AnomalyKind.SuspensionFlip => L["Anomaly.Kind.SuspensionFlip"],
AnomalyKind.SteamMove => L["Anomaly.Kind.SteamMove"],
_ => kind.ToString(),
};