discourse/app/assets/stylesheets/common/base
Sérgio Saquetim 4cf4225f3d
DEV: Introduce state handling for post cooked HTML decorators (#33200)
This PR introduces explicit state management for decorators as part of
the quote controls refactor. The legacy quote controls logic has been
migrated to a new Glimmer component, and state handling for decorator
functions associated with post content rendering is now formalized and
standardized.

### Key Points

- **Decorator State Introduction:**  
- Introduces explicit state objects for use within post and cooked-html
decorators, replacing previous ad-hoc or implicit state tracking.
- Uses `TrackedMap` for state management, improving reactivity and
ensuring consistent, predictable updates when decorator state changes.

- **Component Refactor:**  
- The quote controls logic is now fully encapsulated in a Glimmer
component, leveraging the new decorator state handling for cleaner, more
maintainable code.
  - Legacy implementations have been removed to reduce technical debt.

- **Context and Data Handling:**  
- Decorators and components now receive state and context as explicit
parameters, standardizing the interface and improving code readability.
- Direct properties (such as `post`, `highlightTerm`, and
`ignoredUsers`) replace the previous `data` object, simplifying context
management.

- **Other Improvements:**  
  - Enhanced error handling for async content.
- Improved extensibility by supporting custom wrapper elements in quoted
content.
  - Added functionality to highlight original quoted text.

---------

Co-authored-by: David Taylor <david@taylorhq.com>
2025-06-23 18:13:49 -03:00
..
_bookmark-list.scss DEV: Introduce stylelint (#29852) 2025-01-20 15:27:42 +00:00
_index.scss REFACTOR: move mobile list-controls.scss to common (#32862) 2025-05-23 09:50:06 -04:00
_topic-list.scss REFACTOR: move mobile list-controls.scss to common (#32862) 2025-05-23 09:50:06 -04:00
about.scss DEV: Port the about page extra groups functionality into core (#32659) 2025-05-14 09:44:25 +08:00
activation.scss DEV: Introduce postcss minmax transform (#31885) 2025-03-18 19:28:52 +00:00
alert.scss DEV: merge mobile stylesheets into common with breakpoints (#31656) 2025-03-06 08:44:54 -05:00
bbcode.scss DEV: Introduce stylelint (#29852) 2025-01-20 15:27:42 +00:00
category-list.scss UX: fix long category name overflow in category boxes (#32560) 2025-05-02 10:42:15 -04:00
code_highlighting.scss FEATURE: add code-block rich editor extension (#31179) 2025-03-06 20:43:33 -03:00
colorpicker.scss DEV: Introduce stylelint (#29852) 2025-01-20 15:27:42 +00:00
compose.scss DEV: Refactor grippie resizer from composer into Modifier (#33046) 2025-06-11 11:08:11 +10:00
composer-user-selector.scss DEV: Introduce stylelint (#29852) 2025-01-20 15:27:42 +00:00
crawler_layout.scss DEV: Replace all @breakpoint with @viewport.* (#32649) 2025-05-12 12:52:45 +01:00
d-icon.scss
d-image-grid.scss DEV: Introduce stylelint (#29852) 2025-01-20 15:27:42 +00:00
dialog.scss DEV: Update linting (#32836) 2025-05-21 12:02:52 +02:00
directory.scss DEV: Replace all @breakpoint with @viewport.* (#32649) 2025-05-12 12:52:45 +01:00
discourse.scss UX: Remove background from nav pill hover (#32893) 2025-05-23 16:19:22 -05:00
edit-category.scss DEV: Update linting (#32836) 2025-05-21 12:02:52 +02:00
edit-topic-timer-modal.scss DEV: Introduce stylelint (#29852) 2025-01-20 15:27:42 +00:00
ember-select.scss
emoji.scss UX: only-emoji consistency between rich editor and cooked (#32245) 2025-04-09 16:54:05 -03:00
empty-state.scss DEV: Use css var font sizes (#18518) 2022-10-12 15:31:59 +02:00
exception.scss DEV: Introduce stylelint (#29852) 2025-01-20 15:27:42 +00:00
explain-reviewable.scss DEV: Introduce stylelint (#29852) 2025-01-20 15:27:42 +00:00
faqs.scss UX: Properly center-align buttons in login-required screen (#33159) 2025-06-11 12:08:59 -04:00
group.scss DEV: Update lint-configs and auto-fix issues (#31485) 2025-02-24 23:32:31 +01:00
groups.scss UX: Move to regular border radius variable (#33011) 2025-05-30 08:39:27 -05:00
header.scss UX: Fix active menu item bottom border (#33013) 2025-05-30 08:39:52 -05:00
history.scss DEV: Replace all @breakpoint with @viewport.* (#32649) 2025-05-12 12:52:45 +01:00
json_schema.scss DEV: Remove unnecessary scss mixins (#31355) 2025-02-18 15:45:18 +01:00
lightbox.scss DEV: Update linting (#32836) 2025-05-21 12:02:52 +02:00
list-controls.scss REFACTOR: move mobile list-controls.scss to common (#32862) 2025-05-23 09:50:06 -04:00
login-signup-page.scss DEV: Update linting (#32836) 2025-05-21 12:02:52 +02:00
login.scss UX: update system font stack to system-ui (#31125) 2025-02-03 11:28:17 -05:00
magnific-popup.scss DEV: Update linting (#32836) 2025-05-21 12:02:52 +02:00
menu-panel.scss FIX: Unread-icon-size (#33163) 2025-06-12 21:22:27 +10:00
modal.scss UX: Modal to inherit border radius (#32709) 2025-05-13 15:27:51 -05:00
new-user.scss DEV: Replace all @breakpoint with @viewport.* (#32649) 2025-05-12 12:52:45 +01:00
not-found.scss DEV: Introduce postcss minmax transform (#31885) 2025-03-18 19:28:52 +00:00
onebox.scss UX: Onebox margin-top of first child (#33088) 2025-06-12 13:47:08 -05:00
personal-message.scss UX: Polishing borders, border-radius, input, and spacing (#32995) 2025-05-29 16:43:57 -05:00
popup-menu.scss DEV: Update linting (#32836) 2025-05-21 12:02:52 +02:00
redirection.scss DEV: Use more css vars (#18561) 2022-10-12 16:05:42 +02:00
reorder-categories.scss DEV: Replace all @breakpoint with @viewport.* (#32649) 2025-05-12 12:52:45 +01:00
reviewables.scss REFACTOR: merge mobile reviewables css into common (#32714) 2025-05-14 09:36:35 -04:00
revise-and-reject-post-reviewable.scss DEV: Introduce stylelint (#29852) 2025-01-20 15:27:42 +00:00
rtl.scss DEV: Introduce stylelint (#29852) 2025-01-20 15:27:42 +00:00
search-menu.scss UX: fix tag suggestion alignment (#33315) 2025-06-23 11:50:55 -04:00
search.scss UX: Polishing borders, border-radius, input, and spacing (#32995) 2025-05-29 16:43:57 -05:00
share_link.scss DEV: Introduce stylelint (#29852) 2025-01-20 15:27:42 +00:00
shared-drafts.scss DEV: unused CSS cleanup, variable updates, simplification (#26111) 2024-03-11 09:07:53 -04:00
sidebar-custom-section.scss UX: fix padding (#32973) 2025-05-28 08:44:36 -05:00
sidebar-footer.scss DEV: Introduce stylelint (#29852) 2025-01-20 15:27:42 +00:00
sidebar-more-section-links.scss UX: sidebar "more" icon color fix (#31017) 2025-01-27 13:47:45 -05:00
sidebar-section-link.scss UX: consistent sizing for configure default nav links (#33314) 2025-06-23 11:24:19 -04:00
sidebar-section.scss UX: add gap to sidebar items (#32981) 2025-05-28 14:52:02 -05:00
sidebar.scss UX: Polishing borders, border-radius, input, and spacing (#32995) 2025-05-29 16:43:57 -05:00
static-login.scss UX: Visual adjustments to login/signup forms (#28680) 2024-10-25 09:34:59 -03:00
tagging.scss DEV: Replace all @breakpoint with @viewport.* (#32649) 2025-05-12 12:52:45 +01:00
tooltip.scss DEV: Introduce stylelint (#29852) 2025-01-20 15:27:42 +00:00
topic-admin-menu.scss DEV: Update linting (#32836) 2025-05-21 12:02:52 +02:00
topic-footer.scss REFACTOR: merge desktop and mobile topic-footer.scss into common (#32712) 2025-05-16 12:31:53 -04:00
topic-post.scss DEV: Introduce state handling for post cooked HTML decorators (#33200) 2025-06-23 18:13:49 -03:00
topic.scss DEV: Modernize the remaining of the post stream to Glimmer components (#32653) 2025-06-05 19:48:29 -03:00
upload.scss UX: fix border-radius on image upload inputs (#32935) 2025-05-28 08:58:21 +02:00
user-badges.scss UX: Polishing borders, border-radius, input, and spacing (#32995) 2025-05-29 16:43:57 -05:00
user-tips.scss UX: Improvements to user tips (#26480) 2024-04-03 11:43:56 -04:00
user.scss FEATURE: Add description to invites (#33207) 2025-06-16 11:31:07 +08:00