-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
Big trash refactor #16600
Big trash refactor #16600
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 3.x #16600 +/- ##
============================================
- Coverage 21.57% 21.55% -0.03%
- Complexity 10599 10600 +1
============================================
Files 561 561
Lines 32095 32107 +12
============================================
- Hits 6926 6922 -4
- Misses 25169 25185 +16 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you!
The only thing that's missing is an update script to add the new menu during upgrade.
@GulomovCreative do you think you’ll have time to get the update script for adding the new menu during an upgrade done? |
@rthrash Can I see some examples? I don't know how it works |
@GulomovCreative here are current upgrade scripts https://github.com/modxcms/revolution/blob/3.x/setup/includes/upgrades/mysql/3.1.0-pl.php you can check those or older ones for samples |
Added the upgrade script & adjusted the lexicon for context menu in the tree |
6291907
to
b439be0
Compare
@opengeek rebased to 3.x |
b439be0
to
1820b1c
Compare
### What does it do? 1. Adds new "Trash" menu item to the top menu 2. Fixes modxcms#14190 3. Fixes trash button icon color change when its inactive 4. Removes unnecessary styles 5. Adds a purge button to the edit resource page 6. The resource tree and trash button state are now updates when a resource is deleted/undeleted on the resource update page 7. Fixes trash button tooltip information when purging resources on the trash page 8. Now when a resource have been delete/undelete in the resource tree, the state of the resource update form (checkbox and buttons) updates 9. Fixes undefined text of the trash button tooltip 10. Adds purge resource menu item to the context menu in the resource tree ### Why is it needed? There are many errors when deleting/restoring/purging resources ### How to test 1. — 2. Click by the middle mouse button on the trash button on the toolbar 3. Hover over the trash button when its inactive, before the icon changed color, now when inactive it does not 4. — 5. Open the edit resource page, delete it and you will see a new purging button 6. If you delete or restore a resource on the edit page, the resource tree and the trash button in the toolbar remain unchanged. Now the resource tree and the trash button will change their state 7. On the trash page when purging resources, the state of the trash button in the toolbar was not updated, now it will be 8. Create a resource, open its edit page and delete the resource **in the resource tree**, the state of the checkbox and buttons in the edit form will not change. Now everything works as it should. 9. If you delete a resource and when you hover the trash button, it will be undefined in the tooltip. Now the information will be correct 10. Open the context menu of resource tree, delete the resource and open again ### Related issue(s)/PR(s) modxcms#14190 --------- Co-authored-by: Jan Peca <pecajan@gmail.com> Co-authored-by: Jason Coward <jason@opengeek.com>
What does it do?
Why is it needed?
There are many errors when deleting/restoring/purging resources
How to test
Related issue(s)/PR(s)
#14190