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

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

オープン
#203 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。