Unit/System Tests NPM Resource Changed PR-5.2-dev Pending

User tests: Successful: 0 Unsuccessful: 0

avatar 3idey
3idey
19 Mar 2025

Summary

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

  1. Open Joomla Media Manager.
  2. Try renaming a file to an invalid name (e.g., same name as an existing file).
  3. You should see an error notification instead of the app crashing.

Checklist

  • Code follows Joomla's coding standards.
  • Fix does not introduce new bugs.
  • Properly tested within Joomla.
avatar 3idey 3idey - open - 19 Mar 2025
avatar 3idey 3idey - change - 19 Mar 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Mar 2025
Category JavaScript Administration com_media NPM Change
avatar 3idey 3idey - change - 19 Mar 2025
Labels Added: NPM Resource Changed PR-5.2-dev
avatar 3idey 3idey - change - 19 Mar 2025
The description was changed
avatar 3idey 3idey - edited - 19 Mar 2025
avatar 3idey 3idey - change - 19 Mar 2025
The description was changed
avatar 3idey 3idey - edited - 19 Mar 2025
avatar 3idey 3idey - change - 19 Mar 2025
The description was changed
avatar 3idey 3idey - edited - 19 Mar 2025
avatar 3idey 3idey - change - 19 Mar 2025
The description was changed
avatar 3idey 3idey - edited - 19 Mar 2025
avatar 3idey 3idey - change - 19 Mar 2025
The description was changed
avatar 3idey 3idey - edited - 19 Mar 2025
avatar 3idey 3idey - change - 19 Mar 2025
The description was changed
avatar 3idey 3idey - edited - 19 Mar 2025
avatar 3idey 3idey - change - 19 Mar 2025
The description was changed
avatar 3idey 3idey - edited - 19 Mar 2025
avatar joomla-cms-bot joomla-cms-bot - change - 19 Mar 2025
Category JavaScript Administration com_media NPM Change Unit Tests JavaScript Administration com_media NPM Change
avatar 3idey 3idey - change - 19 Mar 2025
Labels Added: Unit/System Tests
avatar 3idey 3idey - change - 19 Mar 2025
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2025-03-19 17:52:16
Closed_By 3idey
avatar 3idey 3idey - close - 19 Mar 2025
avatar 3idey 3idey - change - 19 Mar 2025
The description was changed
avatar 3idey 3idey - edited - 19 Mar 2025

Add a Comment

Login with GitHub to post a comment