feat(shield/compact): always-on chip tooltip, compact shortcut on Done, clearer compact feedback (F031/F071/F072)

UX audit, Shield/Consolidate surface (batch 3):

- F031: the status-bar consolidation chip always shows a tooltip ("Consolidating notes
  in the background — click to view or stop"), with the pause reason appended when any.
- F071: after a clean consolidate run, the Done screen notes the file won't shrink until
  compacted and offers a "Compact wallet…" shortcut (full-node) that opens the same
  confirm as Settings, via a new OpenCompactWalletConfirm() cross-module hook. Choice a.
- F072: the compact "started" toast is sticky and reworded ("don't close … a few
  minutes"), compact_done leads with "Compaction finished", and the confirm dialog notes
  the post-compaction rescan can take several minutes. Choice a.

New strings (English). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 15:46:57 -06:00
co-authored by Claude Opus 4.8
parent 3434679afe
commit fc6b854a00
6 changed files with 38 additions and 6 deletions
+1 -1
View File
@@ -6538,7 +6538,7 @@ void App::compactWallet()
compaction_salvage_expected_.store(true); // this salvage is a compaction, not a recovery — don't alarm
restartDaemon(); // does its own full-node / busy / lifecycle guards and will refuse if the node is busy
if (daemon_restarting_.load()) {
n.info(TR("compact_started"));
n.info(TR("compact_started"), 20.0f); // sticky-ish: the rescan runs a while; "don't close" (F072)
} else {
daemon_controller_->setSalvageOnNextStart(false); // the restart was refused — disarm the stray salvage
compaction_salvage_expected_.store(false);