feat(wallet): live progress modal for wallet switching
The "Stop the running node?" confirm modal now stays open through the entire switch — stop → wait-for-exit → start → reconnect — showing a live phase, and auto-closes the moment the new node connects. This turns the up-to-a-minute graceful-shutdown wait from an apparent freeze into visible progress. - WalletSwitchPhase (Stopping/Starting/Reconnecting/Failed) + atomic phase and dialog-open flags; the worker advances the phase, onConnected closes the modal, and a failed switch shows the accurate reason with a Close button. - Owned switches (no confirm) also show the progress modal directly. - "Continue in background" escape hatch so a long rescan / a hung startup never traps the user (the switch keeps running; a toast reports the result). - isWalletSwitchInProgress() keeps the frame loop redrawing so the phase text and spinner animate while otherwise idle. - i18n (EN + 8 languages, additive) + a modal-switch-progress sweep surface. State machine adversarially verified 6/6 (thread-safety, no stuck modal, confirm→progress transition, owned/unowned, no phase leak, redraw scoping). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1294,6 +1294,13 @@
|
||||
"sweep_to": "Barrido a:",
|
||||
"sweep_toggle": "Barrer a mi monedero (no conservar la clave)",
|
||||
"sweep_tx": "Transacción:",
|
||||
"switch_progress_background": "Continuar en segundo plano",
|
||||
"switch_progress_failed_title": "Error al cambiar de cartera",
|
||||
"switch_progress_hint": "Un apagado ordenado puede tardar hasta un minuto.",
|
||||
"switch_progress_reconnecting": "Reconectando",
|
||||
"switch_progress_starting": "Iniciando el nodo con la nueva cartera",
|
||||
"switch_progress_stopping": "Deteniendo el nodo actual",
|
||||
"switch_progress_title": "Cambiando de cartera",
|
||||
"switch_stopnode_body": "Cambiar de cartera reinicia el nodo con la cartera seleccionada. El nodo en ejecución se detendrá y se reiniciará con la nueva cartera; si lo dejaste en marcha a propósito, volverá a iniciarse automáticamente.",
|
||||
"switch_stopnode_confirm": "Detener nodo y cambiar",
|
||||
"switch_stopnode_title": "¿Detener el nodo en ejecución?",
|
||||
|
||||
Reference in New Issue
Block a user