damus-io / damus

iOS nostr client
GNU General Public License v3.0
1.95k stars 290 forks source link

Unify search #2208

Open jb55 opened 1 week ago

jb55 commented 1 week ago

This is more of a design question: but does it make sense to keep global and remote search separate?

Right now we have a search box on the universe view, but it does not search the universe. It could! would could use nip50 here.

For the home timeline, search could mean only search for content from friends (suggested by @danieldaquino )

Alternatively, we could unify search into a single search box. This simplified things by having a single location for search. I like the idea of the pull-down search as seen in imessage, mail, telegram, etc.

The benefit of a unified search is that it removes lots of confusion. There is always one place to look for:

For remote content, we wouldn't want to always trigger a remote search for privacy reasons, but perhaps it could be a simple "click to initiate search on relays".

I'm leaning towards removing the search box from universe and having it more like telegram:

search query
jb55 commented 1 week ago

Open to more design ideas.

@karnagebitcoin @robagreda

karnagebitcoin commented 1 week ago

This is pretty much how I have it mocked up in Nostr Design (but as wireframe)

https://nostrdesign.org/docs/reference-designs/search/

karnagebitcoin commented 1 week ago

Could also combine all of them into one feed (limiting how many results you show), with "show more" buttons.

The benefit might be less clicking needed. You'd see some of the most relevant results right away from various categories of results, with ability to click through for more.

But I also like tabs... hard to decide.

CleanShot 2024-05-07 at 15 35 30@2x