esmero / format_strawberryfield

Set of Display formatters, extractors and utils to make Strawberry field data glow
GNU Lesser General Public License v3.0
6 stars 9 forks source link

Exposed Views (modal... our own) Form(s) with Configuration acting after Drupal 10.2 #429

Closed DiegoPino closed 3 months ago

DiegoPino commented 3 months ago

What?

Our ViewsExposedFilterBlockModal class allows certain exposed elements to be "hidden" from display. In old times we could iterate over #info key in the already generated render array and remove our "sorts" if desired, from there. That now only works when using the Better exposed filter module, with the default the keys that will contain sorts are fixed: "sort_by" and "sort_order".

The fix is not complex but we want to improve in general here the experience. One thing that is annoying is that Blocks are cached so changes on these don't permeate even if the view Changes. I might explore that too

We also got feedback about using aria attributes for the hidden, which we are already doing on Advanced Search

And ... also we need a "copy values from visible to the same hidden element on other exposed modal forms" and/or an autosubmit. This is JS + settings + magic.

DiegoPino commented 3 months ago

Resolved via https://github.com/esmero/format_strawberryfield/commit/8984758406ad600ee9846cc643a8d86a5d00a27e Includes auto submit and copy to other exposed ones too now.