Skip to content

Safe preview and confirmation flow#271

Open
mekeke111 wants to merge 3 commits into
Nanle-code:masterfrom
mekeke111:safe-preview-and-confirmation-flow
Open

Safe preview and confirmation flow#271
mekeke111 wants to merge 3 commits into
Nanle-code:masterfrom
mekeke111:safe-preview-and-confirmation-flow

Conversation

@mekeke111
Copy link
Copy Markdown

Summary

This PR introduces safer execution workflows for high-risk operations by adding preview, validation, and confirmation steps before actions are performed.

The goal is to reduce accidental deployments, unintended network changes, and misuse of blockchain resources by ensuring users can review actions before execution.

Changes Made

Confirmation Flows

  • Added confirmation prompts before executing high-risk commands
  • Displayed clear summaries of pending operations
  • Required explicit user confirmation before proceeding

Preview & Validation

  • Added preview functionality where supported
  • Implemented validation checks before execution
  • Enabled users to inspect operation details prior to submission

Mainnet Safety Warnings

  • Added prominent warnings when actions target mainnet environments
  • Highlighted potential risks associated with live blockchain interactions
  • Standardized warning messaging across workflows

User Experience Improvements

  • Improved visibility of execution details
  • Reduced likelihood of accidental operations
  • Ensured consistent confirmation behavior throughout the application

Acceptance Criteria

  • High-risk commands provide strong confirmation behavior
  • Preview or validation information is shown before execution
  • Users can verify actions before proceeding
  • Mainnet warnings are visible and consistent
  • Safety messaging is applied across risky workflows

Testing

  • Verified confirmation prompts appear before high-risk actions
  • Tested preview and validation workflows
  • Confirmed mainnet warnings display correctly
  • Validated users can review operation details before execution

Closes #211

mekeke111 added 3 commits June 1, 2026 06:54
- Add centralized confirmation utility module (src/utils/confirmation.rs)
- Enhance deploy.rs with detailed confirmation summary and mainnet warnings
- Enhance tx.rs (send/batch) with detailed confirmation summaries
- Add confirmation to invoke.rs before submission (critical gap fixed)
- Enhance wallet merge with detailed confirmation summary
- Enhance upgrade execute/rollback with detailed confirmation summaries
- Implement consistent mainnet warnings across all risky commands
- Add type-to-confirm for high-risk operations (mainnet, account merge)
- Support dry-run/preview modes where applicable
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@mekeke111 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@mekeke111
Copy link
Copy Markdown
Author

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add safe preview and confirmation flows for risky actions

1 participant