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/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
..
user-fields UX: make name optional for confirmation user field (#7149) 2019-03-13 18:40:43 +01:00
activation-controls.hbs icons deprecations fixes (#6920) 2019-01-22 12:02:02 +01:00
activation-email-form.hbs FEATURE: Allow users to resend/update email from confirmation page 2017-05-03 11:18:01 -04:00
avatar-uploader.hbs icons deprecations fixes (#6920) 2019-01-22 12:02:02 +01:00
backup-codes.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
backup-uploader.hbs FEATURE: Support backup uploads/downloads directly to/from S3. 2018-10-15 09:43:31 +08:00
badge-button.hbs Fix issue for custom image badges urls (#5814) 2018-05-11 10:29:24 +02:00
badge-card.hbs FIX: Add more links to bandge cards. 2019-04-03 18:37:11 +03:00
badge-selector.hbs Advanced Search UI 2016-10-04 11:18:01 -04:00
badge-title.hbs FIX: broken select badge as user title (#5474) 2018-01-05 16:58:15 +01:00
basic-topic-list.hbs FIX: restores skipHeader computed property 2019-04-26 23:43:49 +02:00
bread-crumbs.hbs UX: ensures only <li> are used as top level in breadcrumb (#7306) 2019-04-02 17:37:53 +02:00
bulk-select-button.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
cancel-link.hbs UX cleanup changes to 2FA flow. 2018-03-23 11:05:36 +08:00
categories-and-latest-topics.hbs Simplify to only support topics list for now 2018-06-25 15:02:22 +10:00
categories-and-top-topics.hbs FEATURE: New "Categories and Top" homepage style 2018-03-03 14:26:57 -05:00
categories-boxes-topic.hbs Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
categories-boxes-with-topics.hbs UX: More consistent category lock and topic-status styles 2018-12-10 16:06:26 -05:00
categories-boxes.hbs UX: More consistent category lock and topic-status styles 2018-12-10 16:06:26 -05:00
categories-only.hbs Simplifying category page markup 2018-08-17 23:07:07 -04:00
categories-topic-list.hbs FIX: Relative links in templates should work with subfolders 2018-11-07 11:35:04 +01:00
categories-with-featured-topics.hbs FIX: Some errors that only appear in Ember 1.13 2016-10-26 16:26:10 -04:00
category-name-fields.hbs UX: Make Uncategorized category less confusing 2019-03-05 14:42:41 +01:00
category-title-before.hbs Added the required hooks for discourse-favorites plugin. 2018-02-22 23:58:53 +02:00
category-title-link.hbs UX: category images have no sizes (#6662) 2018-11-27 08:40:06 +08:00
category-unread.hbs fix typo 2015-10-04 10:49:58 -07:00
cdn-img.hbs UX: Use aspect ratio to calculate width and height precisely 2018-11-29 09:32:03 +05:30
choose-message.hbs FEATURE: move posts to new/existing PM (#6802) 2018-12-31 17:17:22 +05:30
choose-topic.hbs UX: fixes display issues in split to existing topic modal 2018-11-19 13:12:42 +08:00
color-input.hbs FEATURE: Native theme support 2017-04-12 10:53:49 -04:00
color-picker.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
composer-action-title.hbs icons deprecations fixes (#6920) 2019-01-22 12:02:02 +01:00
composer-editor.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
composer-messages.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
composer-title.hbs FIX: use autocomplete="discourse" to disable Chrome address autofill 2019-02-20 10:15:59 +11:00
composer-toggles.hbs FEATURE: fullscreen composer mode on desktop 2018-10-15 13:59:49 +11:00
composer-user-selector.hbs REFACTOR: remove disallowEmails option from user-selector 2019-02-21 16:37:26 +11:00
conditional-loading-section.hbs UX: support for multiple datasets in one chart 2018-05-15 20:12:03 +02:00
conditional-loading-spinner.hbs Replace deprecated render(buffer) with a custom buffered renderer 2016-10-25 14:00:21 -04:00
cook-text.hbs REFACTOR: Use component for cook-text to improve async workflow 2017-06-29 12:14:27 -04:00
create-topic-button.hbs UX: Require an extra click to open topic draft 2018-04-17 14:45:18 +10:00
create-topics-notice.hbs FEATURE: the notice asking admins to get discussion started will update with live counts of topics and posts 2015-08-27 17:28:40 -04:00
csv-uploader.hbs FEATURE: Support backup uploads/downloads directly to/from S3. 2018-10-15 09:43:31 +08:00
custom-html-container.hbs Enable newer version of Ember 2016-11-25 10:09:58 -05:00
d-button.hbs Refactor flagged posts into components 2017-09-25 12:25:14 -04:00
d-editor-modal.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
d-editor.hbs FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
d-modal-cancel.hbs Extract out common "cancel" link functionality from modals 2017-09-25 12:25:15 -04:00
d-modal.hbs [WIP] FEATURE: merge share and invite actions together (#7021) 2019-02-20 15:42:44 +01:00
d-navigation.hbs UX: Don't concatenate title on "Edit Category" dialog 2019-03-05 14:42:41 +01:00
date-picker.hbs FIX: Populate the Email Digest preview with the current username 2017-06-28 15:38:57 -04:00
desktop-notification-config.hbs DEV: fix some deprecated SVG icon refs 2019-01-22 14:42:00 -05:00
directory-item.hbs REFACTOR: remove AgeWord calls from serializers and do it in javascript 2017-11-17 17:53:30 -05:00
disabled-icon.hbs Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
discourse-banner.hbs REFACTOR: Replace some fa-* uses with helpers 2017-07-27 14:55:41 -04:00
discourse-linked-text.hbs UX: The "enable 2FA" string was hard to translate 2018-05-29 16:25:43 +02:00
discourse-tag-bound.hbs FEATURE: Merge tagging plugin into core 2016-04-27 11:58:53 -04:00
edit-category-general.hbs FIX: Fixed edit category description redirecting without saving (#7192) 2019-03-18 16:14:17 +01:00
edit-category-images.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
edit-category-panel.hbs Can add topic templates to categories, prepopulated on compose 2015-07-03 10:01:46 -04:00
edit-category-security.hbs UX: Make Uncategorized category less confusing 2019-03-05 14:42:41 +01:00
edit-category-settings.hbs FEATURE: Category Reviewable by Group 2019-04-30 15:23:06 -04:00
edit-category-tab.hbs Target active nav pill with single style 2019-03-07 13:21:42 -05:00
edit-category-tags.hbs FEATURE: ability to restrict some tags to a category while allowing all others 2019-04-04 16:40:15 -04:00
edit-category-topic-template.hbs FEATURE: New markdown editor re-written in Ember 2015-10-19 11:01:20 -04:00
edit-topic-timer-form.hbs UX: use future date input instead of date picker on feature topic modal (#6096) 2018-07-18 23:27:12 +02:00
emoji-picker.hbs minor changes to emoji-picker 2017-09-15 16:03:28 +02:00
emoji-uploader.hbs DEV: refactoring emoji-uploader (#6926) 2019-01-22 16:44:40 +01:00
expand-post.hbs UX: Allow collapsing of group posts after they've been expanded 2017-11-08 16:34:57 -05:00
featured-topic.hbs FIX: Show solved status on category with featured topics view too 2017-04-19 00:54:13 -03:00
flag-action-type.hbs UX: More flag modal improvements. Remove !important class 2017-10-17 11:37:30 -04:00
flag-selection.hbs Migrate flag modal to use components 2016-11-14 16:50:46 -05:00
flat-button.hbs Rename {{fa-icon}} to {{d-icon}} so it can be more generic 2017-07-27 14:55:41 -04:00
footer-message.hbs Refactor footer message to use a component 2017-08-13 16:06:26 -04:00
future-date-input.hbs FEATURE: Introduce ignore duration selection (#7266) 2019-03-29 10:14:53 +00:00
generated-invite-link.hbs Migrate invite view to components, remove HTML from translations 2016-11-14 16:00:40 -05:00
google-search.hbs FEATURE: if full search returns no results, show google search form 2017-08-15 16:46:41 -04:00
group-activity-filter.hbs FEATURE: Support filtering of groups page by category if in url 2017-10-31 17:50:06 -04:00
group-card-contents.hbs FIX: reverts href removal from user/group cards links (#7318) 2019-04-03 19:16:48 +02:00
group-flair-inputs.hbs Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
group-manage-logs-filter.hbs UX: Reducing usage of btn-small, simplifying styles 2019-01-11 19:41:09 -05:00
group-manage-logs-row.hbs UX: Reducing usage of btn-small, simplifying styles 2019-01-11 19:41:09 -05:00
group-manage-save-button.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
group-member.hbs Rename {{fa-icon}} to {{d-icon}} so it can be more generic 2017-07-27 14:55:41 -04:00
group-members-input.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
group-membership-button.hbs UX: new layout for groups page, allow changes to automatic group bio (#7350) 2019-04-17 22:44:30 -04:00
group-navigation.hbs UX: Tweaks to group pages. 2018-03-29 17:04:48 +08:00
group-post.hbs Using user page layout/styles for groups where possible 2018-05-03 15:13:59 -04:00
group-selector.hbs FEATURE: Webhooks. 2016-09-05 18:44:00 +08:00
groups-form-interaction-fields.hbs UX: Split up group form into smaller sections. 2018-04-09 15:14:50 +08:00
groups-form-membership-fields.hbs Minor UX tweaks to group pages. 2018-04-13 10:10:42 +08:00
groups-form-profile-fields.hbs UX: new layout for groups page, allow changes to automatic group bio (#7350) 2019-04-17 22:44:30 -04:00
groups-info.hbs UX: new layout for groups page, allow changes to automatic group bio (#7350) 2019-04-17 22:44:30 -04:00
ignored-user-list-item.hbs FEATURE: Ignoring users from the preferences page in a cleaner way (#7289) 2019-04-25 09:26:49 +01:00
ignored-user-list.hbs FEATURE: Ignoring users from the preferences page in a cleaner way (#7289) 2019-04-25 09:26:49 +01:00
image-uploader.hbs FEATURE: Automatically generate optimized site metadata icons (#7372) 2019-05-01 14:44:45 +01:00
images-uploader.hbs icons deprecations fixes (#6920) 2019-01-22 12:02:02 +01:00
invite-panel.hbs FIX: s/isMessage/isPM (#7048) 2019-02-21 13:53:50 +01:00
ip-lookup.hbs DEV: refactoring ip-lookup (#6923) 2019-01-22 15:09:04 +01:00
latest-topic-list-item.hbs Convert latest-topic-list to components and remove nested tables 2017-08-13 12:45:26 -04:00
link-to-input.hbs FIX: focusing input displayed after clicking on a link more reliable 2018-06-13 10:31:46 +02:00
login-buttons.hbs FEATURE: Allow auth providers to define specific icons 2019-03-27 13:25:04 +00:00
mobile-category-topic.hbs FIX: Show topic status on category view 2017-04-19 00:41:07 -03:00
mobile-nav.hbs UX: initial take at collapsing mobile nav on user page 2016-02-12 17:51:26 +11:00
modal-footer-close.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
modal-panel.hbs [WIP] FEATURE: merge share and invite actions together (#7021) 2019-02-20 15:42:44 +01:00
modal-tab.hbs [WIP] FEATURE: merge share and invite actions together (#7021) 2019-02-20 15:42:44 +01:00
nav-item.hbs FEATURE: Allow users to customize bonuses for reviewable types 2019-04-03 11:18:34 -04:00
navigation-bar.hbs Support appending a category id to a navigation item dynamically 2017-10-31 15:42:12 -04:00
notification-consent-banner.hbs Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
plugin-outlet.hbs Reapply Ember 2.10 for good this time! 2016-12-19 11:19:10 -05:00
popup-menu.hbs FEATURE: Add staff gear icon to composer with options 2015-09-15 16:42:04 -04:00
preference-checkbox.hbs FEATURE: More granular mailing list mode (#4068) 2016-05-21 15:17:54 +02:00
quote-button.hbs Convert quote button to use d-icon 2017-10-06 15:45:43 -04:00
related-messages.hbs FEATURE: additional "related messages" section 2018-11-12 13:04:42 +11:00
reviewable-bundled-action.hbs FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
reviewable-conversation-post.hbs UX: Don't show the username of the first user in the conversation 2019-04-08 16:39:53 -04:00
reviewable-created-by-name.hbs UX: Better display for deleted users in the review queue 2019-03-29 16:52:58 -04:00
reviewable-created-by.hbs s/fa-icon/d-icon (#7337) 2019-04-08 15:51:38 +02:00
reviewable-field-category.hbs FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
reviewable-field-editor.hbs FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
reviewable-field-tags.hbs FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
reviewable-field-text.hbs FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
reviewable-field-textarea.hbs FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
reviewable-flagged-post.hbs FIX: Show when a post has been deleted in the flag review queue 2019-04-17 16:14:36 -04:00
reviewable-histories.hbs UX: Reviewable layout improvements 2019-04-02 13:51:03 -04:00
reviewable-item.hbs UX: When editing a reviewable, show created_by 2019-04-15 15:11:34 -04:00
reviewable-queued-post.hbs UX: Show tags on flags too 2019-04-05 14:22:45 -04:00
reviewable-score.hbs UX: Add a description for scores 2019-04-15 14:21:25 -04:00
reviewable-score.js.es6 FIX: Broken tests 2019-04-09 08:33:10 -04:00
reviewable-scores.hbs UX: Simplify merged reviewable table 2019-04-10 13:22:28 -04:00
reviewable-tags.hbs UX: Show tags on flags too 2019-04-05 14:22:45 -04:00
reviewable-topic-link.hbs Show link to the original topic when it was deleted (#7319) 2019-04-10 11:25:45 +02:00
reviewable-user.hbs UX: Show user fields when reviewing a user 2019-04-04 14:45:40 -04:00
search-advanced-options.hbs correct failing test 2018-05-24 13:02:20 +10:00
second-factor-form.hbs FIX: make it possible to use backup code everywhere where 2FA required (#7010) 2019-02-27 10:37:33 +01:00
second-factor-input.hbs FEATURE: Second factor backup 2018-06-28 10:12:32 +02:00
share-panel.hbs UX: puts more emphasis on the shared url on share panel (#7055) 2019-02-22 23:22:11 +01:00
share-popup.hbs FIX: brings back [+ New Topic] btn from share-popup post action (#7182) 2019-03-18 07:30:10 +01:00
share-source.hbs REFACTOR: Replace some fa-* uses with helpers 2017-07-27 14:55:41 -04:00
shared-draft-controls.hbs Update the destination category id when a user changes it 2018-03-23 11:12:56 -04:00
signup-cta.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
suggested-topics.hbs FEATURE: additional "related messages" section 2018-11-12 13:04:42 +11:00
tag-drop-link.hbs Replace deprecated render(buffer) with a custom buffered renderer 2016-10-25 14:00:21 -04:00
tag-list.hbs UX: show envelope when tag is only used in PM 2019-02-12 11:34:25 +01:00
text-overflow.hbs Replace deprecated render(buffer) with a custom buffered renderer 2016-10-25 14:00:21 -04:00
top-period-buttons.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
topic-category.hbs FEATURE: Shared Drafts 2018-03-20 17:15:26 -04:00
topic-entrance.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
topic-footer-buttons.hbs FEATURE: adds an API to register topic footer buttons 2019-02-07 14:43:33 +01:00
topic-list.hbs FIX: restores skipHeader computed property 2019-04-26 23:43:49 +02:00
topic-navigation.hbs UX: Hide the timeline when the composer is open 2016-06-01 14:42:00 -04:00
topic-progress.hbs DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
topic-title.hbs UX: Allow CTRL+ENTER to save topic title edits 2017-07-04 14:23:57 -04:00
track-selected.hbs FEATURE: bulk select on search results 2015-08-27 11:44:13 +10:00
user-badge.hbs FEATURE: you can not drill down and see why you have badges 2016-01-18 17:59:20 +11:00
user-card-contents.hbs UX: Changed post stream placeholder to animation (#7434) 2019-04-26 17:29:48 +01:00
user-flag-percentage.hbs FIX: Missing translations for agree/disagree details 2019-03-29 14:14:59 -04:00
user-info.hbs FEATURE: show avatar flair on group, badges and directory pages (#6732) 2018-12-06 12:18:52 +01:00
user-profile-avatar.hbs REFACTOR: new 'show-avatar-select' app event to trigger the avatar selector modal 2018-07-25 12:38:15 +02:00
user-stat.hbs FIX: time read on users directory was not rendering correctly on mobile 2018-01-29 13:31:18 -05:00
user-stream-item.hbs icons deprecations fixes (#6920) 2019-01-22 12:02:02 +01:00
user-stream.hbs FEATURE: Drafts view in user profile 2018-08-01 16:34:54 +10:00
user-summary-category-search.hbs add links to Top Categories on user summary page 2018-07-22 22:00:41 -04:00
user-summary-section.hbs Refactor user summary page to use more components 2017-10-13 16:05:40 -04:00
user-summary-topic.hbs Refactor user summary page to use more components 2017-10-13 16:05:40 -04:00
user-summary-topics-list.hbs Refactor user summary page to use more components 2017-10-13 16:05:40 -04:00
user-summary-user.hbs Refactor user summary page to use more components 2017-10-13 16:05:40 -04:00
user-summary-users-list.hbs Refactor user summary page to use more components 2017-10-13 16:05:40 -04:00