A search field above the table filters the rows as the user types, with the
state filter and the sort kept. A row matches when the normalized query (case,
accents, spaces and punctuation ignored) is part of its name or Data Dragon id,
or equals one of its aliases exactly. The aliases come from the U.GG and
Liquipedia inventory researched for the ticket and are stored locally by
Data Dragon id.
Not measured yet against the rule #1 budgets (release build, reference machine).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The icons were invisible because no asset source was registered; main now
registers gpui-kit's default assets (#19). Guard the three header icons.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The champion table is now the app's own view, a uniform_list with one
plain element per cell, instead of gpui-component's DataTable, which
gave each row a horizontal virtual list and each cell its own layout,
id and accessibility node. A full frame of the statistics page costs a
third less: on the manual checks machine, drawing it went from 2.37 to
1.57 ms at the median and from 3.72 to 2.50 ms at the 99th percentile.
Sorting by header click, scrolling, click-to-select (now following the
champion through sorts and reloads), stripes and hover stay; dragging
column edges, arrow-key selection and screen-reader table roles go.
Columns shrink with a narrow window, clipped, with room left for the
scrollbar; an ellipsis cost 0.2 ms per frame.
The charts row is a cached view of fixed height, so hovering a row no
longer paints the charts again (about 0.1 ms at the median, 0.2 ms at
the 99th percentile). A structural test guards it, with GPUI's own test
support as a dev-dependency.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scripts/hover-probe.ps1 posts synthetic mouse moves across the champion
table rows, 240 per second, without moving the real cursor, and reports
the UI thread's CPU and input latency against an idle phase, with the
machine and build like the move probe.
A `profile` Cargo feature, off by default, enables GPUI's profiler: with
ARENA_TRACKER_PROFILE the app appends each frame's phases, presentation
and views' own time to a CSV, and ARENA_TRACKER_HIDE removes parts of
the page so that each part's cost is measured by removal. Normal builds
compile none of it. Both are documented in docs/performance.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reloads triggered by the workers no longer wait for the window to be
shown: the statistics and Match count are computed on a spawn_guarded
thread (below normal priority) and applied as soon as they arrive,
visible or not, so a restored window is up to date at once and the UI
thread computes nothing during an import. The Accounts are still read
on the UI thread; the old statistics stay shown until the new ones land.
One job runs at a time (RefreshGate); a generation number, bumped when
statistics are computed or the viewed Account changes, drops results
overtaken by a newer request or a user's selection. The job reports its
own panic as an error result, so another worker's crash never discards
it. User selections still recompute synchronously.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A follower round that changes nothing shown no longer rebuilds the page.
With the game client closed one arrives every 5 s, and each redrew the
whole page, also while the window was covered by another window.
Worker-driven reloads wait while GPUI reports the window hidden
(minimised or not shown) and run as soon as it is shown again, so a
restored window shows the Matches imported meanwhile at once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR #35 (#30) was merged after PR #34 (#28) without a rebase: its test
still built a std mpsc channel, while spawn_guarded now takes gpui-kit's
async Sender, so the app's tests and clippy --all-targets no longer
compiled on main.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every thread the app starts goes through spawn_guarded: the champion
catalog and portraits, the game client follower and the refresh button.
Each now lowers itself to THREAD_PRIORITY_BELOW_NORMAL before running,
so the game and the UI keep the CPU they need (rule #1, budget 5).
Two kernel32 calls declared in place, no new dependency.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The page polled a std channel on a 100 ms timer, waking the UI thread ten
times per second with nothing to do. It now awaits gpui-kit's own async
channel (gpui_kit::base::async_util, smol's on native), so it wakes only
when a worker sends, with no timer and no new dependency. The listener
task is owned by the page, so it stops when the window closes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ticket #16. The logo is a gold ring around a crown: the Arena seen from
above and a top 1, without text. The Windows icon derived from it is
embedded in the executable as icon resource 1 by a build script, which
is the resource GPUI loads for the window: File Explorer, the window and
the taskbar show it with no loose file next to the executable.
embed-resource was already in Cargo.lock as a build dependency of GPUI.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
App half of tickets #4 to #12: Challenge header, three charts, sortable
and filterable champion table, Season, Format and Account selectors,
key prompt and settings, refresh button, update banners and the
Official Progress next to the Completed count.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Two crates: a UI-free core tested natively in WSL, and a thin GPUI app
that opens the "Arena Tracker" window showing a text supplied by the core.
scripts/win builds and runs the app with the Windows toolchain from WSL
(ADR-0003), with the build directory on the Windows drive.
Closes#3
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>