HomePhabricator

[Cashtab] Validation function for new wallet name length

Description

[Cashtab] Validation function for new wallet name length

Summary: Added function + tests in validation.js & validation.test.js that handles checking new wallet name length. Related to T2409.

Test Plan:
cd web/cashtab && npm start
navigate to configure screen
ensure there is at least one wallet in saved wallets list
click rename wallet button
enter a wallet name longer than 24 characters
observe that the error message for a wallet name that is too long will appear when max character limit is exceeded
backspace the wallet name until there are 0 characters left in the input
observe that the error message displays when the wallet name is 0 characters long
enter a valid wallet name to the input
observe that the wallet name successfully updates on Ok.

Reviewers: bytesofman, #bitcoin_abc

Reviewed By: bytesofman, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D11835

Details

Provenance
kieran709Authored on Aug 8 2022, 15:46
kieran709Pushed on Aug 16 2022, 14:19
Reviewer
Restricted Project
Differential Revision
D11835: [Cashtab] Validation function for new wallet name length
Parents
rABC68f02a8950d6: [avalanche] Improve the getavalancheinfo RPC
Branches
Unknown
Tags
Unknown