mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 06:50:53 +00:00
feat(25-02): add doctor and repair Quick Action buttons
- Add 'paperforge-doctor' action: runs 'python -m paperforge doctor' - Add 'paperforge-repair' action: runs 'python -m paperforge repair' - ACTIONS array now has 4 entries: sync, ocr, doctor, repair - Existing _runAction() handles both new commands unchanged (thin CLI shell)
This commit is contained in:
parent
dbeb17f1bc
commit
972b894b1d
1 changed files with 16 additions and 0 deletions
|
|
@ -171,6 +171,22 @@ const ACTIONS = [
|
|||
cmd: 'ocr',
|
||||
okMsg: 'OCR started',
|
||||
},
|
||||
{
|
||||
id: 'paperforge-doctor',
|
||||
title: 'Run Doctor',
|
||||
desc: 'Verify PaperForge setup \u2014 check configs, Zotero, paths, and index health',
|
||||
icon: '\u2695', // ⚕
|
||||
cmd: 'doctor',
|
||||
okMsg: 'Doctor complete',
|
||||
},
|
||||
{
|
||||
id: 'paperforge-repair',
|
||||
title: 'Repair Issues',
|
||||
desc: 'Fix three-way state divergence, path errors, and rebuild index',
|
||||
icon: '\u21BA', // ↺
|
||||
cmd: 'repair',
|
||||
okMsg: 'Repair complete',
|
||||
},
|
||||
];
|
||||
|
||||
class PaperForgeStatusView extends ItemView {
|
||||
|
|
|
|||
Loading…
Reference in a new issue