You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow to return to an ongoing shared election if page was closed
In this special case, the shared election code should be added to the data
When loading that data with a shared election code, delete the code from the data
Verify to not take another seat when loading the election if a seat was already taken
Add loading icon when making request
Add request errors handling
If election not reachable, propose to do it locally instead
If election already ended, propose to either go to results or to do this saved election locally
The option to go to the results would be the primary action
Allow post-shared-election-view to force a seat to be freed
This would be helpful if a device that had a seat simply dies or skips locally.
The action would always be enabled, as there may be a complete internet outage for one of th devices that had its seat locked locally, so the server may not know that the seat can be leased. The assumption is therefore always allow leasing under your own risks.
Add a confirmation that explains that this action is dangerous
The severity if the server knows there are at least one leased seat is less severe, but still warn user
The severity if the server thinks there are no leased seats is very high, as there might be other voters currently in progress
Add request errors handling
If errors, mentions that you can simply go to current local data, mentionning that verifying will also download the latest candidates data
The text was updated successfully, but these errors were encountered:
The data object would have a new field, named currentlyHasSeat that would track if the current election has a seat taken. This will be used to load the election back again if the connection is broken.
Actually... thinking about it, we already kinda handle problems of sending votes by storing the votes array in a temporary variable and querying that variable in the go_to_next_voter method...
I should just simply use that variable to try again on load if there were errors! That variable should therefore be added to the data when there is errors, so I can handle it later on. Don't take a seat, just send the votes that were saved on error (maybe after confirmation?).
That would actually fix all the things! Maybe you shouldn't even need that much of a lease-seat after all! But it would be useful if a device dies, not only that it loses internet.
This is a continuation of PR #68
TODOs
The text was updated successfully, but these errors were encountered: