discourse-ai/config
Keegan George d6beac48f8
DEV: Improve explain suggestion footnote replacement ()
Previously, when clicking add footnote on an explain suggestion it would replace the selected word by finding the first occurrence of the word. This results in issues when there are more than one occurrences of a word in a post. This is not trivial to solve, so this PR instead prevents incorrect text replacements by only allowing the replacement if it's unique. We use the same logic here that we use to determine if something can be fast edited.

In this PR we also update tests for post helper explain suggestions. For a while, we haven't had tests here due to streaming/timing issues, we've been skipping our system specs. In this PR, we add acceptance tests to handle this which gives us improved ability to publish message bus updates in the testing environment so that it can be better tested without issues.
2024-12-04 11:41:34 -08:00
..
locales DEV: Improve explain suggestion footnote replacement () 2024-12-04 11:41:34 -08:00
routes.rb FEATURE: allow artifacts to be updated () 2024-12-03 07:23:31 +11:00
settings.yml FEATURE: Backfill posts sentiment. () 2024-12-03 10:27:03 -03:00