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

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

未关闭
#203 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Python
星标
37
派生
29
PR 合并指标
30 天内没有已合并 PR

描述

### 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_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。