feat(w3): ship v1.4.0 export matrix, cockpit tasks, and focus ambient

Add ExportMatrixService for txt/md/docx/pdf, extend ExportModal, cockpit outline tasks, focus ambient sound, and E2E-PDF-01 with 134 passing unit tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-08 16:56:53 +08:00
parent c10be87d18
commit c5c0b7329b
23 changed files with 890 additions and 37 deletions
@@ -64,9 +64,9 @@
- Create: `src/main/services/export-matrix.service.ts`
- Create: `src/main/ipc/handlers/export-matrix.handler.ts`
- [ ] **Step 1:** 章/卷/全书范围解析
- [ ] **Step 2:** txt/md 导出 + 选项(批注/AI 标注)
- [ ] **Step 3:** UT 章级 txt 导出
- [x] **Step 1:** 章/卷/全书范围解析
- [x] **Step 2:** txt/md 导出 + 选项(批注/AI 标注)
- [x] **Step 3:** UT 章级 txt 导出
---
@@ -76,8 +76,8 @@
- Modify: `package.json``docx`
- Modify: `export-matrix.service.ts`
- [ ] **Step 1:** docx 目录与章节结构
- [ ] **Step 2:** IT-DOCX-01 含目录
- [x] **Step 1:** docx 目录与章节结构
- [x] **Step 2:** IT-DOCX-01 含目录
---
@@ -86,9 +86,9 @@
**Files:**
- Modify: `export-matrix.service.ts`
- [ ] **Step 1:** HTML 模板 + printToPDF
- [ ] **Step 2:** A4 页眉页脚
- [ ] **Step 3:** E2E mock 路径 BILIN_E2E_PDF_SAVE
- [x] **Step 1:** HTML 模板 + printToPDF
- [x] **Step 2:** A4 页眉页脚
- [x] **Step 3:** E2E mock 路径 BILIN_E2E_PDF_SAVE
---
@@ -97,8 +97,8 @@
**Files:**
- Modify: `ExportModal.tsx``preload``ipc-channels`
- [ ] **Step 1:** 格式/范围/选项选择
- [ ] **Step 2:** 保存对话框与 toast
- [x] **Step 1:** 格式/范围/选项选择
- [x] **Step 2:** 保存对话框与 toast
---
@@ -108,8 +108,8 @@
- Modify: `CockpitModal.tsx`
- Modify: `FocusModeOverlay.tsx``SettingsPage.tsx`
- [ ] **Step 1:** 今日大纲任务 Top 5pending + expectedWordCount
- [ ] **Step 2:** 专注模式环境音开关与播放
- [x] **Step 1:** 今日大纲任务 Top 5pending + expectedWordCount
- [x] **Step 2:** 专注模式环境音开关与播放
---
@@ -120,10 +120,10 @@
- Modify: `package.json``README.md``SettingsPage.tsx`
- [x] **Step 1:** E2E-READ-01~03
- [ ] **Step 2:** E2E-PDF-01
- [ ] **Step 3:** 全量 test + 相关 E2E
- [ ] **Step 4:** 版本 **v1.4.0**
- [ ] **Step 5:** 勾选本 plan 全部 checkbox
- [x] **Step 2:** E2E-PDF-01
- [x] **Step 3:** 全量 test + 相关 E2E
- [x] **Step 4:** 版本 **v1.4.0**
- [x] **Step 5:** 勾选本 plan 全部 checkbox
---