-
Notifications
You must be signed in to change notification settings - Fork 509
feat(LeftSidebar): add global Talk messages search #16344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Maksim Sukharev <[email protected]>
Signed-off-by: Maksim Sukharev <[email protected]>
Signed-off-by: Maksim Sukharev <[email protected]>
| async fetchMessagesEverywhere() { | ||
| try { | ||
| this.messagesLoading = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has no use in this case
| const response = await request({ | ||
| term: this.searchText, | ||
| limit: 5, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is misleading as it lacks Show more messages button when there can be more results to show
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see a "see more" in the screenshot, so how would we see older results?
| await Promise.all([ | ||
| this.fetchPossibleConversations(), | ||
| this.fetchListedConversations(), | ||
| this.fetchMessagesEverywhere(), | ||
| ]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We wanted to have the global search as an additional action, not the default, didn't we?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd vote for it being the default.
in case that it not possible, add some filter chips on the top row like ✔️ Conversations ✔️People Messages, so that it is visible that global message search is possible
Edit: the filter chips would be useful either way as the space available is not that much.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd vote for it being the default.
This is quite problematic. A lot of people use the quick filtering to navigate to other conversations, if that always triggers yet another search request, it adds quite some load, while sometimes people might know already where they need to go.
Just for the record, on our server we have:
- ~1.8k requests for open conversations today with a search term coming from the left sidebar filtering (we should look into reducing those as well)
- ~150 unified searches
- ~30 searches in the current conversation
So if we "all of a sudden" add 1.8k additional search requests it should be sensible and optional from my pov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Thinking …"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is quite problematic. A lot of people use the quick filtering to navigate to other conversations, if that always triggers yet another search request, it adds quite some load, while sometimes people might know already where they need to go.
Got it, exactly why I proposed the filter chips idea :) By default it can be unselected and if people select it we can trigger the global message search.
We should at some point consolidate the right sidebar message "in this conversation" message search and the global search too, and we can make the use of more filters. eg:

☑️ Resolves
🖌️ UI Checklist
🖼️ Screenshots / Screencasts
🏁 Checklist