The previous username validation message was too vague, this PR updates the validation to be more descriptive and adds a minimum character count.
Testing
Step 1 - Connect to a wallet (Dev wallet 4 onwards) without a profile and create a new profile. Enter a username with either fewer than 3 characters, more than 30, or includes special characters.
Step 2 - Either finish creating a profile, or connect to a wallet with a profile already created.
Step 3 - Go to the manage profile page.
Step 4 - Open: src/components/frame/v5/pages/UserProfilePage/partials/UserAccountPage/hooks.tsx and change line 92 to canChangeUsername: true, - the username field should now be editable.
Step 5 - Check the same validation applies and the same messages appear.
Description
The previous username validation message was too vague, this PR updates the validation to be more descriptive and adds a minimum character count.
Testing
src/components/frame/v5/pages/UserProfilePage/partials/UserAccountPage/hooks.tsx
and change line 92 tocanChangeUsername: true,
- the username field should now be editable.Diffs
Changes 🏗
Resolves #3312