Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(content-explorer): add file selection validation callback #3842

Closed
wants to merge 4 commits into from

Conversation

devin-ai-integration[bot]
Copy link

Description

Add onSelection callback to ContentExplorer to allow developers to control or validate file selection before processing. This provides a way to prevent invalid selections based on custom criteria.

Changes

  • Added onSelection prop that takes a callback function
  • Callback receives selected items array and returns boolean
  • Integrated with all selection methods (click, double-click, select-all)
  • Added comprehensive test coverage
  • Maintained backward compatibility

Testing

  • Added unit tests for all selection methods
  • Verified existing functionality not affected
  • Tests passing: 9732 passed, 3 skipped

Link to Devin run: https://app.devin.ai/sessions/7d4bd4fe16a54373996b6398d5ff9b57

@devin-ai-integration devin-ai-integration bot requested a review from a team as a code owner January 13, 2025 22:32
Copy link
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link
Author

Closing due to inactivity.

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