-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
FEATURE: Improve User sorting behavior in user management backend module #4443
FEATURE: Improve User sorting behavior in user management backend module #4443
Conversation
Don't know if this is the right place to discuss this but if you already start to make the user area better sortable, maybe a sorting by role would be helpful too 👍 |
Hello Marco, Feel free to put this in a new issue 🙂 |
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.
@crydotsnake thx for this PR and looking at the video I have to ask:
- Is there any default sorting that could be made visible for the user? Naturally only if the property is displayed in the table.
- What do you think of indicating to the user that the table is sortable by not just relying on a hover effect?
- And as addition to my second question: Would you like this change to also include accessbility concerns? For example the link doesn't give an indication that it behaves like a button and is triggering a sorting of the table.
By default not. It gets only visible, when you click on the specific filter option in the table.
Tbh. I dont have an idea at the moment how this could be more visible for the user. The only thing i could imagine is, that when you hover over one of the links, you get like a hover title that says: "Sort by user" for example. What would you think about this?
Same as above. I'm a bit clueless at this point how it could be more improved for the user. But if you think it could still be improved, maybe we can have a catch up in slack too discuss this if you want :) Hope i understood all your questions as good as possible. |
Hm. I added a title so when you hover it says: "Sort by last login" for example. But for some reason the translation for sorting the name, is the same as for the last login date which i dont really understand. DemoCode<f:section name="headerLabel">
<f:if condition="{sortBy} === {sortingField}">
<f:then>
<f:if condition="{sortDirection} === 'ASC'">
<f:then>
<f:link.action title="{neos:backend.translate(source: 'Modules', id: 'users.sortBy.AccountsAndRoles')}" action="index" data="{neos-toggle: 'tooltip'}" arguments="{sortDirection: 'DESC', sortBy: sortingField}" addQueryString="TRUE">
<neos:backend.translate id="{labelIdentifier}" source="Modules" package="Neos.Neos"/>
<i class="fas fa-caret-up"></i>
</f:link.action>
</f:then>
<f:else>
<f:link.action title="{neos:backend.translate(source: 'Modules', id: 'users.sortBy.Name')}" action="index" data="{neos-toggle: 'tooltip'}" arguments="{sortDirection: 'ASC', sortBy: sortingField}" addQueryString="TRUE">
<neos:backend.translate id="{labelIdentifier}" source="Modules" package="Neos.Neos"/>
<i class="fas fa-caret-down"></i>
</f:link.action>
</f:else>
</f:if>
</f:then>
<f:else>
<f:link.action title="{neos:backend.translate(source: 'Modules', id: 'users.sortBy.LastLogin')}" action="index" data="{neos-toggle: 'tooltip'}" arguments="{sortBy: sortingField}" addQueryString="TRUE">
<neos:backend.translate id="{labelIdentifier}" source="Modules" package="Neos.Neos"/>
</f:link.action>
</f:else>
</f:if>
</f:section> What could cause this? |
Now i see why its not working 🤦🏽♂️ I will find another way too add this. |
Have you maybe an idea? @ahaeslich |
102a5cb
to
ce0671c
Compare
Will try to continue working on that.. |
ce0671c
to
4c38527
Compare
@crydotsnake Thanks for this PR. Could you please remove the german translations in this PR? Our translation workflow should be: add keys and defaults (EN) in XLIFF file and add translations afterwards with weblate. Weblate will create the corresponding xliff files for the languages. (See https://www.neos.io/de/community/participate/translating-neos.html) Rest looks fine for me. 👍 |
6d21c61
to
84eb02c
Compare
Done @dlubitz |
Thank you. But you need to remove all changes if the de/Modules.xlf. Sorry for the misleading statement.
|
…n german translation
54cd095
to
10b4754
Compare
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.
+1 by reading, thanks!
Neos.Neos/Resources/Private/Styles/Modules/Administration/_Users.scss
Outdated
Show resolved
Hide resolved
As unminifed stylesheets are always quite big, i would suggest to squash the previous both commits ;) So they dont appear in the history ^^ |
578ba24
to
53da818
Compare
…ehavior FEATURE: Improve User sorting behavior in user management backend module
…ehavior FEATURE: Improve User sorting behavior in user management backend module
…rt-behavior FEATURE: Improve User sorting behavior in user management backend module
…rt-behavior FEATURE: Improve User sorting behavior in user management backend module
Review instructions
Improves the behavior for the sorting functionality in the user management module. I got the inspiration from the redirects module and kinda liked how it is there.
Video
after.mov
Checklist
Tests have been created, run and adjusted as neededThe PR is created against the [lowest maintained branch](https://www.neos.io/features/release-roadmap.html)FEATURE|TASK|BUGFIX
!!!
and have upgrade-instructions