openless
openless copied to clipboard
Refactor: split oversized modules for maintainability
From the 1-app audit (2026-06-17). Behavior-preserving splits of god-files; do one at a time with full all-platform CI.
src-tauri/src/coordinator.rs(3083) +coordinator/submodules — still a large state-machine hub (#8)src-tauri/src/types.rs(~2900) — grab-bag of unrelated domain types (#9). ⚠️ A prior attempt to split hotkey types out broke the Windows build (cfg-gated types failed to resolve) — needs careful cfg handling + Windows CI.src/pages/LocalAsr/index.tsx(2921) — single component, ~49 hooks, no sub-components (#10)src-tauri/src/persistence.rs(~2711) — 5 unrelated stores + credential/path logic in one file (#25)src/lib/ipc.ts(1765) — 120 exports mixing mock data, Tauri bindings, localStorage (#28)
Each split must keep behavior/IPC/UI identical and pass cargo test (446) + tsc + build + all-platform CI.