Or if we can’t get that, can we maybe get a notification that someone HAS replied to a post?
I mean this thing at the bottom of posts
When you’re scrolling through a large post on mobile you can come across someone asking a question or making a statement that you could respond to but you don’t want to if it’s already been addressed. But if there are 100+ posts to scroll through it’s not that easy and in the course of doing that you can lose track of the original post you wanted to reply to.
If we could see in mobile view that there’d been replies that would be helpful.
Yeah, if I’m browsing the thread and there are 100+ replies below it and I don’t want to post a reply answering the question or addressing the post’s points if someone else already did.
The only way to know in mobile is to read the entire thread which isn’t always convenient and then scroll all the way back.
We can link back to what a post replies to just not the replies to it.
It’s not about my posts because I don’t usually need to answer my own questions!
Also I think the link forward to replies from a post is one of Discourse’s best features, retaining threading in a linear format. So it’s a shame this aspect is missing in mobile view.
We don’t do nested posts at all on mobile, we’re constrained on space so it’s much harder to indent the replies so they appear to be children as we do on desktop.
We do a “jump-to” link on the in-reply-to button because it’s always referencing a single post:
Since there can be multiple replies to a post (maybe there are 100!), we can’t really have a single “jump-to” link there.
It might be possible to jump to the first reply, and have a floating “jump to next reply” button? You could then use the in-reply-to button on any of those replies to get back to where you were…
Another idea that’s come up before, is having the “X replies” button hide the other posts that aren’t direct replies (similar to our “summarize this topic” filter within the topic map on long topics). You could then toggle replies to a specific post quickly.
I wonder if it’d be worth exploring having the replies and “in reply to” posts show up in a dialog like the user cards rather than in the post stream. That could potentially work on mobile and on desktop as an alternative to the current UX. Could something like that be done as a theme component if someone wanted to experiment with that idea?
Honestly I think just a link to first reply and then maybe (x other replies) after if that’s a simple one? This is as much about improving site feedback and if you come back to a thread with lots of replies this info would help.
Is this doable with a theme component or would it have to be a plugin? A simple version 1 would probably just take the post content and show it in a modal without any styling?
I’m looking to modify the “toggleReplyAbove” action. It looks to be in the post widget, but if I use the following code to try and replace the action I don’t see any effect - nothing is printed to console and it behaves as normal:
In the post widget code, it looks like the toggleReplyAbove function is defined inside the created widget post-article , but that doesn’t seem to be modifiable with attachWidgetAction since the following code trying to modify that widget results in the error Uncaught TypeError: Cannot read property 'class' of undefined :
I’m able to overwrite the “like” action on post-menu fine as described here Updating Discourse Plugins, taking the first step. Where should I be attaching the widget action to overwrite the toggleReplyAbove action?