This PR improves error handling in renameItem() in the Joomla Media Manager. It replaces raw error throws with Joomla notifications, ensuring better user feedback and using Joomla's Notification System Instead of Throwing Errors
Note
My changes only affect JavaScript files (Notifications.es6.js & actions.es6.js). The PHPStan errors are unrelated.
AppVeyor is failing, but my PR only changes JavaScript files. The failure seems unrelated (if there is any issue that i can't see, please tell me what to do ).
Changes Made
Updated renameItem() to use notifications.error() instead of throw new Error(error);
Ensured that errors are properly logged in Joomla’s notification system.
Improve File Exists Handling (Duplicate Files).
Testing Instructions
Open Joomla Media Manager.
Try renaming a file to an invalid name (e.g., same name as an existing file).
You should see an error notification instead of the app crashing.