-
-
Notifications
You must be signed in to change notification settings - Fork 573
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
feat: update poll #3111
base: main
Are you sure you want to change the base?
feat: update poll #3111
Conversation
✅ Deploy Preview for elk-docs canceled.
|
✅ Deploy Preview for elk-zone ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this is a nice addition.
I checked the change with this preview post: https://deploy-preview-3111--elk-zone.netlify.app/universeodon.com/@elkdev/112190894000305452
One comment: once the poll is finalized, it won't be updated anymore, so should we hide the update button after that?
That could be great indeed. Do you think it would be better to disabled the button or to hide it completely ?
|
I think hiding it would be better because
|
Will do ! |
On second though, there is still the following case: the poll is indeed closed but the local instance did not refetched the results yet (I saw that happening from time to time). Is this a case we should consider ? |
That sounds a bit tricky. So in my understanding, there are three phases about the poll state and returned poll data:
Since Elk can only send request to the local server via masto.js, we can only see the local poll data (possibly outdated) and we can use either So if we compared That means we need to use Do you think my assumption is correct? |
Oh indeed ! That seems perfectly correct, I will change the code according to that last answer :)
|
Add an "update poll" option on polls to retrieve the latest results
The refresh icon is animated during loading