-
-
Notifications
You must be signed in to change notification settings - Fork 531
Enhancement: Outline icons for unpublished and deleted resources in tree #16760
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
Conversation
…s#16465 This PR reverts modxcms#14832 and implements improved color contrast and icon styling to resolve the usability issue described in modxcms#16465. - Restores the previous SCSS files removed in modxcms#14832 - Adjusts color variables for better contrast and clarity - Aligns MODX 3 tree display with MODX 2 behavior for hidden/unpublished resources Fixes modxcms#16465. Requires asset build to see changes.
|
@opengeek I realized I had accidentally merged the compiled css. What's the correct way to resolve that on my end. |
|
@opengeek should that stuff not all be omitted in the .gitignore? |
|
@jaygilmore you'll need to remove the compiled css files from your commit above. They cannot be omitted through .gitignore as they have to be included in the repository. They just cannot be committed with your PR as those compiled resources always have to be pushed to the main branches after being compiled when they are accepted and merged. |
|
@jaygilmore - I think for consistency of the design pattern I'd make Published & Hidden gray as you had it before. Also, consider keeping the Deleted icon filled. I get why you chose the outline, but I think it's a special-case state and the filled icon makes those items more highly visible. |
|
@jaygilmore Hi! Another comment on the PR for tree design - we need to remember about the resource group settings tree, so that the styles are consistent. |
|
I wouldn't say this PR isn't useful, it just needs to take template icon customization into account. @Ruslan-Aleev - good catch on that. I do wonder though how many users are assigning custom template icons; I haven't so far in my projects. Nonetheless, that needs to be factored in. One way of doing this could be to allow two classes or sets of classes separated by some delimiter (probably a comma) to be specified if a user wants to follow the filled/outlined pattern being proposed. If the user only assigns one icon class/set of classes, then both resource states would use the same icon. |
I have it differently, no matter how many sites I've come across, almost all of them have icons in the template =)
Is it worth it? There is no problem with the publication status now, it is mixed up, in my opinion, see #16759, but icons will not fix this. |
Can this be done here in github or do I need to do some magic in my repo and then resubmit the PR? This is outside of my normal area of expertise. |
|
@smg6511 that's a fair point on the deleted icon. That was a request of @rthrash as was this entire PR. He may have some further thougts here. @Ruslan-Aleev @Ruslan-Aleev, no offense taken. However, this should be compatible with any of the available Font Awesome icons, as the way it's accomplished in the CSS is that the outline versions of the icons are displayed when the Let me know if I'm misunderstanding. :) |
There's no simple way to do this once you add these files to the commit. You'll have to do an interactive rebase and remove the changes to the compiled files from the commit. I'm not sure the exact steps to do that off the top of my head. I would do it for you, but that would invalidate your local branch since I would be rewriting the history of it. |
The thought was simple: keep the site at-a-glance clear on what's actually published, which is far and above what typically shows in most MODX sites to non-authenticated visitors and to aid in findability. |
6f60def to
0107480
Compare
- Updated tree icon styles: - Published resources use the standard dark icon color - Unpublished and deleted resources use an outlined icon style - Helps further distinguish resource states at a glance in the tree
0107480 to
f78833f
Compare
I think I've resolved it correctly at this time. From that regard, please let me know if there's still anything needed to change for the PR to be technically valid. |
|
@Mark-H is this anything you have concerns about? @smg6511 and @Ruslan-Aleev what are your thoughts on this as it relates to my further comments on the handling and fallback for custom template icons. |
|
Closing in favour of #16761 |


What does it do?
This PR updates the resource tree icons to make unpublished and deleted resources easier to distinguish at a glance:
The outlined style visually separates them from published items without relying solely on color or status labels.
It factors in @rthrash's comments here: #16465 (comment)
Screenshot
Why is it needed?
This is a potential enhancement to the visual updates introduced in #16759. While that PR introduced more consistent icon styling, this change improves visual clarity by making unpublished and deleted resources more visually distinct. It helps users quickly spot content that isn't live.
How to test
Related issue(s)/PR(s)