discourse/app/assets/javascripts/admin/addon/components
Joffrey JAFFEUX 6740a340ca
DEV: unifies emoji picker (#28277)
The chat emoji picker is renamed emoji-picker, and the old emoji-picker is removed.

This commit doesn't attempt to fully rework a new emoji-picker but instead tries to migrate everything to one picker (the chat one) and add small changes.

Other notable changes:
- all the favorite emojis code has been mixed into one service which is able to store one state per context, favorites emojis will be stored for all topics, and for each chat channel. Meaning that if you always use a specific emoji in a channel, it will only show as favorite emoji in this channel.
- a lot of static code has been removed which should improve initial load perf of discourse. Initially this code was around to improve the performance of the emoji picker rendering.
- the emojis are now stored, once the full list has been loaded, if you close and reopen the picker it won't have to load them again.

List of components:

- `<EmojiPicker />` will render a button which will open a dropdown
- `<EmojiPickerContent />` represents the content of the dropdown alone, it's useful when you want to render a picker from an action which is not the default picker button
- `<EmojiPickerDetached />` just a simple wrapper over `<EmojiPickerContent />` to make it easier to use it with `this.menu.show(...)`

---------

Co-authored-by: Renato Atilio <renatoat@gmail.com>
2025-01-08 11:41:36 +01:00
..
admin-config-area-cards/about DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
admin-config-areas DEV: Convert admin API keys to conform to UI guidelines (#30096) 2025-01-08 18:11:38 +08:00
form-template DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
modal DEV: Bump @discourse/lint-configs and autofix (#29847) 2024-11-20 14:15:04 +00:00
report-filters FEATURE: Add WebHookEventsDailyAggregate report page (#27573) 2024-06-27 10:26:42 -03:00
schema-theme-setting DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
site-settings DEV: Round 1 converting admin site setting components to gjs (#30526) 2025-01-03 11:34:28 +10:00
admin-area-settings.gjs UX: Admin setting page consistency - Files and Other (#30572) (#30614) 2025-01-07 16:39:00 +10:00
admin-backups-actions.gjs DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
admin-backups-logs.hbs
admin-backups-logs.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
admin-config-area-card.gjs UX: admins embedding page follows admin ux guideline (#30122) 2025-01-06 13:01:08 +11:00
admin-config-area-empty-list.gjs DEV: Consistent AdminConfigAreaEmptyList options (#29975) 2024-11-28 15:31:04 +10:00
admin-editable-field.hbs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
admin-editable-field.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-embedding-host-form.gjs UX: admins embedding page follows admin ux guideline (#30122) 2025-01-06 13:01:08 +11:00
admin-filtered-site-settings.gjs DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
admin-flag-item.gjs FIX: consistent delete button for admin panel (#30592) 2025-01-07 14:05:45 +11:00
admin-flags-form.gjs DEV: Update more deprecated Font Awesome icon names (#30163) 2024-12-08 22:14:28 +01:00
admin-form-row.hbs FIX: Add checkbox-label to more checkbox label elements (#24174) 2023-10-31 08:57:50 +01:00
admin-form-row.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-nav.gjs DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-notice.gjs FIX: Only render admin notice dismiss button for admins (#29103) 2024-10-07 13:14:01 +08:00
admin-page-action-button.gjs DEV: Introduce <DPageHeader /> and <DPageSubheader /> components (#30146) 2024-12-18 08:13:39 +10:00
admin-penalty-history.hbs
admin-penalty-history.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-penalty-post-action.hbs DEV: remove trivial {{action}} usages (#24278) 2023-11-08 10:53:06 +01:00
admin-penalty-post-action.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
admin-penalty-reason.hbs DEV: Use class attribute instead of @class arg (#24804) 2023-12-12 13:09:05 +01:00
admin-penalty-reason.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
admin-penalty-similar-users.hbs FIX: Don't show silence button on staff users and display similar users (#28423) 2024-08-20 15:27:29 +03:00
admin-penalty-similar-users.js FIX: Don't show silence button on staff users and display similar users (#28423) 2024-08-20 15:27:29 +03:00
admin-permalink-form.gjs FIX: Permalink.create didn't work as expected anymore (#29895) 2024-11-22 21:11:26 +01:00
admin-plugin-config-area.gjs DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
admin-plugin-config-page.gjs DEV: Introduce <DPageHeader /> and <DPageSubheader /> components (#30146) 2024-12-18 08:13:39 +10:00
admin-plugins-list-item.gjs DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
admin-plugins-list.gjs DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
admin-report-chart.gjs DEV: Convert admin charts to glimmer/gjs (#28271) 2024-08-23 14:59:56 +02:00
admin-report-counters.hbs
admin-report-counters.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-report-counts.hbs
admin-report-counts.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-report-inline-table.hbs
admin-report-inline-table.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-report-per-day-counts.hbs
admin-report-per-day-counts.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-report-radar.gjs DEV: Convert admin charts to glimmer/gjs (#28271) 2024-08-23 14:59:56 +02:00
admin-report-stacked-chart.gjs FEATURE: Switch to new methods of pageview measurement and reporting (#28729) 2024-09-10 09:51:49 +10:00
admin-report-stacked-line-chart.gjs DEV: Convert admin charts to glimmer/gjs (#28271) 2024-08-23 14:59:56 +02:00
admin-report-storage-stats.hbs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
admin-report-storage-stats.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
admin-report-table-cell.hbs
admin-report-table-cell.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-report-table-header.hbs
admin-report-table-header.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-report-table-row.hbs
admin-report-table-row.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-report-table.hbs DEV: remove slightly less trivial {{action}} usages (#24289) 2023-11-13 13:29:20 +01:00
admin-report-table.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-report-trust-level-counts.hbs
admin-report-trust-level-counts.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-report.hbs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
admin-report.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
admin-reports.gjs DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
admin-section-landing-item.gjs DEV: Introduce <DPageHeader /> and <DPageSubheader /> components (#30146) 2024-12-18 08:13:39 +10:00
admin-section-landing-wrapper.gjs DEV: Add a skeleton for section landing page & items (#28477) 2024-10-02 12:19:38 +10:00
admin-site-settings-filter-controls.gjs DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
admin-theme-editor.hbs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
admin-theme-editor.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
admin-user-field-item.gjs FIX: consistent delete button for admin panel (#30592) 2025-01-07 14:05:45 +11:00
admin-user-fields-form.gjs DEV: Modernize admin user fields (#29843) 2024-11-25 11:54:43 +08:00
admin-watched-word.gjs DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
api-key-item.gjs DEV: Convert admin API keys to conform to UI guidelines (#30096) 2025-01-08 18:11:38 +08:00
bulk-user-delete-confirmation.gjs FEATURE: Add an option to block IPs and emails to bulk user delete (#29993) 2024-12-09 14:25:31 +03:00
chart.gjs FIX: Rerender Chart component if config changes (#29955) 2024-11-28 13:37:59 +10:00
color-input.hbs A11Y: add screenreader markup for category color pickers (#29351) 2024-10-22 18:38:13 -04:00
color-input.js DEV: Don't use attrs (#24323) 2023-11-27 12:16:31 +01:00
dashboard-new-feature-item.gjs FIX: Calculate experiment_enabled on server for "What's new?" (#30599) 2025-01-07 11:27:24 +10:00
dashboard-new-features.gjs DEV: Consistent AdminConfigAreaEmptyList options (#29975) 2024-11-28 15:31:04 +10:00
dashboard-period-selector.gjs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
dashboard-problems.gjs DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
email-styles-editor.hbs DEV: Convert ace-editor to glimmer/gjs (#28492) 2024-08-27 13:35:38 +02:00
email-styles-editor.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
embeddable-host.gjs FIX: consistent delete button for admin panel (#30592) 2025-01-07 14:05:45 +11:00
emoji-uploader.hbs DEV: Modernize admin emoji JavaScript (#29714) 2024-11-19 15:44:34 +08:00
emoji-uploader.js DEV: Move admin config pages out of /customize/ sub-route (#30511) 2025-01-02 09:13:11 +10:00
emoji-value-list.hbs DEV: unifies emoji picker (#28277) 2025-01-08 11:41:36 +01:00
emoji-value-list.js DEV: unifies emoji picker (#28277) 2025-01-08 11:41:36 +01:00
file-size-input.gjs DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
flag-user-lists.hbs
flag-user-lists.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
flag-user.hbs
flag-user.js
highlighted-code.gjs DEV: Convert highlighted-code to glimmer/gjs (#28914) 2024-09-17 13:49:35 +02:00
images-uploader.hbs DEV: Update images-uploader uppy usage (#29341) 2024-10-23 10:08:09 +01:00
images-uploader.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
inline-edit-checkbox.hbs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
inline-edit-checkbox.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
install-theme-item.gjs DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
ip-lookup.gjs UX: only show red count in IP lookup when greater than 0 (#30584) 2025-01-06 11:58:12 -05:00
moderation-history-item.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
permalink-form.hbs DEV: Use fn+mut instead of action+mut (#26057) 2024-03-06 18:05:03 +01:00
permalink-form.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
plugin-commit-hash.gjs DEV: Convert various components to gjs (#26782) 2024-04-30 16:44:49 +02:00
screened-ip-address-form.hbs DEV: Use fn+mut instead of action+mut (#26057) 2024-03-06 18:05:03 +01:00
screened-ip-address-form.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
secret-value-list.hbs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
secret-value-list.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
setting-validation-message.hbs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
setting-validation-message.js
silence-details.hbs DEV: Use class attribute instead of @class arg (#24804) 2023-12-12 13:09:05 +01:00
silence-details.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
simple-list.hbs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
simple-list.js DEV: Remove uses of @on from native classes (#27327) 2024-06-04 20:16:05 +02:00
site-customization-change-details.hbs
site-customization-change-details.js
site-customization-change-field.hbs
site-customization-change-field.js
site-setting.hbs A11Y: Label site setting buttons (#29348) 2024-10-22 18:04:42 -04:00
site-setting.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
site-text-summary.gjs FEATURE: Allow showing site text search in selected locale (#28453) 2024-08-26 11:25:36 +10:00
staff-actions.hbs
staff-actions.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
tags-uploader.gjs DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
theme-setting-editor.js DEV: Allow typed objects theme settings to be saved via settings editor (#26100) 2024-03-11 08:42:12 +08:00
theme-setting-relatives-selector.js
theme-settings-editor.hbs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
theme-settings-editor.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
theme-translation.js FEATURE: add language picker for theme translations in admin UI (#26150) 2024-03-18 12:00:28 -04:00
theme-upload-add.hbs UX: update appropriate btn-flat instances to btn-transparent (#25945) 2024-02-29 11:47:07 +01:00
theme-upload-add.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
themes-grid-card.gjs DEV: update deprecated icon names in themes-grid-card (#30162) 2024-12-08 22:18:55 +01:00
themes-grid-placeholder.gjs FEATURE: Initial themes config area with grid (#28828) 2024-10-15 10:54:38 -05:00
themes-grid.gjs UX: Look and feel changes (#29245) 2024-10-29 12:25:17 +10:00
themes-list-item.gjs DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
themes-list.hbs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
themes-list.js DEV: Bump @discourse/lint-configs and autofix (#29847) 2024-11-20 14:15:04 +00:00
uppy-backup-uploader.gjs DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
value-list.hbs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
value-list.js DEV: Convert admin user fields to FormKit (#29070) 2024-10-14 13:19:53 +08:00
version-checks.hbs DEV: Update more deprecated Font Awesome icon names (#30163) 2024-12-08 22:14:28 +01:00
version-checks.js
watched-word-form.hbs UX: limit "outputs HTML" watched word option to replacements (#28063) 2024-07-25 16:25:56 -03:00
watched-word-form.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
watched-word-uploader.hbs DEV: Update watched-word-uploader uppy usage (#29280) 2024-10-21 15:09:14 +01:00
watched-word-uploader.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
webhook-event-chooser.hbs
webhook-event-chooser.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
webhook-event.hbs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
webhook-event.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
webhook-events.hbs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
webhook-events.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
webhook-status.gjs UX: Apply admin table to webhooks (#30317) 2024-12-17 08:52:29 -07:00