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

Fix: refactor use filtered list TypeScript #284

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

fabiankaegy
Copy link
Member

This refactors the useFilteredList hook to TypeScript

const matchedNames = fuzzy.filter(propertyList, searchTerm);
return matchedNames.map((index) => list[index]);
const results = matchedNames?.map((index) => list[index]) || [];
Copy link
Member Author

Choose a reason for hiding this comment

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

This refactor actually uncovered a bug that was fixed here

Copy link

Size Change: +24 B (0%)

Total Size: 65.5 kB

Filename Size Change
dist/index.js 65.5 kB +24 B (0%)

compressed-size-action

Copy link

🎉 A new testing version of this package has been published to NPM. You can install it with npm install @10up/block-components@testing-284

Copy link

cypress bot commented Jan 23, 2024

4 failed tests on run #696 ↗︎

4 2 0 0 Flakiness 0

Details:

fix add back default value
Project: 10up Block Components Commit: 3818e11069
Status: Failed Duration: 01:23 💡
Started: Jan 23, 2024 3:51 PM Ended: Jan 23, 2024 3:53 PM
Failed  IconPicker.spec.js • 1 failed test

View Output Video

Test Artifacts
IconPicker > allows the user to use the post picker to change an icon and displays it Screenshots Video
Failed  Image.spec.js • 1 failed test

View Output Video

Test Artifacts
Image > allows the user to pick an image from the media library and displays it inline Screenshots Video
Failed  Link.spec.js • 1 failed test

View Output Video

Test Artifacts
Link > allows the editor to pick a link directly inline Screenshots Video
Failed  registerBlockExtension.spec.js • 1 failed test

View Output Video

Test Artifacts
registerBlockExtension > ensure the new setting shows up and doesn't cause deprecation errors Screenshots Video

Review all test suite changes for PR #284 ↗︎

@fabiankaegy fabiankaegy merged commit 307dce9 into develop Jan 23, 2024
4 of 6 checks passed
@fabiankaegy fabiankaegy deleted the fix/refactor-use-filtered-list-to-ts branch January 23, 2024 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant