discourse/app/assets/stylesheets
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
..
common FEATURE: Automatically generate optimized site metadata icons (#7372) 2019-05-01 14:44:45 +01:00
desktop Allow signup form width to increase when no external logins are present 2019-04-24 13:08:39 -04:00
mobile UX: Move total user count 2019-04-19 00:35:50 -04:00
vendor UX: Overflow hidden was causing some icons to be cropped 2019-01-31 14:03:11 -05:00
admin.scss Sane sendAction() behavior 2015-09-11 09:34:20 -07:00
common.scss FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
desktop_rtl.scss FEATURE: support user local switching to RTL correctly 2015-05-20 15:56:54 +10:00
desktop.scss FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
embed.scss lighten embed blockquote style for consistency 2019-02-17 21:00:46 -08:00
mobile_rtl.scss FEATURE: support user local switching to RTL correctly 2015-05-20 15:56:54 +10:00
mobile.scss UI: improvements to footer nav for app and PWAs 2019-04-11 14:11:26 -04:00
wizard.scss FEATURE: better wizard privacy controls (#7391) 2019-04-22 19:47:29 +05:30