discourse/app/assets/javascripts
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
..
admin DEV: Clarify site-setting category-list concurrency protection (#25614) 2024-02-09 10:14:00 -06:00
bootstrap-json DEV: Fix alternative output directories in ember-cli proxy (#25291) 2024-01-29 14:09:41 +00:00
deprecation-silencer DEV: Unsilence link-to deprecation for ember-cli build (#25197) 2024-01-10 11:01:57 +00:00
dialog-holder Build(deps-dev): Bump webpack from 5.90.0 to 5.90.1 in /app/assets/javascripts (#25529) 2024-02-01 23:08:03 +01:00
discourse FEATURE: Async load of category and chat hashtags (#25526) 2024-02-12 12:07:14 +02:00
discourse-common PERF: Add cache for Category.asyncFindByIds (#25531) 2024-02-02 14:13:12 -06:00
discourse-hbr Build(deps-dev): Bump webpack from 5.90.0 to 5.90.1 in /app/assets/javascripts (#25529) 2024-02-01 23:08:03 +01:00
discourse-i18n Build(deps): Bump the embroider group (#24391) 2023-11-16 12:31:25 +01:00
discourse-markdown-it Build(deps): Bump ember-auto-import from 2.7.1 to 2.7.2 in /app/assets/javascripts (#25025) 2023-12-27 08:25:43 +08:00
discourse-plugins Build(deps): Bump ember-template-imports from 4.0.0 to 4.1.0 in /app/assets/javascripts (#25572) 2024-02-06 00:11:40 +01:00
discourse-widget-hbs Build(deps-dev): Bump webpack from 5.90.0 to 5.90.1 in /app/assets/javascripts (#25529) 2024-02-01 23:08:03 +01:00
docs
ember-addons
ember-cli-progress-ci
ember-production-deprecations DEV: Add production-mode shim for `Em` deprecation (#25109) 2024-01-03 10:39:59 +00:00
float-kit Build(deps): Bump ember-template-imports from 4.0.0 to 4.1.0 in /app/assets/javascripts (#25572) 2024-02-06 00:11:40 +01:00
locales DEV: convert I18n pseudo package into real package (discourse-i18n) (#23867) 2023-10-12 14:44:01 +01:00
patches DEV: Bump content-tag to 2.0.1 (#25541) 2024-02-02 13:33:29 +01:00
pretty-text Build(deps-dev): Bump webpack from 5.90.0 to 5.90.1 in /app/assets/javascripts (#25529) 2024-02-01 23:08:03 +01:00
select-kit Build(deps): Bump ember-template-imports from 4.0.0 to 4.1.0 in /app/assets/javascripts (#25572) 2024-02-06 00:11:40 +01:00
theme-transpiler DEV: Bump content-tag to 2.0.1 (#25541) 2024-02-02 13:33:29 +01:00
truth-helpers Build(deps-dev): Bump webpack from 5.90.0 to 5.90.1 in /app/assets/javascripts (#25529) 2024-02-01 23:08:03 +01:00
.licensee.json DEV: Use webpack to load table-builder dependencies (#25018) 2024-01-02 10:47:47 +00:00
.npmrc
handlebars-shim.js
package-ember3.json DEV: Use ember 5 in package.json files by default (#25207) 2024-01-10 18:30:50 +01:00
package-ember5.json DEV: Use ember 5 in package.json files by default (#25207) 2024-01-10 18:30:50 +01:00
package.json DEV: Switch default Ember version to 5 (#25203) 2024-01-10 12:12:36 +00:00
polyfills.js
run-patch-package DEV: Automatically retry patch-package on failure (#23583) 2023-09-14 12:25:06 +01:00
service-worker.js.erb FIX: Service worker push notifications when cache disabled (#25610) 2024-02-08 11:55:32 +00:00
yarn-ember3.lock Build(deps): Bump ember-template-imports from 4.0.0 to 4.1.0 in /app/assets/javascripts (#25572) 2024-02-06 00:11:40 +01:00
yarn-ember5.lock Build(deps): Bump ember-template-imports from 4.0.0 to 4.1.0 in /app/assets/javascripts (#25572) 2024-02-06 00:11:40 +01:00
yarn.lock DEV: Switch default Ember version to 5 (#25203) 2024-01-10 12:12:36 +00:00