EnCiv / undebate-ssp

Undebate Self Service Portal- Web portal where election administrators of democratically run organizations create undebates for their candidates and voters
Other
6 stars 9 forks source link

loading spinner #190

Closed ddfridley closed 1 year ago

ddfridley commented 2 years ago

When you first login, if the connection is slow, it will take a while for elections to load. Similarly, if you click on an election, and go to the configure-election page it may take some time to load.

We should have a spinner, or something indicating that something is happening.

For code. the data for the election list is fetched in app/components/undebate-homepage.js and then the list is rendered from there

The data for configuring the election is fetched in app/components/subscribe-election-info.js and then the election component is rendered from there.

Ideally, there would be one new react component that renders the spinner, until it's time to render the component. Also their might be a decent npm package.

ddfridley commented 1 year ago

closed in #193