Election-Tech-Initiative / Election-Tech-Initiative/electionguard-api-python

✨ Creating a user-friendly, non-duplicative Election Name field

Đang mở
#203 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Python
Star
37
Fork
29
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Suggestion

When an election administrator creates an election entry in the setup tool, we want them to use a descriptive name that allows them to uniquiely identify the election they're preparing for, such as:

- Hamilton County April General Election
- Harris County Special Election May 13, 2023
- Eureka Township Mayoral Runoff # 2

We want to make sure these character formulations are possible. If there are problematic characters (e.g., '?', '%', '$', '@', etc.) we should alert the user and prevent their being submitted/displayed in the text box.

To avoid downstream application errors, we want to ensure each ```Election Name``` is unique. From a UX perspective, we should enforce uniqueness at name creation.

When a user finishes creating an Election Name, if they press the ```Enter``` key or the ```Create Election``` button, before proceeding to the next screen the name is submitted, instead an animation that the name is being checked.

If the name is unique, the animation turns green and the user progresses to the next page in the sequence

If the name is not unique, an alert is triggered and an error message displayed: "There is already an election named [foo]". The cursor focus is returned to the text box where the original submission text is displayed with an appended set of text such as ```[1]```. If there is already a [1] entry, then [2].

From that point, if the user simply hits return again the new item can be submitted since it's already been "pre-screened" as unique. Alternatively, the user can move the cursor or hit the delete or backspace keys to change the text themselves and resubmit

### Possible Implementation

_No response_

### Anything else?

_No response_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.