Massive changes. I dont know what happens. Rewrote the action wizard again. Fixed several bugs related to the utxo selection. QR codes were added for address. Add support for data results. Experiment with other methods of role extraction

This commit is contained in:
2026-03-22 13:20:46 +00:00
parent be52f73e64
commit a28d43a68b
35 changed files with 2226 additions and 1169 deletions

View File

@@ -80,8 +80,12 @@ function StatusBar(): React.ReactElement {
function DialogOverlay(): React.ReactElement | null {
const { dialog, setDialog } = useDialog();
// 'custom' dialogs are rendered and managed by the screen itself;
// we only handle input for the built-in dialog types.
const isBuiltInDialog = dialog?.visible === true && dialog.type !== 'custom';
useInput((input, key) => {
if (!dialog?.visible) return;
if (!isBuiltInDialog) return;
if (key.return || input === 'y' || input === 'Y') {
if (dialog.type === 'confirm' && dialog.onConfirm) {
@@ -92,9 +96,9 @@ function DialogOverlay(): React.ReactElement | null {
} else if (key.escape || input === 'n' || input === 'N') {
dialog.onCancel?.();
}
}, { isActive: dialog?.visible ?? false });
}, { isActive: isBuiltInDialog });
if (!dialog?.visible) return null;
if (!isBuiltInDialog) return null;
const borderColor = dialog.type === 'error' ? colors.error :
dialog.type === 'confirm' ? colors.warning :