← Back to Pull requests

fix(desktop): switch tabs on click and show every page load #1790

Merged
ilyanfraimbault merged 18 files (308 lines) on Oct 01, 2026 22:09 UTC
View on GitHub
ilyanfraimbault ilyanfraimbault commented on Oct 01, 2026 21:56 UTC
Author

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 by page: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) and loadSpan(). Fed by route changes (plugins/load-activity.ts), suspended shared pages, every apiGet / apiPost (filter changes and the matchup recommendation included), the player record and champion builds. apiGet / apiPost take { signal, background } now; the in-game next item reads in the background.

  • Docs: features, the desktop decision (+ index line), the shared layer README.
  • Verification

  • npm run typecheck and npm run generate in desktop/app.

  • Browser preview of 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

    Diff: 308 lines (+272 / -36) across 18 files Reviewer: claude[bot] Review duration: 12m
    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
    0.66
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    54%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    claude[bot] claude[bot] approved these changes on Oct 01, 2026 21:57 UTC
    Approved Reviewer

    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.
  • Reviewers
    Assignees
    ilyanfraimbault ilyanfraimbault
    Labels
    risk: low confidence: 54.2% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 65.8% (HIGH) · Higher = larger blast radius
    65.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 54.2% · Lower = rushed or shallow review
    54.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 30.1% · Safe to merge
    30.1%