hedyorg / hedy

Hedy is a gradual programming language to teach children programming. Gradual languages use different language levels, where each level adds new concepts and syntactic complexity. At the end of the Hedy level sequence, kids master a subset of syntactically valid Python.
https://www.hedy.org
European Union Public License 1.2
1.27k stars 282 forks source link

💻 Realtime updates #4646

Open hasan-sh opened 8 months ago

hasan-sh commented 8 months ago

Idea incl level Currently, whenever the user makes an action, we mostly "reload" the page or redirect them. However, this isn't the best UX. For instance, removing a class, student and an adventure isn't reflected in the UI of all parties.

Additional context This is problematic when different parties make changes simultaniously; e.g., after allowing second teachers to make changes (#4644). Use socketio or something similar.

TiBiBa commented 8 months ago

I have quite some experiencing with implementing Soketi websockets in a project. Please let me know if you need any help!

https://docs.soketi.app

Felienne commented 1 month ago

Hi @hasan-sh!

I know we have now done this in some places (creating adventures) but I am not sure where else. It is totally ok if you leave this one, but can you make a list here of places where it needs to be done still, to ease handover?

Felienne commented 2 weeks ago

Hi @Annelein!

Can you pick this up for the /admin page?

Annelein commented 1 week ago

@Felienne the admin page didn't need autosave, just htmx: https://github.com/hedyorg/hedy/pull/5631 I can however look into creating a list of pages for which it would be nice to implement autosave?

Felienne commented 1 week ago

5631

Awesome, thanks!!

I can however look into creating a list of pages for which it would be nice to implement autosave?

Love your proactive spirit, thanks! Sounds like a great idea to make this list, we can then prioritize in a next meeting.