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/tests/unit/lib
Martin Brennan b626373b31
FEATURE: First pass of using uppy in the composer (#13935)
Adds uppy upload functionality behind a
enable_experimental_composer_uploader site setting (default false,
and hidden).

When enabled this site setting will make the composer-editor-uppy
component be used within composer.hbs, which in turn points to
a ComposerUploadUppy mixin which overrides the relevant
functions from ComposerUpload. This uppy uploader has parity
with all the features of jQuery file uploader in the original
composer-editor, including:

progress tracking
error handling
number of files validation
pasting files
dragging and dropping files
updating upload placeholders
upload markdown resolvers
processing actions (the only one we have so far is the media optimization
worker by falco, this works)
cancelling uploads
For now all uploads still go via the /uploads.json endpoint, direct
S3 support will be added later.

Also included in this PR are some changes to the media optimization
service, to support uppy's different file data structures, and also
to make the promise tracking and resolving more robust. Currently
it uses the file name to track promises, we can switch to something
more unique later if needed.

Does not include custom upload handlers, that will come
in a later PR, it is a tricky problem to handle.

Also, this new functionality will not be used in encrypted PMs because
encrypted PM uploads rely on custom upload handlers.
2021-08-13 09:14:34 +10:00
..
allow-lister-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
bookmark-test.js FIX: flaky javascript tests with fake timers (#13235) 2021-06-11 13:51:27 +04:00
category-badge-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
click-track-edit-history-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
click-track-profile-page-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
click-track-test.js FIX: Some absolute links were causing full page reloads (#13377) 2021-06-15 12:30:36 +10:00
computed-test.js DEV: prettier 2.2.1 (#11862) 2021-01-27 12:39:20 +01:00
emoji-store-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
emoji-test.js DEV: Remove JoyPixels emoji option (#12197) 2021-02-26 07:44:52 -05:00
formatter-test.js DEV: prettier 2.2.1 (#11862) 2021-01-27 12:39:20 +01:00
get-url-test.js FIX: subfolder prefix should work even if url starts with the prefix (#12284) 2021-03-04 16:46:22 -05:00
highlight-search-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
i18n-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
icon-library-test.js FIX: Escape Font Awesome icons (#12421) 2021-03-17 16:11:40 +03:00
key-value-store-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
keyboard-shortcuts-test.js DEV: Add more keyboard shortcut acceptance tests (#13280) 2021-06-04 14:04:20 +10:00
link-lookup-test.js FIX: Normalize links by converting them to lower case 2020-12-11 11:16:51 -05:00
link-mentions-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
load-script-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
oneboxer-test.js FIX: Tests were broken in Firefox (#12456) 2021-03-22 11:35:51 +11:00
parse-bbcode-tag-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
preload-store-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
pretty-text-test.js FIX: Add word boundaries to replace and tag watched words (#13405) 2021-06-18 18:54:06 +03:00
sanitizer-test.js SECURITY: Sanitize d-popover attributes (#13958) 2021-08-05 16:39:17 +03:00
screen-track-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
search-test.js DEV: Add plugin API to extend search results (#12966) 2021-06-15 15:32:41 +10:00
sharing-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
text-direction-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
time-utils-test.js FEATURE: make date pickers in the bookmarks UI and topic timer UI consistent with all other pickers (#13365) 2021-06-15 16:54:00 +04:00
to-markdown-test.js FEATURE: support mark tag (#12088) 2021-02-15 21:47:30 +05:30
upload-short-url-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
uploads-test.js FEATURE: Initial implementation of direct S3 uploads with uppy and stubs (#13787) 2021-07-28 08:42:25 +10:00
uppy-checksum-plugin-test.js FEATURE: First pass of using uppy in the composer (#13935) 2021-08-13 09:14:34 +10:00
uppy-media-optimization-plugin-test.js FEATURE: First pass of using uppy in the composer (#13935) 2021-08-13 09:14:34 +10:00
url-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
user-search-test.js DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
utilities-test.js DEV: prettier 2.2.1 (#11862) 2021-01-27 12:39:20 +01:00