Skip to content

Lighten validation on the Athelete ID field to enable numerical values (especially for copy and paste)#62

Open
hsouth95 wants to merge 1 commit into
sargant:mainfrom
hsouth95:feature/paste-id
Open

Lighten validation on the Athelete ID field to enable numerical values (especially for copy and paste)#62
hsouth95 wants to merge 1 commit into
sargant:mainfrom
hsouth95:feature/paste-id

Conversation

@hsouth95

Copy link
Copy Markdown

I had an issue when using this form where I tried to paste in my athelete ID number and was just going to manually add the 'A' at the beginning. In order to fix this, I've side-stepped the validation and just manually prepended the 'A'.

An alternative approach is to move the validation to the handleOpenProfile and show a custom warning for this field.

Pasted values could be ignored if not in the correct format which was
a pain for users. This change just manually adds the 'A' if it doesn't exist
to ensure a better user experience.
@vercel

vercel Bot commented Jun 15, 2024

Copy link
Copy Markdown

@hsouth95 is attempting to deploy a commit to the sargant's projects Team on Vercel.

A member of the Team first needs to authorize it.

@sargant

sargant commented Jan 4, 2025

Copy link
Copy Markdown
Owner

Sorry I hadn't seen this - not been receiving GitHub emails for months, not sure why!

A good idea, but this logic currently prepends "A" to anything you paste. I'm going to take a look at refactoring this whole app soon and will keep this in mind - all I've done the past couple of years is update the certificates on an annual basis, but I'll keep the MR open as a reminder.

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