-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Categorized tenants #10586
Categorized tenants #10586
Conversation
I just added a |
I don't see how we can have at the same time categories and pagination. Ex: try.orchardcore.net currently has hundreds of tenants. |
I add it to my TODO list, BWT the categories should not affect the sorting, filtering & pagination, the actual tenant should |
@agriffard there's a little weired behavior during pagination, some categories are divided across the pages, I presume this is because the current ordering. It would be nice to check this PR against try.orchardcore.net or send me a user credentials PM if it's possible Thanks |
Yeah I’m with @agriffard this will not work like this. it’s also completely unlike any ui we have. Suggest you look at the other search ui and make categories a filter in the controller. Workflows is as good example as any. the button to go beside the sort button and list the categories |
This is a good option, which may simplify listing the projects, I suggest to display the category a longside the name and add it as a filter. If this sounds looks good I will change the PR now |
I will do it like the category types in content items page |
src/OrchardCore/OrchardCore.Abstractions/Shell/ShellSettings.cs
Outdated
Show resolved
Hide resolved
I don't like Categories (if we do it), should be optional. And equally don't show the filter if there are no categories. |
So, how can we list the tenants that they don't have category?
+1 |
you would have an All. It would be the default. We would never have a filter that forces people to put things into categories. |
No make sense, coz when you said None before ;) I will update the PR soon ... |
Any updates on this? |
Can you update the screenshots if you removed the "not categorized" ? |
Please don't merge after I double check the merge conflict |
@hishamco you have missed my previous review. Where I said that If people aren't wanting to categorise their tenants (I can't think of any category I'd give mine, they are all of the same type), then having a ranom None tag showing up makes no sense. i.e. Ok, with categorising, not ok with forcing it on users. |
Oops, seems I forgot this one, I will update the PR soon ... |
If there's no other comment, then the PR is ready to merge |
src/OrchardCore.Modules/OrchardCore.Tenants/ViewModels/AdminIndexViewModel.cs
Outdated
Show resolved
Hide resolved
@deanmarcussen anything left here or can we approve then merge? |
src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/AdminController.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/AdminController.cs
Outdated
Show resolved
Hide resolved
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.
Two minor issues to fix. Otherwise looks good
src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/AdminController.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/AdminController.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/AdminController.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/AdminController.cs
Outdated
Show resolved
Hide resolved
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.
You forgot to remove the default category - it's unnecesary
src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/AdminController.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/AdminController.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/AdminController.cs
Outdated
Show resolved
Hide resolved
Seems I forgot to push a local commit from awhile ;) |
Addresses #10402