discourse/plugins/chat
Bianca Nenciu 1403217ca4
FEATURE: Async load of category and chat hashtags (#25526)
This commit includes several changes to make hashtags work when "lazy
load categories" is enabled. The previous hashtag implementation use the
category colors CSS variables, but these are not defined when the site
setting is enabled because categories are no longer preloaded.

This commit implements two fundamental changes:

1. load colors together with the other hashtag information

2. load cooked hashtag data asynchronously

The first change is implemented by adding "colors" to the HashtagItem
model. It is a list because two colors are returned for subcategories:
the color of the parent category and subcategory.

The second change is implemented on the server-side in a new route
/hashtags/by-ids and on the client side by loading previously unseen
hashtags, generating the CSS on the fly and injecting it into the page.

There have been minimal changes outside of these two fundamental ones,
but a refactoring will be coming soon to reuse as much of the code
and maybe favor use of `style` rather than injecting CSS into the page,
which can lead to page rerenders and indefinite grow of the styles.
2024-02-12 12:07:14 +02:00
..
app DEV: remove user thread count route (#25385) 2024-01-24 10:32:34 +08:00
assets FEATURE: Async load of category and chat hashtags (#25526) 2024-02-12 12:07:14 +02:00
config Update translations (#25579) 2024-02-06 22:35:44 +01:00
db FIX: use site setting to show my threads chat footer tab (#25277) 2024-01-23 19:14:46 +08:00
lib FEATURE: Async load of category and chat hashtags (#25526) 2024-02-12 12:07:14 +02:00
public
spec FEATURE: Async load of category and chat hashtags (#25526) 2024-02-12 12:07:14 +02:00
test/javascripts FEATURE: Async load of category and chat hashtags (#25526) 2024-02-12 12:07:14 +02:00
plugin.rb DEV: Redesign chat mentions (#24752) 2024-01-17 15:24:01 +04:00
README.md DEV: Chat service object initial implementation (#19814) 2023-02-13 13:09:57 +01:00

This plugin is still in active development and may change frequently

Documentation

The Discourse Chat plugin adds chat functionality to your Discourse so it can natively support both long-form and short-form communication needs of your online community.

For user documentation, see Discourse Chat.

For developer documentation, see Discourse Documentation.