Skip to content
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

Itemfilter refactoring/rewrite #982

Closed
13 of 14 tasks
silvester-pari opened this issue May 23, 2024 · 0 comments · Fixed by #989
Closed
13 of 14 tasks

Itemfilter refactoring/rewrite #982

silvester-pari opened this issue May 23, 2024 · 0 comments · Fixed by #989
Assignees

Comments

@silvester-pari
Copy link
Collaborator

silvester-pari commented May 23, 2024

Current eox-itemfilter functionalities:

  • aggregate filter choices based on inputted items (frontend search) - for backend search define choices
  • "widget" mode (filters are stacked in a column, results underneath) and "inline" mode (filters all live inside one "input" form element, like e.g. GitLab UI)
  • frontend search (powered by fuse.js or similar) and backend search (filter inputs can be injected into a endpoint string template and are sent to an API and results shown)
  • reset individual filters, or reset all filters
  • grouping of results by key
  • custom styling of filters via e.g. slots or CSS pseudo-elements (before/after) with data-attrs
  • start itemfilter with pre-set filter state

Filter types:

  • text search (ideally with fuzzy search)
  • single select
  • multi select
  • range
  • spatial

Currently, our select filters use Fuse.js behind the scenes to do exact matches (e.g. =text).

Potential evolution:

  • accessing nested properties (.) see Nested property filtering #603
  • provide multiple result rendering approaches, as web components (e.g. list, tiles, "statistical" table) potential future evolution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants