feat: wire batch media converter and document compare, remove coming-soon stubs

- batch.showConverter: open BatchMediaConverterDialog for image/audio/video
  types (uses existing universal-convert-batch handler with ImageMagick/FFmpeg)
- tools.documentCompare: line-by-line diff of two open tabs with confirmation
  dialog, shows diff count in toast and full diff in console
- No more 'coming soon' toasts for any menu item
This commit is contained in:
2026-06-14 01:51:43 +05:30
parent 809c266e54
commit 7eb90d467a
2 changed files with 50 additions and 8 deletions
+16 -5
View File
@@ -12,10 +12,14 @@ async function getStatus(dir) {
for (const [filePath, status] of Object.entries(result.files || {})) {
files.push({
filePath,
status: status.working_dir === 'M' ? 'modified'
: status.working_dir === 'A' || status.index === 'A' ? 'added'
: status.working_dir === 'D' || status.index === 'D' ? 'deleted'
: 'untracked',
status:
status.working_dir === 'M'
? 'modified'
: status.working_dir === 'A' || status.index === 'A'
? 'added'
: status.working_dir === 'D' || status.index === 'D'
? 'deleted'
: 'untracked',
});
}
return { files };
@@ -33,7 +37,14 @@ async function stage(dir, files) {
for (const [filePath, status] of Object.entries(result.files || {})) {
staged.push({
filePath,
status: status.index === 'A' ? 'added' : status.index === 'M' ? 'modified' : status.index === 'D' ? 'deleted' : 'untracked',
status:
status.index === 'A'
? 'added'
: status.index === 'M'
? 'modified'
: status.index === 'D'
? 'deleted'
: 'untracked',
});
}
return { files: staged };