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
Allow user to filter lists #5035
Conversation
6744be1
to
7f3f24f
Compare
7f3f24f
to
ee40522
Compare
It's looking good. It's suppose to solve #4855? |
@lightglitch Thank you for reminding me of that issue, yeah, this will be solved by this |
7bb037b
to
cf6dd8a
Compare
...Bundle/AdminBundle/Resources/js/containers/List/fieldFilterTypes/SelectionFieldFilterType.js
Outdated
Show resolved
Hide resolved
a9d7b4e
to
8310b14
Compare
9c8b71d
to
5f8d061
Compare
e13cd2d
to
71bf173
Compare
@danrot Nice Job! Personally, I would prefer one-liners and a real Buttons. Also depends on the decision regarding the label.
|
6f624c4
to
bf72e9e
Compare
src/Sulu/Bundle/AdminBundle/Resources/js/containers/List/FieldFilter.js
Outdated
Show resolved
Hide resolved
25686b1
to
6a5660c
Compare
…sts in SelectionFieldFilterType
a669500
to
17a57d8
Compare
i am not able to remove a boolean filter that is set to false if it was set to true before |
The following things should probably be addressed in another pr:
|
Furthermore, i would propose the following usability improvements:
|
Apart from these small quirks, the functionality feels great and integrates beautifully into the UI. I think our users will really like this feature! I would propose to merge this PR if the boolean filter bug is resolved and implement the other issues in another PR. Is this okay for you? @sulu/core-team ? would be nice to get this huge thing out of the way. |
So to summarize:
|
The dropdown issue is (of course) a z-index issue... Don't know how to quickly fix that... I would love to get rid of all z-indexes all together, they always cause trouble at some point... I am checking the other issues right now, maybe I can fix one or the other before merging this PR, shouldn't be too bad. |
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.
thank you! would be nice if confirming/closing the filter chip would work even if the input field is currently focused. i guess the problem here is something similar to #5054
anyway, a lot of things are working great and therefore i am happy to finally merge this
What's in this PR?
This PR adds a new feature to filter list for values in certain columns.
Why?
Because we need that in quite a few projects.
Example Usage
BC Breaks/Deprecations
ListBuilderInterface
has a newfilter
methodTo Do
findByIdsGivenCriteria
method, because it seems to be done another time inassignSortFields
tagIds
e.g. incontact.xml
,webspaceKeys
intarget_groups.xml
ortagIds
inaccounts.xml
list configuration is possible. It is quite hard, because theListBuilder
builds aGROUP_CONCAT
based on that field. TheSelection
filter type however would still work for 1:n relationships, but this one is n:m...MultiAutoComplete
should takeSelectionStore
as argument to avoid multiple requests inSelectionFieldFilterType
Functional todos:
Chip
componentMultiSelection
media
(type
,mimeType
)?getValueNode
function to allow resolving of IDs forSelectionFieldFilterType
?DateFieldFilterType
andNumberFieldFilterType
TextFilterType