discourse-ai/assets/stylesheets/common
Keegan George c29183fc2d
FEATURE: Add diff streaming animation (#1355)
Previously we attempted to add a diff streaming animation to the AI composer helper: https://github.com/discourse/discourse-ai/pull/1332, but it resulted in issues despite attempted fixes (https://github.com/discourse/discourse-ai/pull/1338) so we temporarily suppressed the diff animation (https://github.com/discourse/discourse-ai/pull/1341).

This update makes a second attempt at implementing the diff streaming animation. Instead of creating a custom diff algorithm, we make use of a third-party library [`jsDiff`](https://github.com/kpdecker/jsdiff) (which we added to core here: https://github.com/discourse/discourse/pull/32833). While streaming, the diff animation often struggles with markdown links and images, so we make use of `markdown-it` parser to detect those cases and prevent breaking the animation.

---------

Co-authored-by: Sam Saffron <sam.saffron@gmail.com>
2025-05-22 08:10:50 +10:00
..
ai-blinking-animation.scss DEV: Update linting (#1191) 2025-03-13 13:25:38 +00:00
ai-features.scss UX: Improve groups list in feature table when many groups (#1254) 2025-04-10 09:14:51 -07:00
ai-user-settings.scss FEATURE: Add ability to disable search discoveries (#1177) 2025-03-10 14:17:58 -07:00
streaming.scss FEATURE: Add diff streaming animation (#1355) 2025-05-22 08:10:50 +10:00