fix(desktop): switch tabs on click and show every page load #1790
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.66) × (1 − Review Confidence (0.54)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.66 · 308 lines diff across 18 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.343
Mass File Touch
mass_file_touch
0.080
Real PR Conversation Timeline
2 items
Approved
No blocking points. The change matches the PR description, and the docs (features, decisions and index, README) are updated in the same PR.
Suggestions (non-blocking)
useChampionBuilds.ts: trackLoad(fetchBuilds(...)) probably double-counts if fetchBuilds already goes through apiGet. It is harmless, since the count only needs to be above zero, but the wrapper is redundant in that case.plugins/load-activity.ts: if navigation A is superseded by B, A's afterEach failure hook calls navigation.end() and can close B's span early. The bar would then settle a little before B resolves. The page's own Suspense span still covers the data wait, so this is cosmetic.
claude[bot]
ilyanfraimbault
Summary
In the desktop app a sidebar click kept the previous tab on screen until the destination's data had arrived, with nothing showing the click was taken. The shared pages (
web/layers/common) await their first read in setup — deliberate on the site (#1689, where a header bar covers the wait), but the app had neither the bar nor a header to hang it under.SharedPage.vue— the app's frame around a shared page: the scroll container plus a<Suspense>of its own, so the page's setup await no longer holds the route. The tab changes on click and the page's header stands over a skeleton until it resolves. The site is unchanged.AppLoadingBar.vue— a 2 px primary bar across the window's top edge (over the champion search), with its own elapsed-time estimate (Nuxt's indicator is finished bypage:loading:end, which now fires before the data is in). 50 ms delay against flashes, a short settle so a navigation handing over to the page's read reads as one load.useLoadActivity.ts— one in-flight count for the window:trackLoad(promise)andloadSpan(). Fed by route changes (plugins/load-activity.ts), suspended shared pages, everyapiGet/apiPost(filter changes and the matchup recommendation included), the player record and champion builds.apiGet/apiPosttake{ signal, background }now; the in-game next item reads in the background.Verification
npm run typecheckandnpm run generateindesktop/app.npm run dev(live API via the dev proxy), measured from the click: a cold Tier list now switches in ~230 ms with the skeleton until the data lands at 3.7 s (before: the previous tab stayed for those 3.7 s); warm switches 120–300 ms (dev-server chunk loading). Bar seen running during navigations, the skeleton phase (screenshot with fetches delayed by 4 s) and an OTP-filter refetch, and fading out after.Closes #1788