Making "search messages" less prevalent

AI-generated summary

The “search messages” feature is currently too prevalent, appearing on all content filters on the user page. erlend_sh suggests removing it from the global search and only allowing it on the Messages page. This would improve user experience and address the concern that “Private messages do not feel private enough.” codinghorror agrees that it’s a bug and should only appear on the Messages tab. sam notes that the bug is that the search context gets “stuck” on Messages after visiting the tab. The issue has been fixed with a commit to the Discourse GitHub repository, as reported by sam.

Continuing the discussion from How do you search Your Private Messages?:

Searching messages exists now (I honestly don’t know since when). There’s no “in:messages” directive yet though.

But I think it’s a bit too prevalent. It currently shows up anywhere on your user page.

That includes the content filters for:

  • All
  • Topics
  • Replies
  • Likes given
  • Bookmarks

All of which ought to trigger their own search filter. I also think the global one should be “Search my posts”, not “Search messages”. The global presence of “search messages” adds to the possible confusion that “when I do a normal search, does that include a search in my Messages?”.

Actually I think an even better UX solution for “search messages” would be to not have the option at all, but to override it completely when on the Messages page:

“Private messages do not feel private enough” is a valid UX concern that has come up before. PMs need to be in their own safe space. It also make sense to differentiate it because many normal search parameters like category: won’t work in messages.

6 лайков

Yes this is a bug, search messages should only appear when you are on your messages tab. cc @sam

1 лайк

Ok, the bug is that once you visit messages tab it does not revert to back to “search posts” the context gets “stuck”

On my list to sort this out.

4 лайка

I know… a bit late… fixed per:

https://github.com/discourse/discourse/commit/6bf3bee473f2008ee756256a1ce11a669ef1a1a0

6 лайков