Skip to content

Enhance shimmer progress with performance metrics#202

Open
krataratha wants to merge 1 commit into
colbymchenry:mainfrom
krataratha:patch-1
Open

Enhance shimmer progress with performance metrics#202
krataratha wants to merge 1 commit into
colbymchenry:mainfrom
krataratha:patch-1

Conversation

@krataratha
Copy link
Copy Markdown

Added optional fields for estimated time remaining and items per second in IndexProgress interface. Enhanced createShimmerProgress function to calculate and pass performance metrics.

Added optional fields for estimated time remaining and items per second in IndexProgress interface. Enhanced createShimmerProgress function to calculate and pass performance metrics.
Copilot AI review requested due to automatic review settings May 20, 2026 08:35
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR enhances shimmer indexing progress reporting by adding performance metrics (throughput and ETA) to the progress payload.

Changes:

  • Extend IndexProgress with optional estimatedTimeRemainingMs and itemsPerSecond.
  • Track phase start time and compute metrics on each progress update.
  • Post an enriched progress update message to the worker.

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

Comment on lines +71 to 78
async stop() {
await worker.terminate();
}
};
}
lastPhase = progress.phase;

let percent = -1;
Comment on lines +64 to +68
worker.postMessage({
type: 'progress-update',
phaseName,
...enrichedProgress
});

export function createShimmerProgress(): ShimmerProgress {
let lastPhase = '';
let phaseStartTime = Date.now();
lastPhase = progress.phase;

// New Feature: Calculate performance metrics
const elapsedMs = Date.now() - phaseStartTime;
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.

2 participants