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:
GotthardG
2025-03-14 13:11:05 +01:00
parent f41262575e
commit fbc32474ff
9 changed files with 267 additions and 165 deletions

View File

@ -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');