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
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
..
components FEATURE: Automatically generate optimized site metadata icons (#7372) 2019-05-01 14:44:45 +01:00
logs UX: Make button icons use lighter color instead of opacity 2019-01-31 13:59:49 -05:00
modal FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
admin.hbs DEV: removes old dashboard (#7295) 2019-04-01 12:39:49 +02:00
api-keys.hbs DEV: refactoring api-keys (#6931) 2019-01-23 17:40:05 +01:00
api.hbs UX: Various admin class and structure improvements for styling 2017-10-30 14:50:43 -04:00
backups-index.hbs DEV: refactoring admin-backups-index (#6933) 2019-01-23 17:40:24 +01:00
backups-logs.hbs Fixes some Ember Deprecations for 1.13: 2016-10-21 11:06:07 -04:00
backups.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
badges-index.hbs UX: Unify admin intro styles for badges/customize, improve mobile 2019-04-09 20:32:24 -04:00
badges-show.hbs icons deprecations fixes (#6920) 2019-01-22 12:02:02 +01:00
badges.hbs UX: admin badge page improvements 2019-01-23 11:29:51 +01:00
customize-colors-index.hbs FEATURE: Native theme support 2017-04-12 10:53:49 -04:00
customize-colors-show.hbs icons deprecations fixes (#6920) 2019-01-22 12:02:02 +01:00
customize-colors.hbs REFACTOR: admin-customize-color (#7018) 2019-02-19 09:31:11 +01:00
customize-email-templates-edit.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
customize-email-templates-index.hbs FEATURE: Admin interface for editing email templates 2015-11-19 16:39:34 -05:00
customize-email-templates.hbs Removing old bootstrap columns 2018-02-14 12:27:34 -05:00
customize-themes-edit.hbs FEATURE: Added settings/translations support to theme editor UI (#7026) 2019-02-19 12:56:01 +00:00
customize-themes-index.hbs UX: Unify admin intro styles for badges/customize, improve mobile 2019-04-09 20:32:24 -04:00
customize-themes-show.hbs DEV: Rename some icons with deprecated names 2019-02-28 13:03:14 -05:00
customize-themes.hbs UX: List popular themes and components in admin panel (#6997) 2019-02-20 14:58:31 -05:00
customize.hbs UX: Various admin class and structure improvements for styling 2017-10-30 14:50:43 -04:00
dashboard_general.hbs FIX: removes link to old dashboard (#7341) 2019-04-09 09:24:41 +02:00
dashboard_moderation.hbs DEV: removes old dashboard (#7295) 2019-04-01 12:39:49 +02:00
dashboard_reports.hbs DEV: removes old dashboard (#7295) 2019-04-01 12:39:49 +02:00
dashboard_security.hbs DEV: removes old dashboard (#7295) 2019-04-01 12:39:49 +02:00
dashboard-problems.hbs DEV: Rename some icons with deprecated names 2019-02-28 13:03:14 -05:00
dashboard.hbs DEV: removes old dashboard (#7295) 2019-04-01 12:39:49 +02:00
email-advanced-test.hbs UX: Wrap pre element. 2018-12-05 21:56:18 +01:00
email-bounced.hbs UX: Hide link to incoming email when there is no bounce key 2019-03-26 18:00:27 +01:00
email-index.hbs UX: Improve email testing admin tool. (#6308) 2018-08-29 23:14:16 +02:00
email-preview-digest.hbs Add btn-default class to all default buttons (#6521) 2018-10-24 16:09:36 -04:00
email-received.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
email-rejected.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
email-sent.hbs FIX: prevents double network calls and other quirks on admin emails (#7074) 2019-02-26 17:53:52 +01:00
email-skipped.hbs FIX: prevents double network calls and other quirks on admin emails (#7074) 2019-02-26 17:53:52 +01:00
email.hbs FEATURE: Add 'Advanced Test' for admin panel. 2018-12-05 21:56:18 +01:00
embedding.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
emojis.hbs icons deprecations fixes (#6920) 2019-01-22 12:02:02 +01:00
logs.hbs FEATURE: search log term details page (#5445) 2017-12-20 13:41:31 +11:00
permalinks.hbs icons deprecations fixes (#6920) 2019-01-22 12:02:02 +01:00
plugins-index.hbs icons deprecations fixes (#6920) 2019-01-22 12:02:02 +01:00
plugins.hbs icons deprecations fixes (#6920) 2019-01-22 12:02:02 +01:00
reports-show.hbs FEATURE: initial implementation of generic filters for reports 2019-04-26 12:17:10 +02:00
search-logs-index.hbs UX: Pass period params when looking at search logs for a given term. 2019-04-02 11:51:41 +08:00
search-logs-term.hbs UX: Wrap title on search log term page with a proper div. 2019-04-02 11:55:57 +08:00
site-settings-category.hbs FEATURE: Automatically generate optimized site metadata icons (#7372) 2019-05-01 14:44:45 +01:00
site-settings.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
site-text-edit.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
site-text-index.hbs FEATURE: Locale support for seeded categories and topics (#7110) 2019-03-18 21:09:13 +01:00
site-text.hbs FEATURE: Can override any translation via an admin interface 2015-11-27 11:35:19 -05:00
user-badges.hbs SECURITY: fix possible XSS with badges (#6912) 2019-01-21 13:08:26 +01:00
user-fields.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
user-index.hbs FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
user-tl3-requirements.hbs FIX: Don't allow a user to become TL3 if they've ever been penalized 2018-04-24 15:15:32 -04:00
user.hbs Remove the ScrollTop Mixin 2016-11-10 15:25:04 -05:00
users-list-show.hbs FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
users-list.hbs FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
version-checks.hbs DEV: fix some deprecated SVG icon refs 2019-01-22 14:42:00 -05:00
watched-words-action.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
watched-words.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
web-hooks-show-events.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
web-hooks-show.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
web-hooks.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00