Skip to content

Conversation

@SuchitraSwain
Copy link
Contributor

  • Fix import notification showing 'Imported 0 items' when imports fail
  • Add new translation key for failed import messages
  • Update notification logic to prioritize error states over success
  • Add visual error styling for failed import notifications
  • Fix icon import file extensions from .js to .tsx

Fixes #2448

- Fix import notification showing 'Imported 0 items' when imports fail
- Add new translation key for failed import messages
- Update notification logic to prioritize error states over success
- Add visual error styling for failed import notifications
- Fix icon import file extensions from .js to .tsx

Fixes ipfs#2448
@SuchitraSwain SuchitraSwain requested a review from a team as a code owner October 19, 2025 11:48
@SuchitraSwain
Copy link
Contributor Author

@lidel please review this

lidel added 3 commits January 26, 2026 20:58
when importing via "Add by path" fails, display the actual error
message in the bottom drawer notification instead of just
"Failed to import 1 item"

- pass source path as init parameter in doFilesAddPath for error display
- add FailedImport component to render path and error message
- separate WRITE errors from ADD_BY_PATH errors in FileImportStatus
- add .catch() to prevent unhandled rejection crash
- add e2e test verifying error message is shown
- support IPNS paths and protocol URLs (ipfs://, ipns://) in import
- show import progress in notification for path imports
- preserve import history in drawer instead of clearing on new import
- notification styling reflects last operation (not cumulative errors)
- show errors first in drawer when last import failed
- fix icon alignment and add red tint for error items
- extract shared path validation to src/lib/ipfs-path.js
- increase e2e viewport to 1920x1080 for test stability
- add tests for import by path, trailing slash, error history
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. Pushed some additional changes:

  • fixes for both file upload and ipfs path import (as not all error paths were handled)
  • showing error from API, so user knows what exactly went wrong
  • resetting error state on success
  • IPNS and URI support in Import → From IPFS Path
  • e2e tests for all changes

Preview

Success followed by failure:

2026-01-27_00-06

failed import of incorrect DNSLink path:

2026-01-27_00-12

Success resets error state, but keeps historical failure:
2026-01-27_00-03

@lidel lidel merged commit 391470e into ipfs:main Jan 26, 2026
11 checks passed
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.

Import Notification Shows Success Even When Files Fail to Import

2 participants