discourse/test/javascripts/components
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
..
ace-editor-test.js.es6 DEV: uses find() helper instead of this.$() in js tests (#7062) 2019-02-25 16:04:55 +01:00
admin-report-test.js.es6 FIX: handles not found reports in bulk loading (#6582) 2018-11-12 13:47:24 +01:00
categories-admin-dropdown-test.js.es6 Fix test 2018-10-02 15:20:11 -04:00
category-chooser-test.js.es6 UX: search all categories even if category-chooser is scoped to particular category 2019-01-10 21:19:53 +05:30
category-drop-test.js.es6 FIX: category-drop initial state was incorrect (#6743) 2018-12-10 14:05:00 +01:00
category-selector-test.js.es6 DEV: Mark flaky tests as pending 2019-04-30 15:01:21 -03:00
combo-box-test.js.es6 DEV: migrate tests to async/await 2018-07-30 12:21:05 +02:00
d-button-test.js.es6 DEV: uses find() helper instead of this.$() in js tests (#7062) 2019-02-25 16:04:55 +01:00
d-editor-test.js.es6 DEV: Mark flaky tests as pending until we fix them. (#7386) 2019-04-16 13:35:54 -03:00
d-icon-test.js.es6 Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
group-membership-button-test.js.es6 FIX: Hide group membership request button for existing members 2018-12-24 13:49:05 +05:30
image-uploader-test.js.es6 FEATURE: Automatically generate optimized site metadata icons (#7372) 2019-05-01 14:44:45 +01:00
keyboard-shortcuts-test.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
list-setting-test.js.es6 DEV: migrate tests to async/await 2018-07-30 12:21:05 +02:00
mini-tag-chooser-test.js.es6 DEV: Mark flaky tests as pending 2019-04-30 15:01:21 -03:00
multi-select-test.js.es6 DEV: Mark flaky tests as pending 2019-04-30 15:01:21 -03:00
pinned-options-test.js.es6 DEV: migrate components tests to async/await 2018-07-24 22:41:14 +02:00
secret-value-list-test.js.es6 FIX: don't allow adding a value containing vertical bar char to the secret list 2018-11-05 12:14:56 +01:00
share-button-test.js.es6 UX: puts back share-panel as floating pane on post actions (#7066) 2019-02-26 14:15:25 +01:00
share-button.js.es6 UX: puts back share-panel as floating pane on post actions (#7066) 2019-02-26 14:15:25 +01:00
single-select-test.js.es6 DEV: Mark flaky tests as pending 2019-04-30 15:01:21 -03:00
tag-drop-test.js.es6 FIX: improves locale support in tag-drop (#7418) 2019-04-23 17:53:59 +02:00
text-field-test.js.es6 DEV: uses find() helper instead of this.$() in js tests (#7062) 2019-02-25 16:04:55 +01:00
topic-footer-buttons-desktop-test.js.es6 FEATURE: adds an API to register topic footer buttons 2019-02-07 14:43:33 +01:00
topic-footer-mobile-dropdown-test.js.es6 FEATURE: adds an API to register topic footer buttons 2019-02-07 14:43:33 +01:00
topic-notifications-button-test.js.es6 DEV: migrate components tests to async/await 2018-07-24 22:41:14 +02:00
topic-notifications-options-test.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
value-list-test.js.es6 FEATURE: introduces list/compact_list components 2018-08-03 16:41:37 -04:00