Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit f8559303 authored by GotthardG's avatar GotthardG
Browse files

Implement polling for tracking sample updates in real-time

Added a 1-second polling interval to fetch the latest sample data, ensuring the UI remains updated with real-time progress. Cleaned up code formatting for readability and consistency. Improved `getSampleStatus` logic to better distinguish sample states.
parent 4a2d9bd1
No related branches found
No related tags found
No related merge requests found
Pipeline #46088 passed
......@@ -58,11 +58,13 @@ const SampleTracker: React.FC = () => {
const hasLost = events.some((e) => e.event_type === 'Lost');
const hasFailed = events.some((e) => e.event_type === 'Failed');
if (hasFailed) return 'red';
if (hasLost) return 'orange';
if (hasMounted && hasUnmounted) return 'green';
// Logic for status colors
if (hasFailed) return 'red'; // Failed samples: red
if (hasLost) return 'orange'; // Lost samples: orange
if (hasMounted && hasUnmounted) return 'green'; // Completed samples: green
if (hasMounted && !hasUnmounted) return 'blue'; // Currently mounted (Pending): blue
return 'gray';
return 'gray'; // Default: gray
};
const getSampleStatus = (events: Event[] = []) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment