This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/admin/templates/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
..
report-filters FEATURE: initial implementation of generic filters for reports 2019-04-26 12:17:10 +02:00
site-settings FEATURE: Automatically generate optimized site metadata icons (#7372) 2019-05-01 14:44:45 +01:00
ace-editor.hbs FIX: ace editor was buggy in the latest Ember release 2016-11-28 11:29:56 -05:00
admin-editable-field.hbs icons deprecations fixes (#6920) 2019-01-22 12:02:02 +01:00
admin-form-row.hbs FEATURE: New "Dropdown" user field type 2015-07-28 12:30:21 -04:00
admin-nav.hbs Removing old bootstrap columns 2018-02-14 12:27:34 -05:00
admin-report-chart.hbs FEATURE: part 2 of dashboard improvements 2018-07-19 14:33:11 -04:00
admin-report-counters.hbs FIX: better handling of no prev30Days (#6301) 2018-08-22 18:00:11 +02:00
admin-report-counts.hbs FIX: makes format number round the value before using parseInt 2018-06-07 10:44:21 +02:00
admin-report-inline-table.hbs FEATURE: part 2 of dashboard improvements 2018-07-19 14:33:11 -04:00
admin-report-per-day-counts.hbs FIX: Broken link on admin dashboard 2015-05-19 13:13:31 -04:00
admin-report-stacked-chart.hbs FIX: better handling of resizing in stacked charts (#6921) 2019-01-22 11:20:50 +01:00
admin-report-storage-stats.hbs FEATURE: Improve backup stats on admin dashboard 2018-12-17 11:35:11 +01:00
admin-report-table-cell.hbs FIX: improves number/percent support in reports 2018-08-01 18:40:59 -04:00
admin-report-table-header.hbs FIX: quality/bugfix dashboard/reports pass (#6283) 2018-08-17 16:19:25 +02:00
admin-report-table-row.hbs FIX: improves number/percent support in reports 2018-08-01 18:40:59 -04:00
admin-report-table.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
admin-report-trust-level-counts.hbs UX: Display large numbers with delimiters. 2017-01-09 15:56:02 +08:00
admin-report.hbs FEATURE: initial implementation of generic filters for reports 2019-04-26 12:17:10 +02:00
admin-theme-editor.hbs FIX: Hide advanced theme fields behind a flag, pending UI improvement 2019-02-19 22:25:00 +00:00
admin-user-field-item.hbs REFACTOR: admin-user-field-item (#7016) 2019-02-19 09:30:38 +01:00
admin-web-hook-event-chooser.hbs FEATURE: Webhooks. 2016-09-05 18:44:00 +08:00
admin-web-hook-event.hbs UX: Switch ellipsis direction when expanding web hook event details. 2019-04-16 14:28:23 +08:00
embeddable-host.hbs icons deprecations fixes (#6920) 2019-01-22 12:02:02 +01:00
embedding-setting.hbs Remove example CSS selectors from locale file 2015-10-11 14:48:37 +02:00
flag-user-lists.hbs FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
flag-user.hbs Add raw date to title attribute on old flags page (#6349) 2018-08-31 11:01:10 +10:00
highlighted-code.hbs Can edit settings on the embedding page 2015-08-20 15:56:05 -04:00
inline-edit-checkbox.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
install-theme-item.hbs UX: List popular themes and components in admin panel (#6997) 2019-02-20 14:58:31 -05:00
penalty-post-action.hbs Many enhancements to the flagging / suspending interface. 2018-02-01 17:13:02 -05:00
permalink-form.hbs DEV: refactoring permalink-form (#6925) 2019-01-22 15:09:21 +01:00
save-controls.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
screened-ip-address-form.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
secret-value-list.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
setting-validation-message.hbs Rename {{fa-icon}} to {{d-icon}} so it can be more generic 2017-07-27 14:55:41 -04:00
silence-details.hbs Allow silence details to be overwritten via plugin 2018-01-10 13:19:53 -05:00
site-customization-change-details.hbs Remove the last of the admin view classes 2016-11-16 16:41:15 -05:00
site-customization-change-field.hbs Remove the last of the admin view classes 2016-11-16 16:41:15 -05:00
site-setting.hbs icons deprecations fixes (#6920) 2019-01-22 12:02:02 +01:00
site-text-summary.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
suspension-details.hbs Add extensibility for suspension reasons 2018-01-10 12:52:31 -05:00
tags-uploader.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
themes-list-item.hbs DEV: fix some deprecated SVG icon refs 2019-01-22 14:42:00 -05:00
themes-list.hbs UX: List popular themes and components in admin panel (#6997) 2019-02-20 14:58:31 -05:00
value-list.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
watched-word-form.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
watched-word-uploader.hbs Add btn-default class to all default buttons (#6521) 2018-10-24 16:09:36 -04:00