Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,17 @@ button.primary:hover {
transition: var(--transition-fast);
}

.vab-save-btn:hover,
.vab-cancel-btn:hover {
background: var(--glass-bg);
}

.vab-save-btn.success {
background: var(--success-color, #4CAF50);
border-color: var(--success-color, #4CAF50);
color: white;
}

.vab-cat-tab:hover {
border-color: var(--color-primary);
color: white;
Expand Down
13 changes: 12 additions & 1 deletion src/ui/VABEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
this.blueprint = createFalconPreset();
try {
this.savedBlueprints = loadBlueprints();
} catch (e) {

Check warning on line 44 in src/ui/VABEditor.ts

View workflow job for this annotation

GitHub Actions / build-and-test

'e' is defined but never used
this.savedBlueprints = [];
}

Expand Down Expand Up @@ -147,7 +147,18 @@
this.savedBlueprints.push(this.blueprint);
}
saveBlueprints(this.savedBlueprints);
alert('Blueprint saved!');

// Inline success feedback
const originalText = saveBtn.textContent;
saveBtn.textContent = 'Saved!';
saveBtn.classList.add('success');
saveBtn.setAttribute('aria-live', 'polite');

setTimeout(() => {
saveBtn.textContent = originalText;
saveBtn.classList.remove('success');
saveBtn.removeAttribute('aria-live');
}, 2000);
return;
}

Expand Down
Loading