Skip to content

Comments

fix(file-dropzone): heavy refactor and fixes#313

Closed
artur-langl wants to merge 3 commits intoTEDI-Design-System:rcfrom
artur-langl:fix/file-dropzone
Closed

fix(file-dropzone): heavy refactor and fixes#313
artur-langl wants to merge 3 commits intoTEDI-Design-System:rcfrom
artur-langl:fix/file-dropzone

Conversation

@artur-langl
Copy link
Contributor

@artur-langl artur-langl commented Jan 30, 2026

heavy refactor of validation into normal angular validators, and fix issue with the file item card elements classes's being overriden

https://artur-langl.github.io/angular/fix/file-dropzone/?path=/docs/community-form-filedropzone--docs

@codecov
Copy link

codecov bot commented Jan 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

): FileDropzoneError | undefined {
translate: (key: string, ...args: unknown[]) => string,
): DropzoneValidatorError | null => {
if (maxSize && file.size > maxSize) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could check if maxSize 0/unlimited in validateFileSize even before sanitizing fileList to avoid unnecessary iterations/type checkings

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

@artur-langl
Copy link
Contributor Author

realized i didn't port over validateIndividually functionality yet

@artur-langl artur-langl marked this pull request as draft January 30, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants