discourse/test/javascripts/acceptance
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
..
about-test.js.es6 DEV: migrate acceptance tests to async await - admin, about, account created (#6111) 2018-07-19 17:35:10 +08:00
account-created-test.js.es6 DEV: migrate acceptance tests to async await - admin, about, account created (#6111) 2018-07-19 17:35:10 +08:00
admin-emails-test.js.es6 DEV: Apply code review. 2018-12-05 21:56:18 +01:00
admin-search-log-term-test.js.es6 Follow up to 8c2fa99f78. 2019-03-29 10:39:44 +08:00
admin-search-logs-test.js.es6 Follow up to 8c2fa99f78. 2019-03-29 10:39:44 +08:00
admin-site-settings-test.js.es6 FEATURE: Automatically generate optimized site metadata icons (#7372) 2019-05-01 14:44:45 +01:00
admin-site-text-test.js.es6 FEATURE: Locale support for seeded categories and topics (#7110) 2019-03-18 21:09:13 +01:00
admin-suspend-user-test.js.es6 DEV: migrate tests to async/await 2018-07-30 12:21:05 +02:00
admin-user-emails-test.js.es6 Make prettier happy. 2018-07-16 11:31:23 +08:00
admin-user-index-test.js.es6 FIX: Clear unsaved groups when switching user (#7236) 2019-03-22 12:46:36 +01:00
admin-users-list-test.js.es6 fix tests (#7234) 2019-03-21 13:16:55 +01:00
admin-watched-words-test.js.es6 DEV: removes _.each from codebase (#6629) 2018-11-20 14:46:58 +01:00
auth-complete-test.js.es6 FIX: Fix registration dialog popup for 'full screen' social logins 2019-01-12 12:08:13 +00:00
badges-test.js.es6 DEV: migrate acceptance tests to async await - badges, category, composer, customHTML 2018-07-19 13:52:48 +02:00
category-chooser-test.js.es6 DEV: use Qunit.skip to skip a test 2019-03-22 10:09:11 +11:00
category-edit-security-test.js.es6 DEV: migrate tests to async/await 2018-07-30 12:21:05 +02:00
category-edit-test.js.es6 Revert "UX: Don't reload page after saving settings when editing category." 2019-03-22 13:10:30 +08:00
category-hashtag-test.js.es6 DEV: migrate acceptance tests to async await - badges, category, composer, customHTML 2018-07-19 13:52:48 +02:00
composer-actions-test.js.es6 FIX: Fixed changing composer mode escaping title (#7191) 2019-03-25 13:14:26 +05:30
composer-edit-conflict-test.js.es6 UX: Changed error draft status to icon (#7369) 2019-04-19 09:18:01 +02:00
composer-onebox-test.js.es6 FEATURE: Reimplement SiteSetting.max_oneboxes_per_post. (#6668) 2018-11-27 16:00:31 +08:00
composer-test.js.es6 FIX: Fixed uploadPlaceholder regex failing on not escaped characters (#7442) 2019-04-29 12:32:48 +10:00
composer-topic-links-test.js.es6 DEV: migrate acceptance tests to async await - badges, category, composer, customHTML 2018-07-19 13:52:48 +02:00
composer-uncategorized-test.js.es6 FEATURE: Check if draft exists before starting a new one (#6755) 2018-12-12 10:21:51 +01:00
create-account-user-fields-test.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
custom-html-set-test.js.es6 DEV: migrate acceptance tests to async await - badges, category, composer, customHTML 2018-07-19 13:52:48 +02:00
custom-html-template-test.js.es6 DEV: migrate acceptance tests to async await - badges, category, composer, customHTML 2018-07-19 13:52:48 +02:00
dashboard-test.js.es6 FEATURE: initial implementation of generic filters for reports 2019-04-26 12:17:10 +02:00
email-notice-test.js.es6 DEV: Correct email disabled banner tests 2019-03-18 17:06:29 +00:00
emoji-picker-test.js.es6 fix emoji tests (#7181) 2019-03-15 17:15:36 +01:00
emoji-test.js.es6 FIX: Outsourced erb part from emoji.js.es6 (#7168) 2019-03-15 15:44:49 +11:00
enforce-second-factor-test.js.es6 FEATURE: Enforce two-factor authentication. (#6348) 2019-03-15 13:09:37 +02:00
forgot-password-test.js.es6 DEV: migrate acceptance tests to async/await 2018-07-26 12:51:16 +02:00
group-card-mobile-test.js.es6 FEATURE: user and group cards on mobile (#7246) 2019-03-25 13:37:17 +01:00
group-card-test.js.es6 FEATURE: user and group cards on mobile (#7246) 2019-03-25 13:37:17 +01:00
group-index-test.js.es6 UX: Default user facing routes to /g instead of /groups. (#7042) 2019-02-21 13:44:25 +08:00
group-manage-interaction-test.js.es6 UX: Default user facing routes to /g instead of /groups. (#7042) 2019-02-21 13:44:25 +08:00
group-manage-logs-test.js.es6 UX: Default user facing routes to /g instead of /groups. (#7042) 2019-02-21 13:44:25 +08:00
group-manage-membership-test.js.es6 UX: Default user facing routes to /g instead of /groups. (#7042) 2019-02-21 13:44:25 +08:00
group-manage-profile-test.js.es6 UX: Default user facing routes to /g instead of /groups. (#7042) 2019-02-21 13:44:25 +08:00
group-requests-test.js.es6 FEATURE: Add page for all group membership requests. (#6909) 2019-03-27 13:30:59 +02:00
group-test.js.es6 UX: Default user facing routes to /g instead of /groups. (#7042) 2019-02-21 13:44:25 +08:00
groups-index-test.js.es6 UX: new layout for groups page, allow changes to automatic group bio (#7350) 2019-04-17 22:44:30 -04:00
groups-new-test.js.es6 UX: Default user facing routes to /g instead of /groups. (#7042) 2019-02-21 13:44:25 +08:00
invite-accept-test.js.es6 DEV: migrate acceptance tests to async await - invite, login, mobile 2018-07-19 16:38:37 +02:00
invite-show-user-fields-test.js.es6 DEV: migrate acceptance tests to async await - invite, login, mobile 2018-07-19 16:38:37 +02:00
jump-to-test.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
keyboard-shortcuts-test.js.es6 DEV: Fix lint. 2019-02-06 23:55:05 +02:00
login-redirect-test.js.es6 DEV: Correct qunit test description 2018-12-10 15:44:05 +00:00
login-required-test.js.es6 DEV: migrate acceptance tests to async await - invite, login, mobile 2018-07-19 16:38:37 +02:00
login-with-email-and-hide-email-address-taken-test.js.es6 DEV: migrate acceptance tests to async/await 2018-07-26 12:51:16 +02:00
login-with-email-and-no-social-logins-test.js.es6 DEV: migrate acceptance tests to async/await 2018-07-26 12:51:16 +02:00
login-with-email-disabled-test.js.es6 DEV: migrate acceptance tests to async await - invite, login, mobile 2018-07-19 16:38:37 +02:00
login-with-email-test.js.es6 DEV: migrate acceptance tests to async/await 2018-07-26 12:51:16 +02:00
mobile-discovery-test.js.es6 DEV: migrate acceptance tests to async await - invite, login, mobile 2018-07-19 16:38:37 +02:00
mobile-sign-in-test.js.es6 DEV: migrate acceptance tests to async await - invite, login, mobile 2018-07-19 16:38:37 +02:00
mobile-users-test.js.es6 DEV: migrate acceptance tests to async await - invite, login, mobile 2018-07-19 16:38:37 +02:00
modal-test.js.es6 DEV: migrate acceptance tests to async await - invite, login, mobile 2018-07-19 16:38:37 +02:00
password-reset-test.js.es6 DEV: migrate acceptance tests to async/await 2018-07-26 12:51:16 +02:00
personal-message-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
plugin-outlet-connector-class-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
plugin-outlet-multi-template-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
plugin-outlet-single-template-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
preferences-test.js.es6 REFACTOR: More consistent user/group page layouts 2019-03-25 14:40:22 -04:00
raw-plugin-outlet-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
redirect-to-top-test.js.es6 FIX: Redirect users to top when latest is the homepage 2018-10-05 12:14:57 +01:00
reports-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
review-test.js.es6 FIX: Broken tests 2019-04-09 08:33:10 -04:00
search-full-test.js.es6 DEV: Mark flaky tests as pending until we fix them. (#7386) 2019-04-16 13:35:54 -03:00
search-mobile-test.js.es6 UX: Collapse advanced search on mobile when searching. 2019-03-29 08:59:02 +08:00
search-test.js.es6 FIX: Letters between words incorrectly highlighted within post. 2019-04-03 15:57:51 +08:00
share-and-invite-desktop-test.js.es6 UX: puts back share-panel as floating pane on post actions (#7066) 2019-02-26 14:15:25 +01:00
share-and-invite-mobile-test.js.es6 FIX: shows invite panel on mobile from topic footer buttons (#7080) 2019-02-28 14:56:22 +01:00
shared-drafts-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
sign-in-test.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
static-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
tag-groups-test.js.es6 FIX: Fix delete button for Tag Groups. (#6965) 2019-02-04 12:46:39 +01:00
tag-hashtag-test.js.es6 DEV: migrate acceptance tests to async/await 2018-07-26 12:51:16 +02:00
tags-intersection-test.js.es6 FIX: do not update tag name on /tags/intersection 2019-02-26 16:43:39 +05:30
tags-test.js.es6 FIX: Disable 'Create Topic' button if tag is staff-only. (#6984) 2019-03-12 19:23:36 +11:00
topic-anonymous-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
topic-discovery-test.js.es6 FIX: expandAllPinned was not resetting after visiting a category 2019-01-14 13:02:25 -05:00
topic-edit-timer-test.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
topic-footer-buttons-mobile-test.js.es6 FEATURE: adds an API to register topic footer buttons 2019-02-07 14:43:33 +01:00
topic-move-posts-test.js.es6 FEATURE: move posts to new/existing PM (#6802) 2018-12-31 17:17:22 +05:30
topic-notifications-button-test.js.es6 DEV: migrate tests to async/await 2018-07-30 12:21:05 +02:00
topic-test.js.es6 UX: Unified emoji escape regex 2019-03-29 12:17:11 -04:00
unknown-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
user-anonymous-test.js.es6 FIX: Fixed deleted posts layout (#7348) 2019-04-10 19:00:39 +02:00
user-card-mobile-test.js.es6 FEATURE: user and group cards on mobile (#7246) 2019-03-25 13:37:17 +01:00
user-card-test.js.es6 FEATURE: user and group cards on mobile (#7246) 2019-03-25 13:37:17 +01:00
user-drafts-stream-test.js.es6 Fix prettier offence 2019-01-28 22:47:11 -05:00
user-test.js.es6 Fix the build. 2019-01-16 16:34:48 +08:00
users-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00