Overview ๐๏ธโ๐จ๏ธ
Right now, if users search for groupchats, they can filter for courses by selecting the Courses tab, filter for communities by clicking the Communities tab, or search for all groupchats that fit their search by selecting the All tab. But, there is no clean way to refresh their search and go back to displaying all the groupchats (the only way to do this is to search using an empty string, which is unintuitive).
What would you like? ๐งฐ
Change the way searching and filtering works: make it so that the All tab displays all the groupchats, the Courses tab displays all the course chats, and the Communities tab displays all the community chats. Then, change it so that when users search for chats, all matching chats are returned, regardless of whether they are a course or community chat.
Why this is better
When a user searches for a chat using the search bar, they will be looking for either of two things: either they will be looking for a course chat, or they will be looking for a community chat.
Searching for a course chat
If a user wants to find a groupchat for a course they are in, then they would just search for the course code of their course. Since they are looking for a course chat, they would not be looking for a community chat. So filtering by using the Communities tab does not help in this case.
Searching for a community chat
If a user is searching for a community chat, then they must already have a community in mind that they want to join, otherwise they wouldn't know what to search for. Since they are searching for a community, filtering by using the Courses tab does not help in this case either.
So, in all cases, the All, Courses, and Communities tabs are useless for filtering.
As such, it would be better to have the tabs display all the chats that belong to them. That way, users can still search for chats normally, but now they would be able to "refresh" their searches and see all the chats by clicking the All tab, all the course chats by clicking the Courses tab, and all the Community chats by clicking the Communities tab.