Skip to content

feat(content-uploader): allow host app to reset upload items state#4617

Draft
olehrybak wants to merge 1 commit into
box:masterfrom
olehrybak:modernized-uploads-clear-state
Draft

feat(content-uploader): allow host app to reset upload items state#4617
olehrybak wants to merge 1 commit into
box:masterfrom
olehrybak:modernized-uploads-clear-state

Conversation

@olehrybak

@olehrybak olehrybak commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Currently the state of the upload items is reset internally in the ContentUploader by calling resetUploadsManagerItemsWhenUploadsComplete method with a timer. This PR allows to register resetUploadsManagerItemsWhenUploadsComplete as a callback that can be used in the host application using setClearItemsCallback and disables internal state reset for modernized uploader. This change ensures that the modernized uploads experience is more flexible and can be adjusted to the requirements in the host applications.

@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f6cf4752-5506-437b-9b96-adf881ade6bd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

1 participant