discourse-ai/assets/javascripts/discourse/connectors
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-dashboard-tabs-after DEV: Update linting (#326) 2023-11-29 23:01:48 +01:00
after-composer-category-input REFACTOR: Helper suggestions (#914) 2024-11-27 12:21:03 -08:00
after-composer-tag-input REFACTOR: Helper suggestions (#914) 2024-11-27 12:21:03 -08:00
after-composer-title-input REFACTOR: Helper suggestions (#914) 2024-11-27 12:21:03 -08:00
after-d-editor DEV: Replace DSection with body-class helper (#924) 2024-11-20 14:11:15 +00:00
after-search-result-entry DEV: Update linting (#326) 2023-11-29 23:01:48 +01:00
before-create-topic-button UX: update gist toggle styles (#926) 2024-11-19 15:33:34 -05:00
composer-after-save-or-cancel FEATURE: Auto image captions (#637) 2024-05-27 10:49:24 -07:00
composer-fields DEV: Update eslint config (#917) 2024-11-19 11:57:40 +01:00
edit-topic-category__after REFACTOR: Helper suggestions (#914) 2024-11-27 12:21:03 -08:00
edit-topic-tags__after REFACTOR: Helper suggestions (#914) 2024-11-27 12:21:03 -08:00
edit-topic-title__after REFACTOR: Helper suggestions (#914) 2024-11-27 12:21:03 -08:00
editor-preview DEV: Update eslint config (#917) 2024-11-19 11:57:40 +01:00
fast-edit-footer-after DEV: Update eslint config (#917) 2024-11-19 11:57:40 +01:00
full-page-search-below-search-header DEV: Update linting (#933) 2024-11-20 15:43:28 +01:00
post-text-buttons DEV: Improve explain suggestion footnote replacement (#999) 2024-12-04 11:41:34 -08:00
search-menu-before-advanced-search DEV: Update eslint config (#917) 2024-11-19 11:57:40 +01:00
search-menu-initial-options DEV: Update eslint config (#917) 2024-11-19 11:57:40 +01:00
search-menu-results-top DEV: Update eslint config (#917) 2024-11-19 11:57:40 +01:00
split-new-topic-category-after DEV: Update eslint config (#917) 2024-11-19 11:57:40 +01:00
split-new-topic-tag-after DEV: Update eslint config (#917) 2024-11-19 11:57:40 +01:00
split-new-topic-title-after FEATURE: AI suggestion buttons in `move-to-topic` modal (#360) 2023-12-15 12:11:14 -08:00
topic-list-before-category FIX: Make sure that topic gists are displayed ONLY on the hot list. (#873) 2024-10-28 15:15:53 -03:00
topic-map-expanded-after UX: move topic summary from DMenu to DModal (#992) 2024-12-03 13:30:15 -05:00
user-preferences-nav FIX: Prevent AI caption setting from showing unless all criteria is met (#753) 2024-08-14 10:17:36 -07:00