Skip to content

Comments

add confirmation dialog for discarding new wallet form changes#519

Closed
fengyunfengyun1 wants to merge 3 commits intoGreenstand:mainfrom
fengyunfengyun1:create_new_wallet_confirmation_form
Closed

add confirmation dialog for discarding new wallet form changes#519
fengyunfengyun1 wants to merge 3 commits intoGreenstand:mainfrom
fengyunfengyun1:create_new_wallet_confirmation_form

Conversation

@fengyunfengyun1
Copy link
Contributor

Description

Add confirmation dialog for discarding new wallet form changes

Fixes: #364
or
Resolves: # (issue number)


Changes Made

  • Changes in apps folder (specify the app and briefly describe the
    changes):

    • Web
    • Native
  • Changes in packages folder (specify the package and briefly describe
    the changes):

    • Core

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing
    functionality to not work as expected)
  • 📝 Documentation update (changes)

Screenshots

Before After
"screenshot before" "screenshot after"
Screen Shot 2025-08-19 at 3 17 04 PM |

How Has This Been Tested?

  • Cypress integration
  • Cypress component tests
  • Jest unit tests

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Additional Comments

(Optional) Add any additional comments or notes for reviewers here.

@fengyunfengyun1 fengyunfengyun1 requested a review from a team as a code owner August 19, 2025 22:20
@fengyunfengyun1 fengyunfengyun1 force-pushed the create_new_wallet_confirmation_form branch from 12fbf8d to 862d465 Compare August 31, 2025 08:27
Copy link
Collaborator

@pierrelstan pierrelstan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add Cypress component tests to cover:

  • Drawer open/close behavior.

  • "Create Wallet" button enable/disable logic.

  • Duplicate name validation.

  • Confirmation dialog behavior.

Note: The confirmation dialog currently does not open as expected — this needs to be fixed.

</Box>
</Drawer>
<>
<Drawer
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drawer should be tied with a aria-labelledby

onClose();
};

const requestClose = useCallback(() => {
Copy link
Collaborator

@pierrelstan pierrelstan Sep 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The requestClose logic works well, but renaming it to handleCloseRequest would align better with common handler naming conventions.

@fengyunfengyun1
Copy link
Contributor Author

all changes were in #564

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.

2 participants