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: simpler integration filters #4766

Merged
merged 6 commits into from
Sep 20, 2023
Merged

Conversation

nunogois
Copy link
Member

@nunogois nunogois commented Sep 18, 2023

https://linear.app/unleash/issue/2-1407/remove-the-all-checkboxes-from-project-and-environment-filters

Simplifies integration event filters by removing the "ALL" checkboxes from these components. Whether you opted to check the "ALL" checkbox, or not to filter at all, the result is the same - The selected options would act as a filter.

Includes some refactoring and clean up.

image

@vercel
Copy link

vercel bot commented Sep 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 19, 2023 2:01pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Sep 19, 2023 2:01pm

Copy link
Contributor

@gastonfournier gastonfournier left a comment

Choose a reason for hiding this comment

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

Happy to give it an approval tomorrow after looking at the comment. I'm not approving right now because of the auto-merge

required,
}) => {
const renderInput = (params: AutocompleteRenderInputParams) => (
<TextField
{...params}
error={Boolean(error)}
helperText={error}
helperText={error || note}
Copy link
Contributor

Choose a reason for hiding this comment

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

If this is error or note, maybe we should have a single text and another property of type style: 'error' || 'note'?
Personally, I don't like positional parameters having different meanings, and they seem to be mutually exclusive (i.e. when error is undefined you can have a note, when there's an error, it takes precedence over the note, so they can't be rendered together...

Copy link
Contributor

Choose a reason for hiding this comment

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

So they're different texts, but the error is "dynamic" in a way. Something can trigger a validation that will set the error state and will display the error.

@nunogois nunogois merged commit 39b0c08 into main Sep 20, 2023
16 checks passed
@nunogois nunogois deleted the feat-simpler-integration-filters branch September 20, 2023 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants