transfem-org / Sharkey

🌎 A Sharkish microblogging platform 🚀
https://joinsharkey.org/
74 stars 19 forks source link

feat: Search bar widget #181

Closed Freeplayg closed 7 months ago

Freeplayg commented 7 months ago

Summary

Adding a search bar to the top of the widgets sidebar (probably by default)

Purpose

Having search on a completely separate page really isn't great, I think having an easily accessible search bar would make things a lot easier. Especially since you're probably going to be loading posts from other instances a lot as you won't have to go through an extra page.

The search shortcut (s) should also just focus that bar if added

Mar0xy commented 7 months ago

Currently opening search in a window is a possibility though a widget is something that can be added as an option just would need to look into how widgets function. (though the widget will only be for searching normally with no filters then as to not make a cluttered widget)

focusing the bar is a whole other topic cause I don't think the logic allows for this possibility.

Freeplayg commented 7 months ago

To have it not be too cluttered, maybe all the filters could be under one button like Firefish does ? image

Or you could do similar to Mastodon where it's in a popup below image

Mar0xy commented 7 months ago

Well there really are only two filters:

  1. With file
  2. From user

I guess this could be a possibility for the widget but I would need to look into how dropdown selections work on MIsskey.

Mastodon's option is out of the race as I would rather keep consistency with MK which uses a folder for the filters on search page as the search field is really only meant to be used for text and text only.