discourse/app/assets/javascripts/admin/routes
David Taylor 0e303c7f5d
FEATURE: Automatically generate optimized site metadata icons (#7372)
This change automatically resizes icons for various purposes. Admins can now upload `logo` and `logo_small`, and everything else will be auto-generated. Specific icons can still be uploaded separately if required.

## Core

- Adds an SiteIconManager module which manages automatic resizing and fallback

- Icons are looked up in the OptimizedImage table at runtime, and then cached in Redis. If the resized version is missing for some reason, then most icons will fall back to the original files. Some icons (e.g. PWA Manifest) will return `nil` (because an incorrectly sized icon is worse than a missing icon). 

- `SiteSetting.site_large_icon_url` will return the optimized version, including any fallback. `SiteSetting.large_icon` continues to return the upload object. This means that (almost) no changes are required in core/plugins to support this new system.

- Icons are resized whenever a relevant site setting is changed, and during post-deploy migrations

## Wizard

- Allows `requiresRefresh` wizard steps to reload data via AJAX instead of a full page reload

- Add placeholders to the **icons** step of the wizard, which automatically update from the "Square Logo"

- Various copy updates to support the changes

- Remove the "upload-time" resizing for `large_icon`. This is no longer required.

## Site Settings UX

- Move logo/icon settings under a new "Branding" tab

- Various copy changes to support the changes

- Adds placeholder support to the `image-uploader` component

- Automatically reloads site settings after saving. This allows setting placeholders to change based on changes to other settings

- Upload site settings will be assigned a placeholder if SiteIconManager `responds_to?` an icon of the same name

## Dashboard Warnings

- Remove PWA icon and PWA title warnings. Both are now handled automatically.

## Bonus

- Updated the sketch logos to use @awesomerobot's new high-res designs
2019-05-01 14:44:45 +01:00
..
admin-api-index.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-api-keys.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-backups-index.js.es6 FIX: Deleting backup failed after uploading backup 2018-08-31 13:50:32 +02:00
admin-backups-logs.js.es6 DEV: s/Em/Ember (#6874) 2019-01-11 17:54:23 +01:00
admin-backups.js.es6 DEV: refactoring admin-backups-index (#6933) 2019-01-23 17:40:24 +01:00
admin-badges-index.js.es6 UX: admin badge page improvements 2019-01-23 11:29:51 +01:00
admin-badges-show.js.es6 DEV: s/Em/Ember (#6874) 2019-01-11 17:54:23 +01:00
admin-badges.js.es6 DEV: removes _.each from codebase (#6629) 2018-11-20 14:46:58 +01:00
admin-customize-colors-show.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-customize-colors.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-customize-email-templates-edit.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-customize-email-templates.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-customize-index.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-customize-themes-edit.js.es6 FEATURE: Added settings/translations support to theme editor UI (#7026) 2019-02-19 12:56:01 +00:00
admin-customize-themes-index.js.es6 use `woman_artist` emoji 2018-09-17 09:49:53 +10:00
admin-customize-themes-show.js.es6 UX: Editing theme name stays active when switching themes. 2019-04-23 14:57:14 +08:00
admin-customize-themes.js.es6 UX: List popular themes and components in admin panel (#6997) 2019-02-20 14:58:31 -05:00
admin-dashboard-general.js.es6 DEV: removes old dashboard (#7295) 2019-04-01 12:39:49 +02:00
admin-dashboard-reports.js.es6 DEV: removes old dashboard (#7295) 2019-04-01 12:39:49 +02:00
admin-dashboard.js.es6 DEV: removes old dashboard (#7295) 2019-04-01 12:39:49 +02:00
admin-email-bounced.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-email-incomings.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-email-index.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-email-logs.js.es6 FIX: prevents double network calls and other quirks on admin emails (#7074) 2019-02-26 17:53:52 +01:00
admin-email-preview-digest.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-email-received.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-email-rejected.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-email-sent.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-email-skipped.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-embedding.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-emojis.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-flags-posts-active.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-flags-posts-old.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-flags-topics-index.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-logs-index.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-logs-screened-emails.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-logs-screened-ip-addresses.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-logs-screened-urls.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-logs-staff-action-logs.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-permalinks.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-plugins.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-reports-index.js.es6 DEV: removes old dashboard (#7295) 2019-04-01 12:39:49 +02:00
admin-reports-show.js.es6 FEATURE: initial implementation of generic filters for reports 2019-04-26 12:17:10 +02:00
admin-route-map.js.es6 DEV: removes old dashboard (#7295) 2019-04-01 12:39:49 +02:00
admin-search-logs-index.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-search-logs-term.js.es6 Follow up to 8c2fa99f78. 2019-03-29 10:39:44 +08:00
admin-site-settings-category.js.es6 FEATURE: Automatically generate optimized site metadata icons (#7372) 2019-05-01 14:44:45 +01:00
admin-site-settings-index.js.es6 rename `visible` to `visibleSiteSettings` 2018-12-13 13:00:13 +11:00
admin-site-settings.js.es6 FEATURE: Automatically generate optimized site metadata icons (#7372) 2019-05-01 14:44:45 +01:00
admin-site-text-edit.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-site-text-index.js.es6 FEATURE: Locale support for seeded categories and topics (#7110) 2019-03-18 21:09:13 +01:00
admin-user-badges.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-user-fields.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-user-index.js.es6 FIX: Clear unsaved groups when switching user (#7236) 2019-03-22 12:46:36 +01:00
admin-user-tl3-requirements.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-user.js.es6 DEV: s/Em/Ember (#6874) 2019-01-11 17:54:23 +01:00
admin-users-index.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-users-list-index.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-users-list-show.js.es6 UX: Enabled sorting for more columns in admin user list (#7208) 2019-03-21 17:16:58 +08:00
admin-users-list.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-watched-words-action.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-watched-words-index.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-watched-words.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-web-hooks-show-events.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-web-hooks-show.js.es6 FEATURE: Filter topic and post web hook events by tags (#6726) 2018-12-05 14:44:06 +05:30
admin-web-hooks.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00