Skip to content

Feature/improve file limit warning 228#301

Open
stephenOwino wants to merge 3 commits intoDevinoSolutions:devfrom
stephenOwino:feature/improve-file-limit-warning-228
Open

Feature/improve file limit warning 228#301
stephenOwino wants to merge 3 commits intoDevinoSolutions:devfrom
stephenOwino:feature/improve-file-limit-warning-228

Conversation

@stephenOwino
Copy link

@stephenOwino stephenOwino commented Jan 30, 2026

Fixes #228

This PR improves the user experience when the file upload limit is exceeded by

  1. Enhancing the warning message to include specific file counts
  2. Adding a visible UI warning alert that appears automatically when the limit is exceeded

Changes Made

Added WarningAlert.tsx New component that displays warning messages
Modified useRootProvider.ts.

  1. Added warningMessage state and clearWarning function
  2. Enhanced warning message to show ( You selected X files. Only Y were added. Z files ignored.)
  3. Auto-dismiss warning when upload starts
  4. Modified RootContext.ts: Added warningMessage and clearWarning to context interface
  5. Modified MainBox.tsx: Integrated WarningAlert component to display warnings

Before
Extra files were silently ignored with no visible feedback to users

After
Users see a clear warning: eg."You selected 43 files. Only 10 were added. 33 files ignored." with the ability to dismiss it manually or automatically when upload begins.

image

@codesandbox
Copy link

codesandbox bot commented Jan 30, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@stephenOwino stephenOwino changed the base branch from master to dev January 30, 2026 15:22
@stephenOwino stephenOwino force-pushed the feature/improve-file-limit-warning-228 branch 2 times, most recently from bcef460 to eb1c786 Compare February 3, 2026 08:04
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.

i've managed to select more than 10 uploads just from local upload ( uploading files from my computer)

1 participant