## Context Import/Export feature spec (DESIGN_REQUIREMENTS FR-8 marked [partial]). Per docs/audits/import.md F1. ## Problem docs/design/ARCHITECTURE.md:1126-1142 declares 3 dedicated Tauri commands: export_data, import_data, preview_import. None exist on disk: `grep -n "fn import_data\|fn preview_import\|fn export_data" src-tauri/src/` returns zero hits. Frontend routes everything through generic api.executeQuery per statement. ## Files - docs/design/ARCHITECTURE.md:1126-1142 - src-tauri/src/commands/mod.rs (entire file) - src/lib/tauri-api.ts:115-117 ## Repro Static analysis only. Architecture doc being followed as contract for surface that doesn't exist. ## Expected ARCHITECTURE describes reality. Either implement the 3 commands or amend the doc. ## Proposed fix L: implement in src-tauri/crates/mas-core/src/commands/import.rs — import_data opens transaction + bulk-inserts in batches server-side; preview_import returns parsed rows + inferred column types without touching DB; export_data streams to file via tokio::fs::File. Wire through tauri::command pattern. Refactor ImportDialog. OR amend ARCHITECTURE 5.5 to describe executeQuery-only surface. ## Acceptance `grep -rn "fn import_data\|fn preview_import\|fn export_data" src-tauri/` returns >=1 hit per function in handlers, OR ARCHITECTURE 5.5 amended. ## Needs human verify yes (option choice + UX impact)
Activity