Skip to content

fix(ui): resolve bulk upload lint issues and refactor saveAllDocs#15602

Open
calaespi wants to merge 2 commits intopayloadcms:mainfrom
calaespi:fix/bulk-upload-lint-issues
Open

fix(ui): resolve bulk upload lint issues and refactor saveAllDocs#15602
calaespi wants to merge 2 commits intopayloadcms:mainfrom
calaespi:fix/bulk-upload-lint-issues

Conversation

@calaespi
Copy link
Copy Markdown

This PR addresses several linting issues and code smells in the BulkUpload component.

Changes:

  • Accessibility: Removed invalid aria-hidden attribute and added aria-label to the hidden file input in AddFilesView.
  • Refactoring: Extracted uploadForm helper function from saveAllDocs in FormsManager to reduce Cognitive Complexity.
  • Code Quality: Fixed exception handling to use optional catch binding (catch {}) instead of unused variables.
  • Performance: Memoized the Context value in FormsManager to prevent unnecessary re-renders.
  • Cleanup: Removed redundant code and unnecessary dependencies in useCallback hooks.

These changes improve code maintainability, accessibility, and performance without altering the core functionality.

@JarrodMFlesch JarrodMFlesch self-assigned this Feb 12, 2026
@JarrodMFlesch JarrodMFlesch added the area: ui Related to the admin panel. label Feb 12, 2026
@denolfe denolfe added the v3 label Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ui Related to the admin panel. v3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants