ScratchAddons
ScratchAddons copied to clipboard
Live comments
Resolves #2215 Supersedes #3041
Changes
On project and studio pages, new comments now load automatically (using redux)
Reason for changes
Make it more like github
Tests
Tested locally
cc @CubeyTheCube
@FunctionalMetatable What happens in edge cases? Such as writing a reply to a comment chain that later got deleted.
What happens in edge cases? Such as writing a reply to a comment chain that later got deleted.
Same as the Cubey's PR:
This doesn't remove deleted comments, because that might generate confusion
Also, requests will become very spammy. Scratch should handle comment deletion as well
Let me test this locally.
Bruh, i tried turning this on and going to the TFH studio, and all of the comments start refreshing, but... backwards. The new comments will start dissapearing, and after a few minutes, you will literally see comments from a year ago.
Bruh, i tried turning this on and going to the TFH studio, and all of the comments start refreshing, but... backwards. The new comments will start dissapearing, and after a few minutes, you will literally see comments from a year ago.
hmm(fixed)
This is cool but needs to be handled with care, so we might work on this for v1.19.0. Some changes I'd make:
- Do not request comment data that often - maybe once every 10 seconds
- Require user to explicitly enable this every time they load the comment page, through a switch
- Only request comment data if tab is focused and cursor moved / some key was pressed in the last 10 minutes.
I also need to take a deeper look on how the addon works exactly and how it behaves when you load a single comment chain, as well as when you have loaded many pages of comments.
Backlog, sorry. I'll probably get into this when I have the time, and I'm still not 100% sure whether this is a good idea.
Honestly, it's probably more useful if we provide some official type of online/offline statuses. That's been the main barrier to "chatting" on Scratch for a while.
if im correct, st wont like it
if im correct, st wont like it
st doesn't even like scratch addons
if im correct, st wont like it
st doesn't even like scratch addons
Using a browser extension is different from spamming their API.
if im correct, st wont like it
Live comments or online statuses?
the manifest workflow is erroring, you should have projectPage instead of projects
any updates? this has been there for toooo long
What's the status of the requests I made on my review on https://github.com/ScratchAddons/ScratchAddons/pull/3064#issuecomment-888605040 ?
Is this still under development?
Closing because #6171 has popped up, and I don't have the time to maintain this anymore (i am @FunctionalMetatable)