improve loading consistency
Browse files
frontend/src/components/BenchmarkEvaluation.jsx
CHANGED
|
@@ -14,11 +14,11 @@ const MESSAGE_CHANGE_INTERVAL = {
|
|
| 14 |
|
| 15 |
// Starting messages with their timing
|
| 16 |
const STARTING_MESSAGES = [
|
| 17 |
-
{ message: "Initializing evaluation environment
|
| 18 |
-
{ message: "Finding available model providers
|
| 19 |
-
{ message: "Starting evaluation process
|
| 20 |
-
{ message: "Evaluating models
|
| 21 |
-
{ message: "Storing evaluation results
|
| 22 |
];
|
| 23 |
|
| 24 |
const BenchmarkEvaluation = ({ sessionId, isDefaultDocument, onComplete }) => {
|
|
@@ -352,7 +352,7 @@ const BenchmarkEvaluation = ({ sessionId, isDefaultDocument, onComplete }) => {
|
|
| 352 |
fontWeight: 500,
|
| 353 |
}}
|
| 354 |
>
|
| 355 |
-
Estimated time ~
|
| 356 |
</Typography>
|
| 357 |
</Box>
|
| 358 |
|
|
|
|
| 14 |
|
| 15 |
// Starting messages with their timing
|
| 16 |
const STARTING_MESSAGES = [
|
| 17 |
+
{ message: "Initializing evaluation environment", step: 1, totalSteps: 5 },
|
| 18 |
+
{ message: "Finding available model providers", step: 2, totalSteps: 5 },
|
| 19 |
+
{ message: "Starting evaluation process", step: 3, totalSteps: 5 },
|
| 20 |
+
{ message: "Evaluating models", step: 4, totalSteps: 5 },
|
| 21 |
+
{ message: "Storing evaluation results", step: 5, totalSteps: 5 },
|
| 22 |
];
|
| 23 |
|
| 24 |
const BenchmarkEvaluation = ({ sessionId, isDefaultDocument, onComplete }) => {
|
|
|
|
| 352 |
fontWeight: 500,
|
| 353 |
}}
|
| 354 |
>
|
| 355 |
+
Estimated time ~ 1m30s
|
| 356 |
</Typography>
|
| 357 |
</Box>
|
| 358 |
|
frontend/src/components/BenchmarkGenerator.jsx
CHANGED
|
@@ -460,22 +460,6 @@ const BenchmarkGenerator = ({ sessionId, isDefaultDocument, onComplete }) => {
|
|
| 460 |
}
|
| 461 |
};
|
| 462 |
|
| 463 |
-
// Get title based on current phase
|
| 464 |
-
const getPhaseTitle = () => {
|
| 465 |
-
switch (currentPhase) {
|
| 466 |
-
case "initializing":
|
| 467 |
-
return "Benchmark generation...";
|
| 468 |
-
case "configuring":
|
| 469 |
-
return "Creating benchmark...";
|
| 470 |
-
case "benchmarking":
|
| 471 |
-
return "Creating benchmark...";
|
| 472 |
-
case "complete":
|
| 473 |
-
return "Benchmark generated successfully!";
|
| 474 |
-
default:
|
| 475 |
-
return "Processing...";
|
| 476 |
-
}
|
| 477 |
-
};
|
| 478 |
-
|
| 479 |
// Get the current step information for display
|
| 480 |
const getCurrentStepInfo = () => {
|
| 481 |
const totalSteps = BENCHMARK_STEPS.length;
|
|
@@ -567,7 +551,7 @@ const BenchmarkGenerator = ({ sessionId, isDefaultDocument, onComplete }) => {
|
|
| 567 |
<>
|
| 568 |
<CircularProgress size={60} sx={{ mb: 2 }} />
|
| 569 |
<Typography variant="h6" component="div" gutterBottom>
|
| 570 |
-
|
| 571 |
</Typography>
|
| 572 |
|
| 573 |
{/* Step progress indicator */}
|
|
|
|
| 460 |
}
|
| 461 |
};
|
| 462 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 463 |
// Get the current step information for display
|
| 464 |
const getCurrentStepInfo = () => {
|
| 465 |
const totalSteps = BENCHMARK_STEPS.length;
|
|
|
|
| 551 |
<>
|
| 552 |
<CircularProgress size={60} sx={{ mb: 2 }} />
|
| 553 |
<Typography variant="h6" component="div" gutterBottom>
|
| 554 |
+
Creating benchmark...
|
| 555 |
</Typography>
|
| 556 |
|
| 557 |
{/* Step progress indicator */}
|