[WC-3460]: FileUploader pre-release QA & decision review#2269
Conversation
…rning on invalid-format drop
75a2ada to
3f56f19
Compare
AI Code Review
What was reviewed
Skipped (out of scope): CI checks could not be fetched in this environment — no failures observed locally. Findings
|
Pull request type
Bug fix (non-breaking change which fixes an issue)
Description
Pre-release QA and decision review for file-uploader-web covering changes introduced by WC-3361 (upload queue, concurrent upload limit, total file limit feedback, retry for over-limit files, list ordering) and WC-3363 (dismiss for invalid-format rejections, yellow warning lifecycle).
Two bugs found and fixed:
sortedFileswas only pushingvalidationErrorentries to the end of the list;rejected(over-limit) files were sorting alongside successful uploads. Fixed to push bothvalidationErrorandrejectedbelow all other entries.hasValidationErrorscomputed intoFileUploaderRootwarningMessage logic — banner appears whenvalidationErrorfiles are present and clears when all are dismissed.What should be covered while testing?
File limit feedback
maxFilesPerUpload = 3. Drop 3 files → dropzone greys out + "Maximum file count of 3 reached." message appearsmaxFilesPerUpload = 0or leave empty → dropzone never disables, no message ever shownUpload queue
maxFilesPerBatch = 2. Drop 5 files → exactly 2 show "Uploading…", remaining 3 show "Waiting…" with no progress barmaxFilesPerBatchempty → all dropped files start uploading simultaneouslyRetry for over-limit rejections
maxFilesPerUpload = 2. Drop 4 files → 2 upload, 2 appear as rejected with retry button greyed outDismiss for invalid-format rejections
List ordering
Regression checks
readOnlyMode = true→ dropzone is not rendered, no errorsuploadModeto images → queue, limit, and dismiss behavior works identically to files mode