feat(file-upload,file-dropzone): rename reject prop and switch max size to bytes #889 - #949
Conversation
…ze to bytes #889 BREAKING CHANGE: validateIndividually renamed to keepRejectedFiles; maxSize is now in bytes.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Repository: TEDI-Design-System/react/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: TEDI-Design-System/react/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (9)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughFile upload size limits now use bytes. The ChangesFile upload behavior
TableOfContents manifest
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~12 minutes Change: Feature Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change renames a prop and switches the size unit to bytes, with the tests, stories and docs updated to match. No concrete merge-blocking risk was found. Because this is a breaking public API change, mention it in the release notes. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
♿ Accessibility — ✅ no blocking violationsNo accessibility violations in the components changed by this PR.
|
| Component | Rules | Stories |
|---|---|---|
| TEDI-Ready/Components/Buttons/ButtonGroup | unknown |
1 |
| TEDI-Ready/Components/Navigation/Tabs | unknown |
1 |
Stories
- TEDI-Ready/Components/Buttons/ButtonGroup — Stretched
- TEDI-Ready/Components/Navigation/Tabs — With Sub Tabs
| multiple?: boolean; | ||
| /** | ||
| * If true, each file is validated separately instead of rejecting all at once. | ||
| * Only applies when `multiple` is set. When `true`, files that fail validation (wrong type |

BREAKING CHANGE: validateIndividually renamed to keepRejectedFiles; maxSize is now in bytes.
Summary by CodeRabbit
keepRejectedFilescan retain rejected files in the list with an invalid state. When disabled, only valid files are added.