Refine event types and update related models and logic
Standardized event types with stricter validation using `Literal`. Adjusted related data and logic to align with new types, including changes to PGROUP assignments, event timeline increments, and schema updates. Cleaned up unused code and clarified database initialization behavior.
This commit is contained in:
@ -59,8 +59,8 @@ const SampleTracker: React.FC<SampleTrackerProps> = ({ activePgroup }) => {
|
||||
|
||||
|
||||
const getSampleColor = (events: Event[] = []) => {
|
||||
const hasMounted = events.some((e) => e.event_type === 'Mounted');
|
||||
const hasUnmounted = events.some((e) => e.event_type === 'Unmounted');
|
||||
const hasMounted = events.some((e) => e.event_type === 'Mounting');
|
||||
const hasUnmounted = events.some((e) => e.event_type === 'Unmounting');
|
||||
const hasLost = events.some((e) => e.event_type === 'Lost');
|
||||
const hasFailed = events.some((e) => e.event_type === 'Failed');
|
||||
|
||||
|
Reference in New Issue
Block a user