Recognise when a user is trying to validate a private SSH key
User repeatedly pastes his private key rather than his public key into the SSH key field (https://gitlab.com/profile/keys). He doesn't understand why he is receiving an error message.
This problem was identified as part of the following research study: ux-research#53 (closed)
- Recognise when a user has accidentally copied and pasted their private SSH key instead of their public SSH key. Inform them with a clear input field validation error message.
- Update current copy via following changes/additions on the SSH keys settings page
New wording for labels, descriptions, placeholders
- Block description
- New "Key" description
- "Key" placeholder
- New "Title" description
- "Title" placeholder
|Add key form||Form alert|
User flow when private key is entered
- User pastes the key
- User fills in the Title input field ('Add key' button becomes enabled)
- User clicks on 'Add key'
- Alert shows up
- User checks the key, deletes it from 'Key' text area and pastes in the correct public key
- User clicks on 'Yes, it's not private'
- The key is added
- Moved long placeholder text from 'Key' text area outside of it, below the 'Key' label as paragraph text.
- Changed the 'Key' text area placeholder to a shorter and helpful one
- Added an example placeholder text to the 'Title' input field
- Added a warning alert that shows up when we think the key might be private.