discourse/app/assets/javascripts/admin/addon/components
Martin Brennan 456fbb1dbf
FEATURE: Allow themes to define screenshots (#29079)
This commit allows themes to define up to 2 screenshots
in about.json. These should be paths within the theme's
git repository, images with a 1MB max file size and max width 3840x2160.

These screenshots will be downloaded and stored against a theme
field, and we will use these in the redesigned theme grid UI.

These screenshots will be updated when the theme is updated
in the same way the additional theme files are.

For now this is gated behind a hidden `theme_download_screenshots`
site setting, to allow us to test this on a small number of sites without
making other sites make unnecessary uploads.

**Future considerations:**

* We may want to have a specialized naming system for screenshots. E.g. having light.png/dark.png/some_palette.png
* We may want to show more than one screenshot for the theme, maybe in a carousel or reacting to dark mode or color palette changes
* We may want to allow clicking on the theme screenshot to show a lightbox
* We may want to make an optimized thumbnail image for the theme grid

---------

Co-authored-by: Ted Johansson <ted@discourse.org>
2024-10-28 10:10:20 +10:00
..
admin-config-area-cards/about UX: Update /about config page copy (#29387) 2024-10-25 09:54:28 -06:00
admin-config-areas UX: Consistent styling for admin tables on mobile (#29360) 2024-10-23 16:26:21 -06:00
form-template DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
modal DEV: Clean up watched-words controller/component (#29106) 2024-10-07 18:28:18 +02:00
report-filters FEATURE: Add WebHookEventsDailyAggregate report page (#27573) 2024-06-27 10:26:42 -03:00
schema-theme-setting DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
site-settings FEATURE: mandatory fields for compact-list (#29357) 2024-10-23 16:16:08 +11:00
admin-backups-actions.gjs UX: Automatically collapse admin page header buttons on mobile (#29040) 2024-10-08 08:28:32 +10:00
admin-backups-logs.hbs DEV: Colocate all admin component templates 2023-02-13 11:42:38 +00:00
admin-backups-logs.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
admin-config-area-card.gjs UX: Multiple fixes to theme card rendering (#29225) 2024-10-16 11:13:36 -05: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-filtered-site-settings.gjs UX: Minor admin mobile fixes (#29028) 2024-09-30 16:04:46 +10:00
admin-flag-item.gjs UX: Consistent styling for admin tables on mobile (#29360) 2024-10-23 16:26:21 -06:00
admin-flags-form.gjs FIX: reword auto action type field for flags (#29361) 2024-10-24 08:52:19 +11: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 UX: Automatically collapse admin page header buttons on mobile (#29040) 2024-10-08 08:28:32 +10:00
admin-page-header.gjs UX: Automatically collapse admin page header buttons on mobile (#29040) 2024-10-08 08:28:32 +10:00
admin-page-subheader.gjs UX: Change AdminPageSubheader to H2 (#29149) 2024-10-10 17:18:26 +10:00
admin-penalty-history.hbs DEV: Colocate all admin component templates 2023-02-13 11:42:38 +00:00
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: removes legacy modal code (#28047) 2024-07-24 18:07:17 +02: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: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01: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-plugin-config-area.gjs DEV: Clean up imports (#28060) 2024-07-25 15:09:06 +02:00
admin-plugin-config-page.gjs UX: Automatically collapse admin page header buttons on mobile (#29040) 2024-10-08 08:28:32 +10:00
admin-plugins-list-item.gjs UX: Consistent styling for admin tables on mobile (#29360) 2024-10-23 16:26:21 -06:00
admin-plugins-list.gjs UX: Consistent styling for admin tables on mobile (#29360) 2024-10-23 16:26:21 -06: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 DEV: Colocate all admin component templates 2023-02-13 11:42:38 +00:00
admin-report-counters.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-report-counts.hbs DEV: Colocate all admin component templates 2023-02-13 11:42:38 +00:00
admin-report-counts.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-report-inline-table.hbs DEV: Colocate all admin component templates 2023-02-13 11:42:38 +00:00
admin-report-inline-table.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-report-per-day-counts.hbs DEV: Colocate all admin component templates 2023-02-13 11:42:38 +00:00
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: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
admin-report-table-cell.hbs DEV: Colocate all admin component templates 2023-02-13 11:42:38 +00:00
admin-report-table-cell.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-report-table-header.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
admin-report-table-header.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-report-table-row.hbs DEV: Colocate all admin component templates 2023-02-13 11:42:38 +00:00
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 DEV: Colocate all admin component templates 2023-02-13 11:42:38 +00:00
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 UX: Hide 'other' and 'crawler' site traffic on report page (#28817) 2024-09-10 14:31:51 +10:00
admin-reports.gjs FEATURE: separate admin page for whats new and reports (#26216) 2024-03-20 14:23:18 +11:00
admin-section-landing-item.gjs DEV: Add a skeleton for section landing page & items (#28477) 2024-10-02 12:19:38 +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: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01: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 UX: remove default use of quaternary color, update nav pill styles (#27502) 2024-06-24 09:54:34 -04:00
admin-user-field-item.hbs FIX: Add back user custom field plugin outlet that was accidentally removed (#29247) 2024-10-17 13:06:55 +08:00
admin-user-field-item.js DEV: Don't ask admin to re-confirm 'for all users' when requirement didn't change (#29307) 2024-10-21 14:37:46 +08:00
admin-watched-word.gjs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
chart.gjs DEV: Convert admin charts to glimmer/gjs (#28271) 2024-08-23 14:59:56 +02: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: visual regression for new features (#29359) 2024-10-23 16:16:19 +11:00
dashboard-new-features.gjs FEATURE: Initial themes config area with grid (#28828) 2024-10-15 10:54:38 -05: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 FEATURE: Add ability to dismiss admin notices (#28916) 2024-09-17 14:43:34 +08: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: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
embeddable-host.hbs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
embeddable-host.js FEATURE: Extend embeddable hosts with Individual tags and author assignments (#26868) 2024-05-16 15:47:01 -04:00
embedding-setting.hbs DEV: Colocate all admin component templates 2023-02-13 11:42:38 +00:00
embedding-setting.js DEV: Fix "no-setter-return" lint (#24585) 2023-11-28 10:49:49 +01:00
emoji-uploader.hbs DEV: Update emoji-uploader uppy usage (#29340) 2024-10-22 17:07:16 +01:00
emoji-uploader.js DEV: Update emoji-uploader uppy usage (#29340) 2024-10-22 17:07:16 +01:00
emoji-value-list.hbs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
emoji-value-list.js FIX: Make cancel and reset buttons work for file_size_restriction settings (#28347) 2024-08-15 19:38:47 +03:00
file-size-input.gjs FIX: Make cancel and reset buttons work for file_size_restriction settings (#28347) 2024-08-15 19:38:47 +03:00
flag-user-lists.hbs DEV: Colocate all admin component templates 2023-02-13 11:42:38 +00:00
flag-user-lists.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
flag-user.hbs DEV: Colocate all admin component templates 2023-02-13 11:42:38 +00:00
flag-user.js DEV: Convert admin component definitions to native class syntax (#20311) 2023-02-23 15:32:53 +00:00
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: Update images-uploader uppy usage (#29341) 2024-10-23 10:08:09 +01: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.hbs DEV: Colocate all admin component templates 2023-02-13 11:42:38 +00:00
install-theme-item.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
ip-lookup.hbs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
ip-lookup.js DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01: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: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01: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: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01: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 FIX: Make cancel and reset buttons work for file_size_restriction settings (#28347) 2024-08-15 19:38:47 +03: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 DEV: Convert admin component definitions to native class syntax (#20311) 2023-02-23 15:32:53 +00:00
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 DEV: Colocate all admin component templates 2023-02-13 11:42:38 +00:00
site-customization-change-details.js DEV: Convert admin component definitions to native class syntax (#20311) 2023-02-23 15:32:53 +00:00
site-customization-change-field.hbs DEV: Colocate all admin component templates 2023-02-13 11:42:38 +00:00
site-customization-change-field.js DEV: Convert admin component definitions to native class syntax (#20311) 2023-02-23 15:32:53 +00:00
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 DEV: Colocate all admin component templates 2023-02-13 11:42:38 +00:00
staff-actions.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
tags-uploader.gjs DEV: Modernize tags-uploader component (#29215) 2024-10-16 11:54:59 +01: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 DEV: Remove layoutName references to site-settings component template 2023-02-13 11:42:38 +00:00
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: Allow typed objects theme settings to be saved via settings editor (#26100) 2024-03-11 08:42:12 +08: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: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
themes-grid-card.gjs FEATURE: Allow themes to define screenshots (#29079) 2024-10-28 10:10:20 +10: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: Multiple fixes to theme card rendering (#29225) 2024-10-16 11:13:36 -05:00
themes-list-item.gjs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01: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 FEATURE: direct link to components for admin sidebar (#26644) 2024-04-17 11:45:59 +10:00
uppy-backup-uploader.gjs DEV: Modernize uppy-backup-uploader component (#29342) 2024-10-23 10:07:24 +01: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: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
version-checks.js DEV: Convert admin component definitions to native class syntax (#20311) 2023-02-23 15:32:53 +00:00
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 FEATURE: add HTML replacements 2024-05-14 10:41:27 +02: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: Update watched-word-uploader uppy usage (#29280) 2024-10-21 15:09:14 +01:00
webhook-event-chooser.hbs FEATURE: granular webhooks (#23070) 2023-10-09 03:35:31 +00:00
webhook-event-chooser.js DEV: Fix "no-setter-return" lint (#24585) 2023-11-28 10:49:49 +01: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: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01: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 FEATURE: Add Mechanism to redeliver all failed webhook events (#27609) 2024-07-08 15:43:16 -05:00
webhook-status.gjs DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00