diff --git a/client/components.d.ts b/client/components.d.ts index c0728ab9..8369ee5b 100644 --- a/client/components.d.ts +++ b/client/components.d.ts @@ -14,11 +14,15 @@ declare module 'vue' { AuthOrchestrator: typeof import('./src/components/auth/AuthOrchestrator.vue')['default'] DropField: typeof import('./src/components/DropField.vue')['default'] EditableText: typeof import('./src/components/EditableText.vue')['default'] + ErrorIndicator: typeof import('./src/components/ErrorIndicator.vue')['default'] IBiArrowDownCircleFill: typeof import('~icons/bi/arrow-down-circle-fill')['default'] IBiArrowLeft: typeof import('~icons/bi/arrow-left')['default'] IBiArrowRightCircle: typeof import('~icons/bi/arrow-right-circle')['default'] + IBiCheck2: typeof import('~icons/bi/check2')['default'] IBiChevronRight: typeof import('~icons/bi/chevron-right')['default'] + IBiClipboard: typeof import('~icons/bi/clipboard')['default'] IBiCompassFill: typeof import('~icons/bi/compass-fill')['default'] + IBiExclamationTriangleFill: typeof import('~icons/bi/exclamation-triangle-fill')['default'] IBiPencilFill: typeof import('~icons/bi/pencil-fill')['default'] IBiTrash: typeof import('~icons/bi/trash')['default'] LoginFailureModal: typeof import('./src/components/auth/LoginFailureModal.vue')['default'] diff --git a/client/src/components/DropField.vue b/client/src/components/DropField.vue index cb7d843a..649b7a35 100644 --- a/client/src/components/DropField.vue +++ b/client/src/components/DropField.vue @@ -6,10 +6,11 @@ + + + + diff --git a/client/src/components/MapComponent.vue b/client/src/components/MapComponent.vue index 1153ab76..dde1bd49 100644 --- a/client/src/components/MapComponent.vue +++ b/client/src/components/MapComponent.vue @@ -34,6 +34,7 @@ import { useMapStateStore } from '@/stores/mapstate' import { StyleFactoryFixedColors, THREE_BROWN_COLORSTYLE, FIVE_COLORFUL_COLORSTYLE } from '@/lib/mapStyles'; import { queue, type QueueObject } from 'async' import { createTrackLoadingAsyncWorker, type IdList, type Task } from '@/lib/trackLoadAsyncWorker' +import { reportError } from '@/stores/errorstore' const NUMWORKERS = 4 const BATCHSIZE = 5 @@ -86,7 +87,7 @@ configStore.loadConfig(props.sid) throw Error(`Unknown TRACKSTYLE config value ${TRACKSTYLE}`) } }) - .catch((e) => console.error("Could not load config", e)) + .catch((e) => reportError("Could not load config", e)) // Initialize loading worker and queue const addLayerFunc = (featureWithTrack: MultiLineStringWithTrack) => mmap.addTrackLayer(featureWithTrack) @@ -124,7 +125,7 @@ onMounted(() => { () => { popoverData.value = null } ) }).catch((err) => { - console.error("Error in nextTick", err) + reportError("Error in nextTick", err) }) }) @@ -180,13 +181,13 @@ function makeVisible(ids: IdList, mmap: ManagedMap, queue: QueueObject, zo if (zoomOut) { mmap.setExtentAndZoomOut() } } ) - .catch((e) => console.error("what??", e)) + .catch((e) => reportError("Error draining load queue", e)) loading.value = true // should be true already queue.push(listOfTasks, (err, retVal) => { if (err) { if (err.name === 'AbortError') console.log("Aborted worker") - else console.error("Error in worker", err) + else reportError("Error in worker", err) } if (retVal) console.log("Return value from worker", retVal) }) diff --git a/client/src/components/TrackManagerNavBar.vue b/client/src/components/TrackManagerNavBar.vue index bc5146c2..5262852e 100644 --- a/client/src/components/TrackManagerNavBar.vue +++ b/client/src/components/TrackManagerNavBar.vue @@ -2,7 +2,7 @@