tgxworld
(Alan Tan)
22. Dezember 2020 um 06:32
4
Ich habe hier etwas Fortschritt gemacht, aber zuerst musste ich einen Fehler beheben, bei dem der gelöste Status eines Themas nicht in den Suchergebnissen der Volltextsuche angezeigt wird.
master ← tgxworld:show_all_topic_statuses_on_full_page_search
merged 02:30AM - 23 Dec 20 UTC
This component is a less flexible version of https://github.com/discourse/discou… rse/blob/07bf7a91f4085b32342e3a0b8916b03a0f17c142/app/assets/javascripts/discourse/app/components/topic-status.js and makes it hard for plugin to add additional statuses like what we do for the `discourse-solved` plugin in https://github.com/discourse/discourse-solved/blob/584060102526cca953f270281751034c14b98d67/assets/javascripts/discourse/initializers/extend-for-solved-button.js.es6#L239-L264.
This change is required for https://meta.discourse.org/t/boost-solved-search-results-in-search/158881 where we want to boost solved topics in search results. From a UX perspective, we first need to be able to show which topics are solved and which aren't through the topic status icon.
Related PR in discourse-solved: https://github.com/discourse/discourse-solved/pull/105
2 „Gefällt mir“