discourse-ai/assets/javascripts/discourse
Keegan George d6beac48f8
DEV: Improve explain suggestion footnote replacement (#999)
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
..
admin FEATURE: smarter persona tethering (#832) 2024-10-16 07:20:31 +11:00
components DEV: Improve explain suggestion footnote replacement (#999) 2024-12-04 11:41:34 -08:00
connectors DEV: Improve explain suggestion footnote replacement (#999) 2024-12-04 11:41:34 -08:00
controllers FIX: Switch up start/end dates in emotion dashboard report (#951) 2024-11-25 12:25:48 -03:00
lib REFACTOR: Helper suggestions (#914) 2024-11-27 12:21:03 -08:00
routes FEATURE: Auto image captions (#637) 2024-05-27 10:49:24 -07:00
services UX: update gist toggle styles (#926) 2024-11-19 15:33:34 -05:00
templates FEATURE: Refinements to Emotion in dashboard (#947) 2024-11-25 11:31:51 -03:00
admin-discourse-ai-plugin-route-map.js FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00
admin-discourse-ai-route-map.js FEATURE: Expose sentiment classifications via the admin dashboard. (#284) 2023-11-08 10:50:37 -03:00
discourse-ai-shared-conversation-show-route-map.js FEATURE: Share conversations with AI via a URL (#521) 2024-03-12 16:51:41 +11:00
preferences-ai-route-map.js FEATURE: Auto image captions (#637) 2024-05-27 10:49:24 -07:00