Skip to content

Conversation

@martastn
Copy link

No description provided.

@grzanka grzanka requested a review from Copilot December 10, 2025 22:04
@grzanka
Copy link
Contributor

grzanka commented Dec 10, 2025

@lkwinta take a look here, it may be relevant to your work now

Copy link
Contributor

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

This PR adds an estimated time remaining feature for Geant4 dataset downloads, providing users with real-time feedback on download progress. The implementation uses an exponential smoothing algorithm to calculate download speed and estimate completion time, improving the user experience during potentially lengthy download operations.

  • Implements download speed tracking with exponential smoothing for stable time estimates
  • Adds a time formatting utility to display remaining time in a user-friendly format (seconds/minutes)
  • Displays estimated time remaining in the UI next to downloading datasets

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

useTheme
} from '@mui/material';
import { useState } from 'react';
import { useEffect,useState } from 'react';
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

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

Missing space after comma in the import statement. Should be import { useEffect, useState } from 'react'; to maintain consistency with the rest of the codebase where all imports have spaces after commas.

Suggested change
import { useEffect,useState } from 'react';
import { useEffect, useState } from 'react';

Copilot uses AI. Check for mistakes.
{status.status === DatasetDownloadStatus.PROCESSING && (
<LinearProgress
variant='indeterminate'
value={status.total ? ((status.done ?? 0) / status.total) * 100 : 0}
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

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

The value prop should not be set on a LinearProgress component with variant='indeterminate'. When variant is 'indeterminate', the value prop is ignored and has no effect. This prop should only be used with 'determinate' or 'buffer' variants. Remove the value prop from this indeterminate LinearProgress component.

Suggested change
value={status.total ? ((status.done ?? 0) / status.total) * 100 : 0}

Copilot uses AI. Check for mistakes.
@lkwinta
Copy link
Contributor

lkwinta commented Dec 10, 2025

@lkwinta take a look here, it may be relevant to your work now

I think we can merge this after my work in #2290 is finished.

@grzanka
Copy link
Contributor

grzanka commented Dec 16, 2025

@martastn can you rebase or merge recent master here ?

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