Skip to content

Load issues faster - #9039

Merged
Alex Ross (alexr00) merged 4 commits into
mainfrom
alexr00/odd-cattle
Oct 8, 2026
Merged

Alex Ross (alexr00) merged 4 commits into
mainfrom
alexr00/odd-cattle

Conversation

@alexr00

Copy link
Copy Markdown
Member

Fixes #8979

@alexr00 Alex Ross (alexr00) self-assigned this Oct 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Both preview paths leave the editor-tab title blocked on full initialization, preserving part of the delay reported in the linked issue.

2 open findings
What changed in this PR

Accelerates issue-link opening by showing lightweight issue previews while full data loads.

Changes:

  • Adds a lightweight issue-preview GraphQL query and model.
  • Opens issue panels before full resolution and progressively replaces previews.
  • Expands race, failure, rendering, and cache tests.
File Description
webviews/​editorWebview/​test/​app.test.tsx Tests issue-preview rendering and text fallback.
webviews/​editorWebview/​overview.tsx Supports issue and PR previews.
webviews/​editorWebview/​app.tsx Generalizes preview state.
webviews/​components/​sidebar.tsx Hides reviewer placeholders for issues.
webviews/​components/​header.tsx Renders issue-specific preview headers.
webviews/​components/​comment.tsx Safely renders plain-text preview bodies.
webviews/​common/​context.tsx Generalizes preview message handling.
src/​test/​github/​pullRequestOverview.test.ts Adds shared preview-loading tests.
src/​test/​github/​githubRepository.test.ts Tests lightweight issue queries.
src/​test/​github/​externalUriOpener.test.ts Tests immediate issue-panel creation.
src/​github/​views.ts Defines issue and overview preview types.
src/​github/​queriesShared.gql Adds the issue-preview query.
src/​github/​pullRequestOverview.ts Reuses shared preview loading.
src/​github/​issueOverview.ts Implements progressive issue loading.
src/​github/​githubRepository.ts Fetches read-only issue previews.
src/​github/​externalUriOpener.ts Opens issue panels before model resolution.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Comment thread src/github/issueOverview.ts
Comment thread src/github/issueOverview.ts
@alexr00
Alex Ross (alexr00) marked this pull request as ready for review October 8, 2026 15:38
@alexr00
Alex Ross (alexr00) enabled auto-merge (squash) October 8, 2026 15:38
@alexr00
Alex Ross (alexr00) merged commit 3413276 into main Oct 8, 2026
7 checks passed
@alexr00
Alex Ross (alexr00) deleted the alexr00/odd-cattle branch October 8, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue links wait on redundant serial GraphQL queries: render cached content immediately and cold content after one fetch

3 participants