Replies: 4 comments 1 reply
-
If predefined filters were built as its own CRUDdable entity for each collection rather than defined via a static config, then a pretty cool feature would be to allow users to save different named filter configurations and optionally share with other users. For example, consider a
It's an advanced feature, but could be quite powerful, especially if implemented with RBAC of the entity. |
Beta Was this translation helpful? Give feedback.
-
I'm looking forward to this feature.
In the interim, I may forcefully open |
Beta Was this translation helpful? Give feedback.
-
This feature is coming up right after our work on moving to next.js which is moving along nicely. For anyone that can't wait this long I wanted to offer a workaround solution. You could add links to filtered collections by creating custom components to add to your collection's The easiest way to build up the link is to make your filter selections using the UI controls and copy the URL to be added to a link in the component. Ideally you can import components from Payload to match the same UI design. For example if you wanted to have a link so that your admin users could quickly see a list of articles they have written, you could something like this: const MyPostsLink: React.FC = (props) => {
const { user } = useAuth()
return (
<Pill aria-label="My Posts" to={`/admin/collections/posts?where[author][equals]=${user.id}`}>
My Posts
</Pill>
)
} |
Beta Was this translation helpful? Give feedback.
-
The filter rules bar is quite big and pushes the list down out of view. Especially with more complex filters that have 3+ rows. Some ideas:
I like solution 3 because this would be a nice place to add the features discussed in this thread. Maybe something like this: You can then display the presets in this dedicated filter bar, even when it's minimized. Something like this: [ More Filters ] expands the full filter rules. I am using a very rudimentary version of this in the collection.description component. Another place to display the saved presets could be as sidenav subitems of the collection. p.s. You guys built a fantastic product. Can't wait for the next version. |
Beta Was this translation helpful? Give feedback.
-
This feature will include updates to the list view by improving the UX for filters, specifically:
Beta Was this translation helpful? Give feedback.
All reactions