Add "New Topic" button in full page search view

AI-generated summary

erlend_sh proposed adding a “New Topic” button to the full-page search view to improve workflow when searches yield no results. They argued that users currently must navigate back to the index to create a topic, whereas a direct button would streamline the process, particularly when drilled down into specific categories. erlend_sh also suggested that the category selector should default to the currently viewed category when opening the composer. anon82356247 suggested extending this feature site-wide, referencing a related discussion. However, erlend_sh noted that a site-wide implementation would require more radical UX changes, especially for mobile, and preferred the targeted approach. codinghorror strongly supported the proposal, citing sound logic and suggesting it be included in version 1.4, while asking sam to consider it. codinghorror subsequently requested techapj to add the task to their list. techAPJ confirmed they submitted a pull request (PR #4001) and implemented the feature so that searching for a specific category (e.g., topic category:bug) and clicking “New Topic” will pre-select that category in the composer.

I hypothesise that when a user makes a search, especially when drilled down into a specific category, the user wants quick access to the “New Topic” button, in case the search does not return the desired results.

This just happened to me when I was checking to see if a bug I wanted to report already existed. When my search turned out to be fruitless, the next natural step was to make a new topic, but in order to do that I had to jump back to the index page, click “New Topic” and select the Bugs category.

Mockup:

If you’re drilled down into a specific category, the category selector should default to that category.

Probably a good pull-request candidate?

「いいね!」 12

If you are going to do this, how about making it site wide?
see: Add + New Topic link to all pages

「いいね!」 1

There’s definitely some merit to a sitewide New Topic button, but it requires far more radical UX changes (especially on mobile) than what’s being proposed here, which is about working with what we’ve already got.

「いいね!」 1

I definitely support adding a new topic button in search results, the logic is sound, cc @sam I think this should make it into 1.4.

「いいね!」 2

@techapj can you add this to your list?

「いいね!」 2

Sent a PR for this:

https://github.com/discourse/discourse/pull/4001


Okay, what I did is: When user searches for topic category:bug and clicks on “New Topic” then composer will open up with “bug” category pre-selected.

「いいね!」 4