Task planning and path generation software for automated data collection equipment (hyperspectral cameras, DSLR, depth cameras). - Generate mission plans (JSON) with subtasks per device - Generate scan path binary files (.RecordLine3) - Multi-rectangle area planning with reference map support - Device-specific FOV defaults (Pika L 17.6°, Pika NIR 21.7°, etc.) - Timeline scheduling with constraint validation - Tauri 2.x + Vue 3 + Naive UI + Pinia
29 lines
747 B
TypeScript
29 lines
747 B
TypeScript
import { defineStore } from 'pinia';
|
|
import { ref, computed } from 'vue';
|
|
import type { ValidationIssue } from '../types/validation';
|
|
|
|
export const useValidationStore = defineStore('validation', () => {
|
|
const issues = ref<ValidationIssue[]>([]);
|
|
|
|
const errorCount = computed(() => issues.value.filter(i => i.severity === 'Error').length);
|
|
const warningCount = computed(() => issues.value.filter(i => i.severity === 'Warning').length);
|
|
const hasIssues = computed(() => issues.value.length > 0);
|
|
|
|
function setIssues(newIssues: ValidationIssue[]) {
|
|
issues.value = newIssues;
|
|
}
|
|
|
|
function clear() {
|
|
issues.value = [];
|
|
}
|
|
|
|
return {
|
|
issues,
|
|
errorCount,
|
|
warningCount,
|
|
hasIssues,
|
|
setIssues,
|
|
clear,
|
|
};
|
|
});
|