refactor: comments

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-06-28 18:07:13 -04:00
parent d266b29e62
commit e04957de5e
6 changed files with 8 additions and 48 deletions
+2 -5
View File
@@ -1,9 +1,5 @@
/**
* Contact Import Store
*
* Drives the VCF import flow: a queue of files, each targeting a collection, imported
* sequentially while live counters stream in. Memory stays flat regardless of contact
* count — per-session counters are plain integers and recent results are capped.
*/
import { ref, computed } from 'vue'
@@ -32,7 +28,9 @@ function defaultOptions(): ImportFileOptions {
}
export const useImportStore = defineStore('peopleImportStore', () => {
// State
const lastFileInsertId = ref(-1)
const files = ref<ImportFileEntry[]>([])
const stage = ref<ImportSessionStage>('idle')
@@ -66,7 +64,6 @@ export const useImportStore = defineStore('peopleImportStore', () => {
// Actions
/** Queue a file for import; returns its assigned id. */
function addFile(file: ImportFileAdd): number {
const id = ++lastFileInsertId.value
files.value.push({