Skip to content

chore(*): ux improvements on advanced search when fetching files is taking longer#100

Open
igdmdimitrov wants to merge 6 commits into
masterfrom
dmdimitrov/search-ux-improvements
Open

chore(*): ux improvements on advanced search when fetching files is taking longer#100
igdmdimitrov wants to merge 6 commits into
masterfrom
dmdimitrov/search-ux-improvements

Conversation

@igdmdimitrov

@igdmdimitrov igdmdimitrov commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

No description provided.

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.

Pull request overview

This PR improves the perceived responsiveness of the SearchAdvanced component when loading a large, manifest-based search index by introducing a two-phase loading strategy and a dedicated pending UI state.

Changes:

  • Implement two-phase index fetching for “All packages” (latest-version files first, then remaining files in the background with periodic UI refresh).
  • Add a pending/disabled UI state with a centered “Searching…” overlay during background loading.
  • Document the two-phase behavior in the playground page.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.

File Description
src/components/SearchAdvanced/SearchAdvanced.astro Adds two-phase index loading, incremental UI refresh interval, and pending-state wiring.
src/components/SearchAdvanced/SearchAdvanced.scss Styles the pending overlay and disables/greys out interactions while pending.
playground/src/pages/components/search-advanced.astro Adds documentation explaining the two-phase loading behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/SearchAdvanced/SearchAdvanced.astro
Comment thread src/components/SearchAdvanced/SearchAdvanced.astro
Comment thread src/components/SearchAdvanced/SearchAdvanced.astro
Comment thread src/components/SearchAdvanced/SearchAdvanced.astro
Comment thread src/components/SearchAdvanced/SearchAdvanced.astro Outdated
Comment thread src/components/SearchAdvanced/SearchAdvanced.scss
Comment thread src/components/SearchAdvanced/SearchAdvanced.astro
igdmdimitrov and others added 2 commits June 26, 2026 18:38
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

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.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

Comment thread src/components/SearchAdvanced/SearchAdvanced.astro Outdated
Comment thread src/components/SearchAdvanced/SearchAdvanced.astro
Comment thread src/components/SearchAdvanced/SearchAdvanced.astro
Comment thread src/components/SearchAdvanced/SearchAdvanced.astro
Comment thread src/components/SearchAdvanced/SearchAdvanced.astro
Comment thread src/components/SearchAdvanced/SearchAdvanced.astro
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

Comment on lines +650 to +653
const useLatestFirst =
this.scope === 'all' &&
this.latestPagesPromise !== null &&
!this.allIndexLoadingComplete;
Comment on lines +1136 to +1141
for (const file of files) {
const slash = file.indexOf('/');
if (slash < 0) continue;
const pkg = file.slice(0, slash);
const version = file.slice(slash + 1).replace(/\.json$/, '');
const existing = best.get(pkg);
Comment on lines +704 to +708
this.renderResults();
if (complete) this.clearUpdateInterval();
}, 1000);
this.dialog.addEventListener('igcClosed', () => this.clearUpdateInterval(), { once: true });
}
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.

3 participants