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

feat: advanced search filter builder for HCMS #3604

Merged
merged 134 commits into from
Oct 25, 2023

Conversation

leopuleo
Copy link
Contributor

Changes

With this PR, we introduce the new advanced search filter builder for HCMS.

The feature allows users to:

  • create custom filters based on the content model fields and default fields
  • group conditions and define the operation type (AND / OR)
  • save a custom filter providing "Name" and "Description"
  • manage previously saved filters (list, update and delete)
  • clone a filter

The following default fields are included:

  • status
  • createdOn
  • savedOn

The following model field types are included:

  • boolean
  • datetime
  • number
  • text

Bonus

The PR includes some improvements:

  • @webiny/form package to improve the error validation.
  • @webiny/ui/accordion that allows to pass arbitrary elements to the AccordionItem in addition to the existing buttons

Video

CleanShot.2023-10-17.at.11.03.51.mp4

How Has This Been Tested?

Manually + Jest

leopuleo and others added 30 commits August 28, 2023 18:13
leopuleo and others added 27 commits October 17, 2023 13:24
# Conflicts:
#	packages/api-aco/package.json
#	packages/api-aco/src/createAcoContext.ts
#	packages/api-aco/src/types.ts
#	packages/form/src/Form.tsx
Copy link
Collaborator

@Pavel910 Pavel910 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are more places to rename from QueryBuilder to Filter, but we can do that later. This is looking great, great job!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it! 👍

@Pavel910 Pavel910 merged commit 6d1492b into next Oct 25, 2023
61 checks passed
@leopuleo leopuleo deleted the leo/feat/advanced-search-filter-be branch November 6, 2023 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants