| Post Reply | RetroFed Forums Forum Index » PieFed 2025 Roadmap prioritisation |
| Author | Message | ||
|---|---|---|---|
Rimu
piefed.social
rimu@piefed.socialJoined: 2024-01-04 |
The notification icon (the bell) isn’t showing notifications are waiting unless the screen is refreshed. It would be nice if it were more actively checking notification status. |
||
| 1 Original | |||
Rimu
Moderator
rimu@piefed.socialJoined: 2024-01-04 |
Might need websockets for this? |
||
| 1 | |||
wjs018
piefed.social
wjs018@piefed.socialJoined: 2024-11-20 |
Might need websockets for this?
Could it be done with htmx? |
||
| 1 | |||
|
JollyDevelopment
piefed.social
JollyDevelopment@piefed.social Joined: 2025-01-06 |
Might need websockets for this?
Some sort of server-side-event might work. Just to turn the bell icon on. https://htmx.org/extensions/sse/ |
||
| 1 | |||
Rimu
Moderator
rimu@piefed.socialJoined: 2024-01-04 |
Could it be done with htmx? hx-trigger can be set to fire at fixed intervals (docs, see Polling).
That would be simple to code but very bad for scalability. Each user would constantly be keeping a connection open, tying up a thread on the server. Just a few dozen concurrent users would bring a server to it's knees. WSGI (flask) isn't great at coping with lots of simultaneous open connections so we might need to make a separate mini-project using a different framework/stack/language. This would involve a significant increase in dependencies and more complexity for deployment so we'd have to really really want to do it. Personally it seems like this feature was added to mainstream social media purely to increase addiction and farm engagement so I'm pretty lukewarm about that and don't feel the lack of it in PieFed. Getting away from that crap is kinda the whole point of the fediverse, to me. |
||
| 1 | |||
Rimu
Moderator
rimu@piefed.socialJoined: 2024-01-04 |
Some sort of server-side-event might work. Just to turn the bell icon on. https://htmx.org/extensions/sse/
Yep that looks excellent for frontend. How we handle it on the server side is the big scary unknown part to me. |
||
| 1 | |||
Rimu
Moderator
rimu@piefed.socialJoined: 2024-01-04 |
That would be simple to code but very bad for scalability. Each user would constantly be keeping a connection open, tying up a thread on the server. Just a few dozen concurrent users would bring a server to it's knees. WSGI (flask) isn't great at coping with lots of simultaneous open connections so we might need to make a separate mini-project using a different framework/stack/language. This wo...
I guess it's the content of the notifications rather than the timing of their delivery is what makes them a dark pattern so perhaps I need to chill out about that. |
||
| 1 | |||
Rimu
Moderator
rimu@piefed.socialJoined: 2024-01-04 |
Some sort of server-side-event might work. Just to turn the bell icon on. https://htmx.org/extensions/sse/
This looks promising https://flask-sse.readthedocs.io/en/latest/quickstart.html |
||
| 1 | |||
| Post Reply |
Back to top |