fecgov / fecfile-web-app

7 stars 4 forks source link

Validate Committee ID/Candidate ID when it is entered #1694

Open GreggMoreland opened 7 months ago

GreggMoreland commented 7 months ago

Business Reason

As a Committee Administrator, I will be able to enter a valid committee ID or candidate ID when I create a contact so that I can ensure that it meets the EFO formating requirements.

Acceptance Criteria

Given a Committee Administrator When I save a new Committee ID or Candidate ID in my contacts If the ID is for a Committee Then the new ID will be validated with the following:

Or

If the ID is for a Candidate Then the new ID will be validated with the following:

Wireframes

QA Notes

DEV Notes

Reference image from Mahi: image

Valid State codes AK, AL, AR, AS, AZ, CA, CO, CT, DC, DE, FL, GA, GU, HI, IA, ID, IL, IN, KS, KY, LA, MA, MD, ME, MI, MN, MO, MP, MS, MT, NC, ND, NE, NH, NJ, NM, NV, NY, OH, OK, OR, PA, PR, RI, SC, SD, TN, TX, US, UT, VA, VI, VT, WA, WI, WV, WY

Design

null

FECFILE-492

AureliaKhorsand commented 6 months ago

@MitchellTCG @mary-tcg - We'll probably need to update the validation error if the ID is entered incorrectly. Not sure how much detail you want to go into.

mary-tcg commented 5 months ago

@MitchellTCG wire uploaded

mary-tcg commented 3 months ago

@MitchellTCG wire updated per our discussion

MitchellTCG commented 3 months ago

I need to run something by Jonella and then I will move this to BA Review