-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frontend: submit data entry using correct polling station information #108
Comments
@jorisleker As far as I can tell the design doesn't specify what happens to the "Beginnen" button when an invalid station number is entered. Should we disable the button until a valid and existing polling station is entered? Or should clicking the button just "do nothing"? |
For now it's okay to 'just to nothing'. Has not been designed, we will decide how to handle this based on user research |
@jschuurk-kr you added these items to the issue description but they are not about the data entry form which this issue is about, but the polling station select page that was done in #107. Can you confirm that these points are resolved now? |
@praseodym It was not entirely clear to me if clicking "Beginnen" was part of #107 or not, hence that I added those cases here. As to their status, the first three are ok. If you enter something in the input field, it's either a valid polling station number or not. If it's valid, clicking "Beginnen" gets you to the next page. If it's not valid, nothing happens, but the user is shown the error "Geen stembureau gevonden met nummer <input>" next to the input field. The fourth one is not resolved. If you click "Beginnen" without inputting a polling station number, nothing happens. We should provide some feedback to the user. |
I considered the fourth case to be the same as @jorisleker's comment (#108 (comment)) on case 2. |
Yes, we can handle case 2 and 4 the same way. That is: no action needed now, but will consider adding specific feedback for those cases |
@jorisleker @cikzh Let's discuss case 4 during standup? |
Yes, agreed. We need a solution, just not in this issue |
|
@praseodym Am I correct that for this issue, we don't yet know about |
Yes, right now only |
@jorisleker Since we now load data from the backend, we need to show something before the polling station is loaded. Right now I've implemented a badly aligned spinner, but is there a design available for when a whole page is loading? |
@cikzh Lets go for the easiest fix: no design at all. When normal webpages load, default browser behavior is to show a blank page. No spinner, no text, no nothing. Can we do that? I think most pageloads will be that fast (<1s) that we don't really need any loading indicator. |
That makes sense, I will do that 👍 Edit: will be done in #193 |
Make sure that the data entry page uses the correct polling station information (id, number, name) from the polling station that was selected and also submit to the data entry API endpoint using the that id.
Cases to consider:
Submitting through the keyboard should not happen on "Enter", only on "Shift + Enter".
The text was updated successfully, but these errors were encountered: