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(combobox): include groups in filtering #10511

Merged
merged 12 commits into from
Oct 31, 2024

Conversation

anveshmekala
Copy link
Contributor

@anveshmekala anveshmekala commented Oct 9, 2024

Related Issue: #7702

Summary

Includes groups while filtering in calcite-combobox.

@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Oct 9, 2024
@anveshmekala anveshmekala changed the title fix(combobox): include groups in filtering fix(combobox,list): include groups in filtering Oct 14, 2024
Copy link
Contributor

This PR has been automatically marked as stale because it has not had recent activity. Please close your PR if it is no longer relevant. Thank you for your contributions.

@github-actions github-actions bot added the Stale Issues or pull requests that have not had recent activity. label Oct 25, 2024
@anveshmekala anveshmekala changed the title fix(combobox,list): include groups in filtering fix(combobox): include groups in filtering Oct 31, 2024
@anveshmekala anveshmekala marked this pull request as ready for review October 31, 2024 21:56
@anveshmekala anveshmekala added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Oct 31, 2024
Copy link
Member

@jcfranco jcfranco left a comment

Choose a reason for hiding this comment

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

👨‍🚀🚀🪐

await page.waitForChanges();
await combobox.type("group");
await page.waitForChanges();
await new Promise((res) => setTimeout(() => res(true), DEBOUNCE.filter));
Copy link
Member

Choose a reason for hiding this comment

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

For consistency, can you use await page.waitForTimeout? Applies to other timeouts.

await combobox.type("group");
await page.waitForChanges();
await new Promise((res) => setTimeout(() => res(true), DEBOUNCE.filter));

Copy link
Member

Choose a reason for hiding this comment

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

Would waiting for calciteComboboxFilterChange help avoid the debounce timeout? We can revisit this separately.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree a refactor PR would be beneficial considering it is repeated multiple times.

@anveshmekala anveshmekala added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed Stale Issues or pull requests that have not had recent activity. pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Oct 31, 2024
@anveshmekala anveshmekala merged commit e706178 into dev Oct 31, 2024
13 checks passed
@anveshmekala anveshmekala deleted the anveshmekala/7702-fix-comobox-filtering-groups branch October 31, 2024 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants