damus icon indicating copy to clipboard operation
damus copied to clipboard

Relay filtering

Open BenGWeeks opened this issue 2 years ago • 4 comments

Hi @jb55,

Let me know if you're interested in relay filtering on the homepage and I'll tidy this one up so it's ready:

image

TODO:

  • Update homepage results to only the selected relays.
  • Move posts/replies into this filter area too.

Either in this PR or another one, we could add the ability to choose the relay you wish to post messages to.

BenGWeeks avatar Jan 08 '23 22:01 BenGWeeks

nice, we just need a way of tracking which events came from where. I'm not sure if this would be immediately useful though. Will have to think about the design of this. Maybe it would be more useful if the client disconnected from the relay instead of just filtering visually. This would an extreme measure to disable certain relays during spam attacks without fully removing it from your config. will ponder.

jb55 avatar Jan 10 '23 16:01 jb55

Yeah, for me this is more about setting expectations and behaviour that the future intention is not all relays will have ALL messages and for a way to get rid of the spam (that will come to free relays).

We could also put other filtering in here too.

BenGWeeks avatar Jan 10 '23 16:01 BenGWeeks

going to experiment with this, I would like an easy way to connect/disconnect from relays. maybe this would be a good way to do that.

jb55 avatar Jan 13 '23 18:01 jb55

Love this @BenGWeeks.

@jb55 elsewhere had mentioned the idea of relay sets. I described as I understood here: https://github.com/damus-io/damus/issues/453.

Building on top of your filter view, I think it could be interesting to have on the main screen a toggle/change perspective icon/button (e.g. an eye, a telescope etc.)

By clicking on this client/Damus would change your relay perspective automagically. Perhaps randomly, and/or by toggling between custom/fine tuned various groups of relays / relays on the relay page.

With caveat I'm not a UI expert maybe the filter relays/fine tuning relays belongs in the relay settings page, and the front page can have a simpler feature/icon?

Here is what the change perspective icon could look like. Hitting the icon toggles between automagic/previously configured views from relay page.

Perspective

What are your thoughts?

alltheseas avatar Feb 03 '23 17:02 alltheseas

We actually have this on the search now I notice.

I think it would be good to have this on "Home" too.

However, I think the concept could be improved somewhat - just not sure how!? For instance, I would like to be able to easily switch from seeing everything to just seeing a relay that maybe I set up for my company or a family relay. FYI @alltheseas @robagreda @SashaPavlova

BenGWeeks avatar May 28 '23 14:05 BenGWeeks

I think there could be different configurable relay views (or relay sets). Refer to https://github.com/damus-io/damus/issues/453.

Maybe most zapped notes view is more important than relay sets.

alltheseas avatar May 29 '23 14:05 alltheseas

I think there could be different configurable relay views (or relay sets). Refer to #453.

Maybe most zapped notes view is more important than relay sets.

Yeah, heard relay sets being discussed. Remain to be convinced this is the most understandable way?

The "most zapped" view I think relates to a separate idea where you can select your own algo. These algos could be customized and/or shared eventually.

BenGWeeks avatar May 29 '23 14:05 BenGWeeks

Yes, there is not enough definition or consensus on relay views, and filtering.

There is consensus that most zapped notes, most zapped comments is a view that we want to support.

My recommendation is to implement the most zapped views before taking on relay filtering outside the universe.

alltheseas avatar May 29 '23 15:05 alltheseas