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/discourse/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
..
account-created DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
badges FIX: Use unfiltered URL when viewing all badges. 2019-04-04 12:35:03 +03:00
components FEATURE: Automatically generate optimized site metadata icons (#7372) 2019-05-01 14:44:45 +01:00
composer icons deprecations fixes (#6920) 2019-01-22 12:02:02 +01:00
discovery FIX: remove extra periods (#6998) 2019-02-13 12:54:34 +11:00
group REFACTOR: More consistent user/group page layouts 2019-03-25 14:40:22 -04:00
groups FIX: Loading more broken on groups page. 2019-04-30 10:35:17 +08:00
invites FIX: use autocomplete="discourse" to disable Chrome address autofill 2019-02-20 10:15:59 +11:00
list clean up unused code 2019-01-25 20:13:54 +05:30
mobile UX: add awaiting-approval class to login modal 2019-04-03 11:30:43 +02:00
modal FEATURE: Ignoring users from the preferences page in a cleaner way (#7289) 2019-04-25 09:26:49 +01:00
navigation UX: add more tag classes to topic view (#7228) 2019-03-21 17:49:50 +01:00
post PERF: optimise rendering of posts 2014-12-10 18:05:04 +11:00
preferences FEATURE: Ignoring users from the preferences page in a cleaner way (#7289) 2019-04-25 09:26:49 +01:00
tags icons deprecations fixes (#6920) 2019-01-22 12:02:02 +01:00
user REFACTOR: More consistent user/group page layouts 2019-03-25 14:40:22 -04:00
about.hbs FEATURE: Add about-after-description plugin outlet 2019-03-06 10:26:34 -05:00
account-created.hbs FEATURE: Allow users to resend/update email from confirmation page 2017-05-03 11:18:01 -04:00
application.hbs UI: improvements to footer nav for app and PWAs 2019-04-11 14:11:26 -04:00
badge-selector-autocomplete.raw.hbs UX: Tag each autocomplete dialog so they can be hidden 2018-04-24 11:03:16 -04:00
bulk-tag.hbs FEATURE: replaces tag-chooser/tag-group-chooser with select-kit component 2018-02-26 11:42:57 +01:00
category-selector-autocomplete.raw.hbs UX: Tag each autocomplete dialog so they can be hidden 2018-04-24 11:03:16 -04:00
category-tag-autocomplete.raw.hbs UX: Tag each autocomplete dialog so they can be hidden 2018-04-24 11:03:16 -04:00
composer.hbs UX: Changed error draft status to icon (#7369) 2019-04-19 09:18:01 +02:00
discovery.hbs add loading arg for plugin outlet discovery-list-container-top 2017-05-30 14:30:47 -04:00
emoji-picker-recent.raw.hbs replaces links/imgs by buttons in the emoji-picker 2017-07-21 19:42:50 +02:00
emoji-picker.raw.hbs.erb FIX: use autocomplete="discourse" to disable Chrome address autofill 2019-02-20 10:15:59 +11:00
emoji-selector-autocomplete.raw.hbs UX: Tag each autocomplete dialog so they can be hidden 2018-04-24 11:03:16 -04:00
exception.hbs REFACTOR: Replace some fa-* uses with helpers 2017-07-27 14:55:41 -04:00
flat-button.raw.hbs Rename {{fa-icon}} to {{d-icon}} so it can be more generic 2017-07-27 14:55:41 -04:00
full-page-search.hbs FIX: Disable buttons when loading more results on full page search. 2019-03-20 17:20:34 +08:00
group-activity-posts.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
group-activity-topics.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
group-index.hbs REFACTOR: More consistent user/group page layouts 2019-03-25 14:40:22 -04:00
group-requests.hbs FIX: Group requests page missing wrapper 2019-04-15 14:16:02 -04:00
group-selector-autocomplete.raw.hbs UX: Tag each autocomplete dialog so they can be hidden 2018-04-24 11:03:16 -04:00
group.hbs REFACTOR: More consistent user/group page layouts 2019-03-25 14:40:22 -04:00
hide-modal.hbs FIX: Remove more of those pesky View classes 2016-11-11 17:03:15 -05:00
invites.hbs FEATURE: new invite acceptance page, where username can be chosen and password can be set 2017-02-15 16:51:57 -05:00
loading.hbs FIX: Remove more of those pesky View classes 2016-11-11 17:03:15 -05:00
login-preferences.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
modal.hbs [WIP] FEATURE: merge share and invite actions together (#7021) 2019-02-20 15:42:44 +01:00
outlet-list.hbs Enable newer version of Ember 2016-11-25 10:09:58 -05:00
password-reset.hbs FIX: make it possible to use backup code everywhere where 2FA required (#7010) 2019-02-27 10:37:33 +01:00
preferences-about.hbs FIX: Layout was off in single-page user-preferences 2019-04-05 10:59:52 -04:00
preferences-email.hbs FIX: Layout was off in single-page user-preferences 2019-04-05 10:59:52 -04:00
preferences-second-factor-backup.hbs FIX: Layout was off in single-page user-preferences 2019-04-05 10:59:52 -04:00
preferences-second-factor.hbs Typo fix 2019-04-05 11:23:22 -04:00
preferences-username.hbs FIX: Layout was off in single-page user-preferences 2019-04-05 10:59:52 -04:00
preferences.hbs REFACTOR: More consistent user/group page layouts 2019-03-25 14:40:22 -04:00
review-index.hbs FEATURE: Allow users to customize bonuses for reviewable types 2019-04-03 11:18:34 -04:00
review-settings.hbs FEATURE: Allow users to customize bonuses for reviewable types 2019-04-03 11:18:34 -04:00
review-show.hbs FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
review-topics.hbs FEATURE: Allow users to customize bonuses for reviewable types 2019-04-03 11:18:34 -04:00
review.hbs FEATURE: Allow users to customize bonuses for reviewable types 2019-04-03 11:18:34 -04:00
selected-posts.hbs UX: Minor button icon color fixes 2019-02-04 12:46:12 -05:00
static.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
tag-groups-index.hbs FEATURE: tag groups 2016-06-06 14:18:48 -04:00
tag-groups-show.hbs FIX: Fix delete button for Tag Groups. (#6965) 2019-02-04 12:46:39 +01:00
tag-groups.hbs Add btn-default class to all default buttons (#6521) 2018-10-24 16:09:36 -04:00
tags.hbs Fixing HTML structure of tag filtered topic list 2018-08-15 19:45:37 -04:00
topic-list-header-column.raw.hbs Add btn-default class to all default buttons (#6521) 2018-10-24 16:09:36 -04:00
topic-list-header.raw.hbs clean up unused code 2019-01-25 20:13:54 +05:30
topic-post-badges.raw.hbs Topic badges line break (#5775) 2018-04-20 14:38:26 -04:00
topic-status.raw.hbs Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
topic.hbs FEATURE: Let staff add custom post notices. (#7377) 2019-04-19 17:53:58 +03:00
unknown.hbs Start converting modal views to components 2016-11-14 14:15:48 -05:00
user-card.hbs FEATURE: user and group cards on mobile (#7246) 2019-03-25 13:37:17 +01:00
user-invited-show.hbs REFACTOR: More consistent user/group page layouts 2019-03-25 14:40:22 -04:00
user-private-messages-tags.hbs UX: indicate active tag sorting method 2018-03-21 00:35:16 +05:30
user-selector-autocomplete.raw.hbs Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
user-topics-list.hbs clean up unused code 2019-01-25 20:13:54 +05:30
user.hbs FIX: Fixed deleted posts layout (#7348) 2019-04-10 19:00:39 +02:00
users.hbs UX: Move total user count 2019-04-19 00:35:50 -04:00