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(custom): add onDropdownInputChange optional prop to FilterSearch #421

Merged
merged 9 commits into from
Jan 24, 2024

Conversation

Jeffrey-Rhoads17
Copy link
Contributor

expose a callback prop to be called everytime after input changes in the FilterSearch component. This enables greater customization for our Locators that are built using FilterSearch primarily

J=BACK-2765
TEST=manual

@Jeffrey-Rhoads17 Jeffrey-Rhoads17 requested a review from a team as a code owner January 16, 2024 22:53
@coveralls
Copy link

coveralls commented Jan 16, 2024

Coverage Status

coverage: 85.523% (+0.02%) from 85.508%
when pulling 02b2144 on dev/filterSearchInputChange
into 356ac48 on develop.

Copy link
Contributor

github-actions bot commented Jan 16, 2024

Current unit coverage is 92.65223955712129%
Current visual coverage is 78.38862559241706%
Current combined coverage is 93.158953722334%

Copy link
Member

@benmcginnis benmcginnis left a comment

Choose a reason for hiding this comment

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

@nmanu1 if you could take a look as well, I'd appreciate it!

src/components/FilterSearch.tsx Outdated Show resolved Hide resolved
test-site/src/pages/PeoplePage.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@nmanu1 nmanu1 left a comment

Choose a reason for hiding this comment

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

you'll want to merge this PR into develop rather than main

src/components/FilterSearch.tsx Outdated Show resolved Hide resolved
src/components/FilterSearch.tsx Outdated Show resolved Hide resolved
@Jeffrey-Rhoads17 Jeffrey-Rhoads17 changed the base branch from main to develop January 18, 2024 20:19
src/components/FilterSearch.tsx Outdated Show resolved Hide resolved
src/components/FilterSearch.tsx Outdated Show resolved Hide resolved
src/components/FilterSearch.tsx Outdated Show resolved Hide resolved
src/components/FilterSearch.tsx Outdated Show resolved Hide resolved
tests/components/FilterSearch.test.tsx Show resolved Hide resolved
Jeffrey-Rhoads17 and others added 5 commits January 23, 2024 16:47
expose a callback prop to be called everytime after input changes in the FilterSearch component.
This enables greater customization for our Locators that are built using FilterSearch primarily

J=BACK-2765
TEST=manual
…havior, add documentation

specify a type for the props passed into onDropdownInputSelect and pass back the searchFields used
in the FilterSearch component so we can properly remove/keep the right filters

J=BACK-2765
TEST=manual
…pdownInputChange is specified

ensure executeFilterSearch is not called in test when onDropdownInputChange is supplied

J=BACK-2765
TEST=manual
tests/components/FilterSearch.test.tsx Outdated Show resolved Hide resolved
tests/components/FilterSearch.test.tsx Outdated Show resolved Hide resolved
tests/components/FilterSearch.test.tsx Outdated Show resolved Hide resolved
tests/components/FilterSearch.stories.tsx Outdated Show resolved Hide resolved
…o args

move executeFilterSearch check to be outside a callback

J=BACK-2765
TEST=manual
@Jeffrey-Rhoads17 Jeffrey-Rhoads17 merged commit bd614cb into develop Jan 24, 2024
17 of 18 checks passed
nmanu1 added a commit that referenced this pull request Feb 20, 2024
### Features
- Add `onDropdownInputChange` optional prop to `FilterSearch` component (#421)
- Support React 18 (#423)

### Fixes
- Resolve vulnerabilities (#422)
@nmanu1 nmanu1 mentioned this pull request Feb 23, 2024
nmanu1 added a commit that referenced this pull request Feb 23, 2024
### Features
- Added support for React 18 (#423)
- Added an optional `onDropdownInputChange` prop to `FilterSearch` (#421)

### Fixes
- Addressed vulnerabilities (#422)
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.

4 participants