discourse/app/assets/stylesheets
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
..
common FEATURE: Async load of category and chat hashtags (#25526) 2024-02-12 12:07:14 +02:00
desktop FIX: Similar topics relying on widget search menu (#25586) 2024-02-07 18:15:54 +11:00
mobile FEATURE: show unread post indicator on mobile (#25421) 2024-02-06 11:50:49 -05:00
vendor DEV: FloatKit (#23650) 2023-09-26 13:39:52 +02:00
admin.scss Sane sendAction() behavior 2015-09-11 09:34:20 -07:00
admin_rtl.scss FEATURE: Serve RTL versions of admin and plugins CSS bundles for RTL locales (#21876) 2023-06-01 05:27:11 +03:00
color_definitions.scss DEV: FloatKit (#23650) 2023-09-26 13:39:52 +02:00
common.scss FIX: allow styling of feedback on mobile (#25072) 2023-12-30 08:57:16 +11:00
desktop.scss DEV: Added support for custom site setting 'emoji_list' (#12414) 2021-04-07 15:32:05 +02:00
desktop_rtl.scss FEATURE: support user local switching to RTL correctly 2015-05-20 15:56:54 +10:00
embed.scss FIX: Broken hashtags on embed and publish pages (#24210) 2023-11-02 11:43:55 +10:00
ember_cli.scss DEV: Require Ember CLI to be used in development mode (#12738) 2021-04-29 14:13:36 -04:00
mobile.scss DEV: Refactor font and category background importers (#12312) 2021-03-10 11:05:56 -05:00
mobile_rtl.scss FEATURE: support user local switching to RTL correctly 2015-05-20 15:56:54 +10:00
publish.scss FIX: Broken hashtags on embed and publish pages (#24210) 2023-11-02 11:43:55 +10:00
qunit-custom.scss DEV: QUnit CSS tweaks (#24180) 2023-10-31 14:53:42 +01:00
qunit.scss DEV: Add dark theme support to QUnit (#19014) 2022-11-17 18:44:44 +01:00
wcag.scss A11Y: Fix sidebar toggle icon color contrast (#25225) 2024-01-11 09:22:41 -05:00
wizard.scss DEV: move the margin to 'configure more' link on the setup wizard (#25626) 2024-02-09 13:55:50 -07:00
wizard_rtl.scss FEATURE: Serve RTL versions of admin and plugins CSS bundles for RTL locales (#21876) 2023-06-01 05:27:11 +03:00