You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a TON of dynamic filters (as we create one per belongs_to nested attribute, imagine the order resource)
Now it is a very long list (50+ filters)
would be great to ORGANIZE it more
One idea is to let as inject some html attributes, and then via some custom written JS & CSS (loaded in app/views/avo/partials/_pre_head.html.erb ) make it more user friendly to add
dividers
nested menu
classAvo::Resources::Order < Avo::BaseResourcedeffieldsfield:status,as: :select, ...
field:customer,as: :belongs_toend# html hacky way, 80/20 all the waydeffiltersdynamic_filter:statusdynamic_filter:divider,type: :text,label: "----",html: {classes: "disabled section"}dynamic_filter:customer_group,label: "Customer ➡️",type: :text,html: {data: {filter_group_heading: "customer"}}dynamic_filter:customer_firstname,as: :text,html: {data: {filter_group_child: "customer"}}end# first class way, much cleaner but requires more effort of AVOdeffiltersdynamic_filter:statusdivider# like we have in https://docs.avohq.io/3.0/actions.html#dividerfilter_group"Customer ➡️"dodynamic_filter:customer_firstname,as: :text# ...endendend
Hey @pjmuller how about having an in-place quick search for the initial iteration?
The dropdowns might get fiddly to build and you might need/want customizations to them.
Hi @adrianthedev , yes makes sense.
Though in the short term we'll try to limit the options ourselves so this feature is more LOW prio.
Still thanks for thinking along with us ❤️
Feature
We have a TON of dynamic filters (as we create one per belongs_to nested attribute, imagine the
order
resource)Now it is a very long list (50+ filters)
would be great to ORGANIZE it more
One idea is to let as inject some html attributes, and then via some custom written JS & CSS (loaded in app/views/avo/partials/_pre_head.html.erb ) make it more user friendly to add
PS: this is related to: #3181
Current workarounds
Write even more hacky CSS/JS that will work on existing rendered DOM
The text was updated successfully, but these errors were encountered: