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>
docs/performance.md sets five budgets measured on the reference laptop
on release builds (frame cost, idle CPU, hidden window, memory,
background work), a ratchet that only lowers them, and how to measure.
CLAUDE.md and the README point to it.
ADR-0004 records that GPUI is not patched to fix the stutter of #17:
upstream refused the same change (zed#66745), so the page's own
rendering cost has to come down instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scripts/move-probe.ps1 moves a window 240 times per second without
touching the mouse and measures how long each move holds its UI thread,
with an idle phase first; it prints the machine and build it measured.
scripts/prod build|run is scripts/win with --release: the optimised
build, without a console, to use the app and to measure it.
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>
Core half of tickets #4 to #12, behind one public interface tested with
fake sources and a real SQLite database:
- import of Arena Match history from the Riot API, idempotent and
resumable, with a sync mark written only when a sync completes
- Season table, champion catalog, Challenge summary, champion rows,
chart series, Season and Format scopes
- game client port and adapter: signed-in Account, end of an Arena
game fetched by its id, Official Progress cross-check
- update problems reported for banners while stored data stays readable
The app crate is adapted in the next commit.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Payloads recorded from the Riot API, the local League client and Data
Dragon, trimmed, with player identities and match ids replaced. The
certificate is Riot's published root, the only one trusted when talking
to the local client.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Runs cargo fmt, clippy with warnings as errors and cargo test on the
core crate for every pull request and push to main (ticket #15). The
app crate is left out: it only builds on Windows (ADR-0003).
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>
CONTEXT.md holds the glossary agreed during the design interview and the
French word shown in the interface for each term. The three ADRs record
the two data sources, GPUI through gpui-kit pinned at 0.9.1, and building
with the Windows toolchain driven from WSL.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>