Skip to content

Conversation

@Antreesy
Copy link
Contributor

☑️ Resolves

  • Adds an option to get some messages results in Left SIdebar (avoiding global search)
  • Using search provider (as RIghtSidebar)

🖌️ UI Checklist

🖼️ Screenshots / Screencasts

image

🏁 Checklist

  • 🌏 Tested with different browsers / clients:
    • Chromium (Chrome / Edge / Opera / Brave)
    • Firefox
    • Safari
    • Talk Desktop
    • Integrations with Files sidebar and other apps
    • Not risky to browser differences / client
  • 🖌️ Design was reviewed, approved or inspired by the design team
  • ⛑️ Tests are included or not possible
  • 📗 User documentation in https://github.com/nextcloud/documentation/tree/master/user_manual/talk has been updated or is not required

async fetchMessagesEverywhere() {
try {
this.messagesLoading = true
Copy link
Contributor

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,
Copy link
Contributor

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

Copy link
Member

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?

@Antreesy Antreesy changed the title fix: split search requests for Talk messages, extract types feat(LeftSidebar): add global Talk messages search Nov 19, 2025
@Antreesy Antreesy marked this pull request as draft November 19, 2025 08:39
Comment on lines +875 to +879
await Promise.all([
this.fetchPossibleConversations(),
this.fetchListedConversations(),
this.fetchMessagesEverywhere(),
])
Copy link
Contributor

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?

Copy link
Member

@nimishavijay nimishavijay Dec 2, 2025

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.

Copy link
Member

@nickvergessen nickvergessen Dec 2, 2025

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

Copy link
Contributor Author

@Antreesy Antreesy Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can also try to put all the factual search results behind a click (e.g. initially show only joined group and private conversations matching search term):

image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Thinking …"

Copy link
Member

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:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants