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

Add multi-select filter in organizations page for Headcount #1433

Merged
merged 5 commits into from
Sep 7, 2023

Conversation

peoray
Copy link
Contributor

@peoray peoray commented Sep 5, 2023

Changes proposed ✍️

What

Fixes #1242

🤖 Generated by Copilot at 3550e33

The headcount filter for organizations was improved to allow more flexibility and granularity. Users can now select multiple headcount ranges, including a new option for >1000, and the filter config and options were modified to support this feature.

🤖 Generated by Copilot at 3550e33

headcount filter
multi-select and open range
autumn of big orgs

Why

How

🤖 Generated by Copilot at 3550e33

  • Change headcount filter to multi-select type (link, )

Checklist ✅

  • Label appropriately with Feature, Improvement, or Bug.
  • Add screehshots to the PR description for relevant FE changes
  • New backend functionality has been unit-tested.
  • API documentation has been updated (if necessary) (see docs on API documentation).
  • Quality standards are met.

@joanagmaia joanagmaia self-requested a review September 5, 2023 15:34
const filter = {
size: { eq: value },
or: value.map((count) => ({ size: count })),
Copy link
Contributor

Choose a reason for hiding this comment

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

Here it needs to be:

or: value.map((count) => ({ size: { eq: count } })),

Otherwise API returns 500

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Comment on lines 26 to 29
{
label: '> 1000',
value: '1000+',
},
Copy link
Contributor

Choose a reason for hiding this comment

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

The issue scoping was not completely ok.
This specific attribute is following the canonical values from https://docs.peopledatalabs.com/docs/company-sizes

Instead of this new selection item, can you add support for
1001-5000
5001-10000
10001+

instead?

Apologies for the confusion

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@joanagmaia joanagmaia left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@joanagmaia joanagmaia merged commit 0ba1db3 into CrowdDotDev:main Sep 7, 2023
6 checks passed
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.

[C-2039] "Headcount" multi-select filter
2 participants