discourse-ai/spec
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
..
configuration FIX: Correctly display errors when parent module needs to be disabled first (#788) 2024-08-30 17:16:11 -03:00
db/migrate Migrate sentiment to a TEI backend (#886) 2024-11-04 09:14:34 -03:00
fabricators FEATURE: Add support for Mistral models (#919) 2024-11-19 17:28:09 +11:00
fixtures FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00
jobs FEATURE: Backfill posts sentiment. (#982) 2024-12-03 10:27:03 -03:00
lib FEATURE: Backfill posts sentiment. (#982) 2024-12-03 10:27:03 -03:00
models FIX: regression, no longer sending examples to AI helper (#993) 2024-12-03 16:03:46 +11:00
requests FEATURE: allow artifacts to be updated (#980) 2024-12-03 07:23:31 +11:00
serializers DEV: Fix new Rubocop offenses 2024-03-06 15:23:29 +01:00
services/discourse_ai REFACTOR: Support of different summarization targets/prompts. (#835) 2024-10-15 13:53:26 -03:00
shared DEV: Cleanup deprecations (#952) 2024-12-02 14:18:03 -03:00
support FEATURE: Backfill posts sentiment. (#982) 2024-12-03 10:27:03 -03:00
system DEV: Improve explain suggestion footnote replacement (#999) 2024-12-04 11:41:34 -08:00
tasks Migrate sentiment to a TEI backend (#886) 2024-11-04 09:14:34 -03:00
plugin_helper.rb DEV: Fix mismatched column types (#868) 2024-10-28 15:36:42 +02:00
plugin_spec.rb DEV: Cleanup deprecations (#952) 2024-12-02 14:18:03 -03:00