6 Commits

Author SHA1 Message Date
Misaka_Company
29a02fdf41 Add ERPAuto project migration and refactoring guide
Document the migration strategy and architecture decisions for porting
Python Playwright automation to TypeScript/Electron application.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-28 16:49:35 +08:00
Misaka_Company
9db298c027 Migrate ExcelConverter from Python to TypeScript
Replace pandas+openpyxl with exceljs for Excel file processing. This
migration enables seamless integration with the Electron main process
and maintains 1:1 functional parity with the Python implementation.

Key changes:
- Add exceljs dependency (v4.4.0)
- Implement ExcelConverter class in TypeScript with strict types
- Add comprehensive unit tests (13 test cases, all passing)
- Support field name mapping, order parsing, and material extraction
- Handle empty data tables and file conflicts gracefully

Verification:
- Successfully tested with sample Excel file (99 orders, 625 records)
- All unit tests passing
- Output format matches Python version

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-28 16:48:28 +08:00
Misaka_Company
d8709d83ae Add playwrite submodule to .gitignore 2026-02-28 15:37:02 +08:00
Misaka_Company
2f3bfc219e Refactor auth service login and logout logic
- Fix iframe handling in login process
- Use getByRole for more reliable element selection
- Add forced login confirmation dialog handling
- Refactor logout to support intelligent Frame detection
- Replace || with ?? for proper null coalescing
- Update tests to avoid global ENV mutations

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-28 15:19:06 +08:00
Misaka_Company
62724c0050 Add .claude to .gitignore
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-28 14:15:04 +08:00
Misaka_Company
cae0b845ac first commit 2026-02-28 14:11:35 +08:00