Loomio

refresh stream without refreshing page

C
Chris Public Seen by 426

As so often happens to me, this has probably been discussed already, and I am unknowingly kicking a dead horse. If this is the case, just point me in the direction of previous conversation and we can stop wasting our time.

TO THE POINT!

Now that chat has been mainlined pretty hard, it might be time to figure out a way to keep a chat session going, i.e. keep from logging out of the XMPP server when refreshing the stream.

Could there be a way to refresh the stream without refreshing the page? I'm thinking of a refresh button somewhere.

C

Creak Mon 29 Aug 2016

I agree!

Maybe simply clicking on the menu links (like "Stream", "My Activity", "My Aspects", etc.) would load the page asynchronously and load it without refreshing the whole page (most modern websites do that now, Deezer, Sonerezh, Google+, ...)

Also it would be nice to have an icon/button saying that there are newer posts ala Google+. I'm sure that in the end it could reduce the load on the server because the users won't hit refresh all the time and load the exact same page 9 times out of 10.

J

jpope Mon 29 Aug 2016

If you don't mind using a greasemonkey userscript, you should take a look at diaspora auto update. It will update the stream when new posts are available.

Of course, it'd be nice to have this in core but, it's certainly a viable work around for now. ;)

C

Chris Tue 30 Aug 2016

Thanks. I think that'll do in the meantime, but I'd like to see it implemented by default, and perhaps in a slightly different way.

G

goob Wed 31 Aug 2016

I think the base issue is that the chat session gets interrupted when a page is refreshed or the users navigates from one page to another. The proposal to auto-refresh the stream only addresses one use case of this issue.

The ideal situation would be to enable the chat pane to stay active even when the users moves from one page to another in Diaspora - for example, by clicking on a timestamp to view a post in SPV, or clicking a tag to view the tag stream, or a user profile.

KAK

Karthikeyan A K Thu 1 Sep 2016

Unlike twitter I don't think we must need to scroll to top to see new posts, we must come up with UX where a person can click on a link and see new post pop up just like that.

C

Chris Thu 1 Sep 2016

Perhaps if the Stream button could have a red number in the upper-right corner, indicating that there are new posts, and if the nav bar could auto-update...

T

Timoses Fri 9 Sep 2016

^ Agreeing with Chris. Whenever an update (e.g. new message, new notification) arrives it should be indicated in the navbar. And ideally, I don't even need to refresh the page but simply click on "Notifications" in order to see the updates in there in the pop-up window.

C

Chris started a proposal Sun 11 Sep 2016

Stream auto-update notifications Closed Sun 18 Sep 2016

Basically, I propose that, rather than refreshing the page to see if there are notifications, the Stream button could have a red number in the upper-right corner, indicating that there are new posts, and if the nav bar could auto-update when there are new notifications or PMs.

Agree - 15
Abstain - 1
Disagree - 1
Block - 0
17 people have voted (11%)
MV

Michael Vogel
Agree
Sun 11 Sep 2016

HP

Hypolite Petovan
Agree
Sun 11 Sep 2016

This is a proposal easy to agree on, however the actual implementation is another story. Not sure who gets to decide development priorities, but I would say this is rather low for the ratio benefit / cost.

MP

Mike Powell
Agree
Sun 11 Sep 2016

C

Creak
Agree
Sun 11 Sep 2016

That's a good first step, but with the chat feature on its way, we'll also face another problem: refreshing the page will also close the conversation window.

We will need to address that too at some point.

T

Timoses
Agree
Sun 11 Sep 2016

I think the navbar notification button already does refresh without complete site refresh when clicking on it (opens refreshed pop-up window). Alongside live update with number of updates indicated = sounds perfecto.

C

Chris
Agree
Sun 11 Sep 2016

S

StefOfficiel
Agree
Sun 11 Sep 2016

S

StefOfficiel
Agree
Sun 11 Sep 2016

D* need many modernity!

DU

[deactivated account]
Agree
Mon 12 Sep 2016

RH

Roland Haeder
Agree
Mon 12 Sep 2016

This surely requires some 3rd-party software like meteor.

KAK

Karthikeyan A K
Agree
Mon 12 Sep 2016

This will make user experience better

LG

Lance Gilbert
Agree
Wed 14 Sep 2016

This would be great, especially for chat. That said, it's easier said than done. Our pod works around it by forcing jsxc presence to 'Online' whenever the page is loaded. Next we will try to persist the most recent presence and set it after page load

J

jpope
Agree
Thu 15 Sep 2016

I'm going to agree but, only having the navbar update only partially solves the issue. The new posts need to populate within the stream as well without refreshing the page (or opening it up elsewhere).

JS

Juan Santiago
Agree
Sat 17 Sep 2016

genial para vagos!!! :)

FL

Frode Lindeijer
Agree
Sat 17 Sep 2016

:frog:

R

Ravenbird
Agree
Sat 17 Sep 2016

C

CSammy
Abstain
Sat 17 Sep 2016

There is no need to vote on this subject. It is a desired feature which does not have the "needs loomio" tag on the github issue. If you want this feature badly, you may implement it and are welcome to do so, as nobody else could afford the time yet.

M

Miko
Disagree
Sun 18 Sep 2016

I'd open the pod in a new tab to refresh, if not wanting to interrupt anything in the stream.
There s several possibilities to keep one session going on and still be doing sth "else", so don't really see the need.

MV

Michael Vogel Sun 11 Sep 2016

In Friendica we have implemented this in two ways. At first we show a number of new posts at the top of the page (in the style of the notifications) that is constantly updated so that people always see if there is something new. @chris26 In Friendica it is mostly like you said.

Additionally we do an automatic refresh if the person is at the very top of the page and hadn't scrolled down a little bit. This refresh can be turned of by the users since there are mixed feelings about this feature.

C

Chris Sun 11 Sep 2016

@timoses , you're right. The list itself does update. Just need the number.

I feel like someone might bring up the issue of server load. Anyone care to shed light on that subject in regards to this proposal?

KAK

Karthikeyan A K Mon 12 Sep 2016

If grease monkey plugin can do it without meteor, we can use the same Ruby on Rails platform to do it.

RH

Roland Haeder Mon 12 Sep 2016

This requires users to have an addon installed in their browser. For example GNUSocial does not require this from users.

G

goob Thu 15 Sep 2016

I don't think there needs to be any vote on whether to enable some means of updating content on the page (posts, notifications, etc) without refreshing the entire page, as this is not a controversial issue - probably everyone wants it.

The issue is how best to implement it technically. We can certainly discuss that here, or contribute technical solutions to the existing GitHub ticket for this feature.

R

Ravenbird Sun 18 Sep 2016

@CSammy: That is the reason why I hardly don't use Loomio in matters of Diaspora. To discuss here is in most cases no more than a sham fight with no real impact.

C

CSammy Mon 19 Sep 2016

To clarify my vote: goob did a good job at explaining it over there, thank you goob.

As for technical reasons why this is wanted (among others): A background request to update the stream is a lot less traffic and computing time intensive than to refresh the entire page. The chat argument is a valid point as well, though there is more to that.