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(Partners): enhance BusinessFieldFilter with grouped display #266

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

Ysrbolles
Copy link
Contributor

Extending the business field values to hold both a category and the business field itself. Something like:

  • Transport / Train
  • Transport / Aviation
  • Accommodation / Hotel
  • Accommodation / Holiday-Home
  • etc

With the purpose to show this in the frontend grouped by the first field like "Transport" "Accommodation" and have the 2nd part as selectable filter criteria to search for businesses which have for instance "Transport / Train" selected.

Screenshot 2024-11-04 at 10 15 29

@Ysrbolles Ysrbolles requested a review from aeddaqqa November 4, 2024 09:16
src/components/Partners/BusinessFieldFilter.tsx Outdated Show resolved Hide resolved
src/components/Partners/BusinessFieldFilter.tsx Outdated Show resolved Hide resolved
src/helpers/partnersReducer.ts Outdated Show resolved Hide resolved
src/helpers/partnersReducer.ts Outdated Show resolved Hide resolved
…s fields and update reducer for business field management
@Ysrbolles
Copy link
Contributor Author

feat(BusinessFieldFilter): add category-level toggling for business fields

  • Made category headers clickable, allowing users to toggle the active state of all fields within a category in the BusinessFieldFilter component.
  • Updated reducer with a new action TOGGLE_CATEGORY to handle toggling all fields in the selected category when the header is clicked.
  • Preserved the existing styles for category headers and individual fields.

This update improves usability by enabling easier selection of grouped business fields.

@Ysrbolles Ysrbolles merged commit bb3b7dc into suite Nov 11, 2024
4 checks passed
@Ysrbolles Ysrbolles deleted the business-filters branch November 11, 2024 09:06
@Ysrbolles Ysrbolles restored the business-filters branch November 20, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants