Consider adding a QueryResultOptions component for actions on query results #876
Labels
type:feature
New feature description e.g. which involves implementation of new components
zone:frontend
MWDB frontend tasks
Feature Category
Describe the problem
Today in MWDB, after a query is done, the user doesn't have many ways to interact with the results. Sometimes, a user may want to do some post processing on the results they've found. For example, this can include:
Describe the solution you'd like
There are a couple of steps I think are logical in such implementation:
QueryResultOptions
component that is essentially a list of actions to be performed after a query is complete. Make sure this list is extendable so it can be used by plugins 😉RecentView
with conditional rendering only if the query is submitted and done, and make any changes necessary for it inRecentView
QueryResultOptions
would need to know the actual result of the query, consider making aQueryContext
similar toObjectContext
. When a query is complete, it can return an iterator to the results. Not sure this is the best solution react-wise, since if no query is submitted it can still probably be accessed, but maybe returning null when accessing the iterator in such a case is enoughAnother, maybe better and more straightforward approach, would be to add this
QueryResultOptions
as part ofRecentViewList
. This way there's no need for a context, since this now has access to the elements. Also, I believe this would make it render only after a query is done like needed.The text was updated successfully, but these errors were encountered: