discourse/app/assets/stylesheets/common/components
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
..
sidebar/edit-navigation-menu UX: fix sidebar modal (#24646) 2023-12-04 08:10:17 +01:00
_index.scss DEV: Add file_size_restriction site setting type (#24704) 2023-12-13 16:22:48 -07:00
add-pm-participants.scss DEV: Upgrade the so-called share-and-invite modal (#23574) 2023-09-14 10:50:50 +02:00
admin-post-menu.scss UX: improve btn-transparent styling (#24666) 2023-12-02 14:21:22 +11:00
badges.scss UX: fix and improve topic title badge spacing (#25441) 2024-01-26 12:11:03 -05:00
banner.scss UX: Styling changes to global banner (#16191) 2022-03-15 16:19:55 +01:00
bookmark-list.scss DEV: Use more css vars (#18561) 2022-10-12 16:05:42 +02:00
bookmark-modal.scss UX: refactor .d-modal to use BEM and improve styling (#23967) 2023-11-15 10:14:47 +00:00
buttons.scss UX: ensure links styled as buttons don't get visited color (#25199) 2024-01-09 18:33:50 -05:00
calendar-date-time-input.scss DEV: Move calendar date + time picker from local dates into core component (#23023) 2023-08-11 13:05:44 +10:00
char-counter.scss FEATURE: Add word count and indicator when exceeded max (#19367) 2023-02-20 12:06:43 +01:00
color-input.scss PERF: eliminate some slow CSS selectors (#25392) 2024-01-26 13:10:45 -05:00
conditional-loading-section.scss A11Y: disable non-essential CSS animations for reduced-motion users (#23571) 2023-09-14 17:31:43 -04:00
convert-to-public-topic-modal.scss
d-lightbox.scss FIX: remove background image from lightbox backdrop (#24225) 2023-11-03 16:10:04 +08:00
d-toggle-switch.scss UX: Vertically align the svg in checkbox slider component (#24478) 2023-11-21 14:48:11 +08:00
date-input.scss UX: Fix date input icon display issues (#14369) 2021-09-17 12:07:10 -04:00
date-picker.scss UX: Normalize sizing for inputs, buttons, dropdowns (#14226) 2021-09-09 11:01:56 -04:00
date-time-input-range.scss UX: Normalize sizing for inputs, buttons, dropdowns (#14226) 2021-09-09 11:01:56 -04:00
date-time-input.scss UX: Normalize sizing for inputs, buttons, dropdowns (#14226) 2021-09-09 11:01:56 -04:00
download-calendar.scss DEV: FloatKit (#23650) 2023-09-26 13:39:52 +02:00
file-size-input.scss DEV: Add file_size_restriction site setting type (#24704) 2023-12-13 16:22:48 -07:00
footer-nav.scss FIX: better supports ipad and hub footer nav (#25518) 2024-02-01 10:24:44 +01:00
form-template-field.scss FEATURE: support a description attribute on form template fields (#23744) 2023-10-04 17:51:53 -03:00
group-member-dropdown.scss DEV: Set containing block for Popper dropdowns (#20745) 2023-03-20 15:26:20 -04:00
groups-form-membership-fields.scss
hashtag.scss FEATURE: Async load of category and chat hashtags (#25526) 2024-02-12 12:07:14 +02:00
horizontal-overflow-nav.scss UX: move vertical admin plugin nav to horizontal overflow nav (#20319) 2023-02-17 10:21:30 -05:00
iframed-html.scss
ignored-user-list.scss UX: fix color preference layout (#21346) 2023-05-03 10:11:52 +08:00
keyboard_shortcuts.scss DEV: remove old keyboard modal CSS (#25246) 2024-01-12 17:02:38 -05:00
more-topics.scss REVERT: "UX: fix overlap obstructed anon topic reply (#24921)" (#24925) 2023-12-15 15:08:34 -06:00
navs.scss FIX: Adjust border-radius in multiple locations (#23278) 2023-08-25 16:09:18 -05:00
offline-indicator.scss FEATURE: Offline indicator (#21369) 2023-06-05 11:08:04 -05:00
pick-files-button.scss DEV: add pick-files-button component (#13764) 2021-07-16 21:50:50 +04:00
relative-time-picker.scss UX: minor fixes in topic action modal (#24772) 2023-12-07 14:54:56 +01:00
svg.scss DEV: Remove xlink hrefs (#15059) 2021-11-25 15:22:43 +11:00
tap-tile.scss UX: highlight vars updates (#20346) 2023-02-21 10:15:49 +01:00
time-input.scss FEATURE: automatic dark mode (#10341) 2020-08-03 22:57:10 -04:00
time-shortcut-picker.scss UX: fix time pickers input width on mobile (#21170) 2023-04-19 10:08:24 -05:00
topic-query-filter.scss UX: Make input on /filter route full width (#20952) 2023-04-04 14:10:39 +10:00
user-card.scss DEV: FloatKit (#23650) 2023-09-26 13:39:52 +02:00
user-info.scss UX: grant names some more space on /u (#25576) 2024-02-06 09:32:07 -05:00
user-status-message.scss FEATURE: introduces group channels (#24288) 2023-11-10 11:29:28 +01:00
user-status-picker.scss FEATURE: user status emoji (#17025) 2022-06-22 18:15:33 +04:00
user-stream-item.scss UX: add spacing in new topic draft text - timestamp (#25403) 2024-01-24 17:29:50 +01:00
user-stream.scss UX: remove unneeded margin from user stream (#11964) 2021-02-04 14:39:43 +11:00
widget-dropdown.scss REFACTOR: improve poll info layout (#22353) 2023-07-05 12:20:18 -04:00