fix: use Save/Cancel buttons on consolidation and conversion dialogs

Replaces ambiguous Yes/No default buttons with explicit Save/Cancel
to prevent accidentally closing without saving.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
bal-spec 2026-03-06 19:51:03 -08:00
parent 4168f61075
commit 3e846a1bef
3 changed files with 9 additions and 3 deletions

View file

@ -1,5 +1,11 @@
# Changelog
## 1.6.2
### Improvements
- **Clearer dialog buttons**: Consolidation and conversion dialogs now show "Save" and "Cancel" buttons instead of the ambiguous "Yes"/"No" defaults, preventing accidental loss of edits.
## 1.6.1
### New Features

View file

@ -982,7 +982,7 @@ async function previewConversion() {
const formatLabel = formatLabels[format] || format;
const method = useLLM && format !== 'memory_tags' ? 'LLM' : 'Heuristic';
const dialogHtml = buildConversionDialog(sourceContent, formatLabel, method, editorBlocks, editingSet, useLLM && format !== 'memory_tags');
const popup = callGenericPopup(dialogHtml, POPUP_TYPE.CONFIRM, '', { wide: true, allowVerticalScrolling: true });
const popup = callGenericPopup(dialogHtml, POPUP_TYPE.CONFIRM, '', { wide: true, allowVerticalScrolling: true, okButton: 'Save', cancelButton: 'Cancel' });
// === Editor event delegation (same card classes as consolidation, different namespaces) ===
@ -4194,7 +4194,7 @@ async function consolidateMemories() {
// Build and show the interactive dialog
const dialogHtml = buildConsolidationDialog(memories, beforeCount, editorBlocks, editingSet);
const popup = callGenericPopup(dialogHtml, POPUP_TYPE.CONFIRM, '', { wide: true, allowVerticalScrolling: true });
const popup = callGenericPopup(dialogHtml, POPUP_TYPE.CONFIRM, '', { wide: true, allowVerticalScrolling: true, okButton: 'Save', cancelButton: 'Cancel' });
// Set up the strategy dropdown and prompt viewer to match current setting
const currentStrategy = extension_settings[MODULE_NAME].consolidationStrategy || 'balanced';

View file

@ -6,7 +6,7 @@
"js": "index.js",
"css": "style.css",
"author": "bal-spec",
"version": "1.6.1",
"version": "1.6.2",
"homePage": "",
"auto_update": false
}