discourse/plugins/chat/spec
Martin Brennan 0b3cf83e3c
FIX: Do not cook icon with hashtags (#21676)
This commit makes some fundamental changes to how hashtag cooking and
icon generation works in the new experimental hashtag autocomplete mode.
Previously we cooked the appropriate SVG icon with the cooked hashtag,
though this has proved inflexible especially for theming purposes.

Instead, we now cook a data-ID attribute with the hashtag and add a new
span as an icon placeholder. This is replaced on the client side with an
icon (or a square span in the case of categories) on the client side via
the decorateCooked API for posts and chat messages.

This client side logic uses the generated hashtag, category, and channel
CSS classes added in a previous commit.

This is missing changes to the sidebar to use the new generated CSS
classes and also colors and the split square for categories in the
hashtag autocomplete menu -- I will tackle this in a separate PR so it
is clearer.
2023-05-23 09:33:55 +02:00
..
components/chat DEV: Fix plugin:spec task return code (#21661) 2023-05-19 16:17:02 +02:00
fabricators DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02:00
integration FEATURE: Reintroduce better thread reply counter cache (#21197) 2023-04-24 09:32:04 +10:00
jobs DEV: Fix plugin:spec task return code (#21661) 2023-05-19 16:17:02 +02:00
lib FIX: Do not cook icon with hashtags (#21676) 2023-05-23 09:33:55 +02:00
mailers DEV: Skip channel-wide mention chat specs (#20770) 2023-03-22 12:44:01 +10:00
models FIX: Do not cook icon with hashtags (#21676) 2023-05-23 09:33:55 +02:00
queries/chat DEV: Chat API channel#show changes for threading (#21632) 2023-05-22 13:59:46 +02:00
requests FIX: Don't autojoin users when they have ready-only permissions (#20213) 2023-05-10 08:45:13 -03:00
serializer DEV: Fix plugin:spec task return code (#21661) 2023-05-19 16:17:02 +02:00
services DEV: Chat API channel#show changes for threading (#21632) 2023-05-22 13:59:46 +02:00
support DEV: Fix plugin:spec task return code (#21661) 2023-05-19 16:17:02 +02:00
system FIX: Do not cook icon with hashtags (#21676) 2023-05-23 09:33:55 +02:00
validators DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
plugin_helper.rb FEATURE: Thread list initial UI (#21412) 2023-05-10 11:42:32 +02:00
plugin_spec.rb UX: update chat icon to d-chat (#20744) 2023-03-21 10:40:42 -04:00