"Pinning" the Topic Summary window

AI-generated summary

The discussion revolves around an issue with the Topic Summary window in Discourse, where clicking links to posts causes the summary to close on certain sites, unlike on meta.discourse.org. markschmucker reports the issue and notes console errors related to rsvp.js and user badges, which are tied to a problematic theme component. HAWK clarifies the behavior, while Falco explains a known bug related to unloaded topic sections and confirms it’s a regression. sam identifies the issue as occurring on long topics when navigating to unrendered sections. Falco confirms the bug was reported internally and prioritized. Finally, keegan announces the fix has been implemented by @awesomerobot, resolving the issue.

When the Topic Summary contains links to specific posts, it’s helpful to click on the links for more detail. On https://meta.discourse.org, when you click, the summary window remains open, which is great. But on my site and https://discuss.ai.google.dev, clicking on a link dismisses the summary window, which is cumbersome. What’s the secret to make it stay open?

1 Like

Can you explain what you mean by the topic summary window? I assumed you mean the modal that pops up when you click the summarise button, but on your site that is moving as expected.

1 Like

We had a bug where it would close on click if the post was on another “page”, but I believe we fixed that. Did you try updating your site ?

1 Like

I’ll use your screenshot as an example.

On meta, if I click on Monalika’s comment, it would navigate to that comment, and the “Topic summary” modal would stay open, so I could then click on Shubham’s comment, then afirstenberg’s, etc., so I could easily browse the most important posts.

On my site, and at https://discuss.ai.google.dev/, if I click on Monalika’s comment, it would navigate to that comment, and the “Topic summary” modal would close.

If you can’t reproduce that, it may be related to a lot of errors in my console- 429 too many requests, related to rsvp.js and getting user badges. They happen when I click the links. Here are just the first few:

Yes, I did that today.

1 Like

Ah right – I thought you were referring to the Google site, not another one. What version are you running?

1 Like

Oh I see what this is, this happens on long topics.

If the “section” of the topic is not currently loaded then we shut the summary down on click.

Repro is:

  1. Have a topic with 30 posts
  2. Go to post 30 direct from home page
  3. Show summary
  4. Click on a link that goes to post #1
  5. Summary closes

Not 100% sure how to sort this out… maybe @keegan has some ideas.

3 Likes

Does that also explain the 429 errors getting the user badges, or is that a separate issue?

1 Like

That means you are using the cursed theme component “Post Badges”.

@david recently changed it to make it perform well, but you need to update Discourse to latest to get it.

1 Like

Yeah, this is a regression of the new design. We reported it internally back in August, but looks like no one was assigned. Will prioritize it.

4 Likes

This has now been resolved by @awesomerobot :tada:

https://github.com/discourse/discourse-ai/pull/992

Testing on this topic shows that it works

4 Likes

This topic was automatically closed after 3 days. New replies are no longer allowed.