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

Filters - Filter Menu - menu header #2951

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ddouglasz
Copy link
Contributor

Description

Add Filters - Filter Menu - menu header component.

This pull request introduces a new FilterMenu header component and updates related files to support its implementation. The changes include adding new props to the FilterMenu component, updating tests, and modifying the storybook example.

Implementation of FilterMenu header component:

Updates to FilterMenu component:

Test updates:

Storybook update:

This task ideally should have no story so after testing, the story modification will be taken off.

Copy link

vercel bot commented Oct 8, 2024

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

Name Status Preview Comments Updated (UTC)
ui-kit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 9, 2024 2:03pm

Copy link

changeset-bot bot commented Oct 8, 2024

⚠️ No Changeset found

Latest commit: ef3b28e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ddouglasz ddouglasz marked this pull request as ready for review October 8, 2024 17:34
@ddouglasz ddouglasz requested a review from a team as a code owner October 8, 2024 17:34
@ddouglasz ddouglasz requested review from stephsprinkle, jaikamat, tylermorrisford, ByronDWall, misama-ct and a team and removed request for a team October 8, 2024 17:34
@@ -16,5 +17,6 @@ export default meta;
type Story = StoryFn<typeof Filters>;

export const BasicExample: Story = () => {
return <Filters label={'test'} />;
// return <Filters label={'test'} />;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

only for testing purposes, I will return back to its state before merging

{props.onSort && (
<IconButton
size="20"
theme={isActive ? 'info' : 'default'}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

You might notice a slight change between the IconButton when Active. This is because "round" prop is deprecated and I have checked in with Filip to confirm we are using the new prop design(square).

'@commercetools-uikit/filters': minor
---

Implement FilterMenu header component.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need a changeset here, since we aren't publishing filters for public consumption until the entire feature is done

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated here: 270993d
Thank you

Comment on lines +16 to +17
operatorOptions?: Array<TOption>;
onSelectOperand: (value: string) => void;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is my fault, because I should have updated the jira ticket, but these should be a single renderOperatorsInput: () => ReactNode

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