fecgov / fecfile-web-app

7 stars 4 forks source link

Default candidate district to 00 or 01 if that the only option available #2036

Open exalate-issue-sync[bot] opened 1 month ago

exalate-issue-sync[bot] commented 1 month ago

For certain states and territories, there is only one option to select for the district of a House candidate.

For the following states, the district should default to 01 when creating a candidate:

AK - Alaska

DE - Delaware

ND - North Dakota

SD - South Dakota

VT- Vermont

WY - Wyoming

For the following territories/districts, the district should default to 00 when creating a candidate:

AS - American Samoa

DC - District of Columbia

GU - Guam

MP - Northern Mariana Islands

PR - Puerto Rico

VI - US Virgin Islands

Acceptance Criteria

Given a user who is adding a Candidate from one of the listed states or territories in the ‘Add Contact’ or ‘Create a new contact’ page

When the State/Province is selected as one in the list above

And Candidate Office that is selected is House

Then the system will default the Candidate District to be 01 or 00, according to the list above,

And the user cannot change the district unless they change the State/Province.

QA Notes

In current functionality, if you are on the ‘Add Contact’ page and search for an existing candidate from one of these states or territories (example: Eleanor Holmes Norton from DC, Rebecca Balint from Vermont), the system will NOT populate the candidate district, even though the 00 or 01 are the only value available in the dropdown list.

This applies and should be tested both in the Contacts page ('Add Contact') and in a transaction page when ‘Create a new contact’ is selected with entity type ‘Candidate’ (Contribution to Candidate disbursement, for example)

DEV Notes

null

Design

h2. Wireframes

h3. Current State 01

!Screenshot 2024-08-14 at 11.14.03 AM.png|width=2076,height=1788,alt="Screenshot 2024-08-14 at 11.14.03 AM.png"!

h3. Ideal State 01

!01.png|width=889,height=761,alt="01.png"!

h3. Current State 00

!Screenshot 2024-08-14 at 11.19.18 AM.png|width=2076,height=1788,alt="Screenshot 2024-08-14 at 11.19.18 AM.png"!

h3. Ideal State 00

!00.png|width=889,height=761,alt="00.png"!

FECFILE-1457

PaulClark2 commented 1 month ago

Please make the default for all at-large districts 00. So, the default for the states below should be 00, also.

AK - Alaska DE - Delaware ND - North Dakota SD - South Dakota VT- Vermont WY - Wyoming

exalate-issue-sync[bot] commented 2 weeks ago

akhorsand commented: [~accountid:712020:3243085d-540a-4657-ad08-d891487882d0] can you flesh this ticket out with where this would happen, and make ACs out of the description? Thanks!

exalate-issue-sync[bot] commented 1 week ago

akhorsand commented: [~accountid:712020:3243085d-540a-4657-ad08-d891487882d0] can you list out where this change would apply in QA Notes? Looks like you have “Add a contact”, but this would apply for both Contact management pages and every time you’re editing/adding a contact within a transaction, right?

exalate-issue-sync[bot] commented 1 week ago

akhorsand commented: [~accountid:61b0b42cc510bc006b5c03ed] may be worth just a quick wire to show the district defaulted in and un-editable.

exalate-issue-sync[bot] commented 1 week ago

Mitchell Jarrett commented: [~accountid:61b0b42cd5986c006a9e1c94] [~accountid:712020:3243085d-540a-4657-ad08-d891487882d0] [~accountid:5b93ddba73130a2b8c662e23]

PLS review