I really like this idea. I’ve had a go at implementing it, adding options for “hide_posts_before_solution” and “hide_posts_after_solution”.
Currently, a thread might look something like this:
Enabling “hide_posts_before_solution” would make it look like this:
Also enabling “hide_posts_after_solution” would make it look like this:
I think this makes it much easier for people who come across the topic later to find the useful information quickly, while also keeping it nice and simple for people who want to read the whole thread.
This functionality requires some changes to Discourse’s core to add “custom filters” to TopicView. I’ve based this on the recent additions of custom filters to TopicQuery, so I hope I have gone about it in the right way. The pull request to core is here:
https://github.com/discourse/discourse/pull/4740
and the pull request to discourse-solved can be found here:
https://github.com/discourse/discourse-solved/pull/48


