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

Add searchable prop in CategoryWidget to optionally use the search functionality #338

Merged

Conversation

Clebal
Copy link
Contributor

@Clebal Clebal commented Feb 16, 2022

@shortcut-integration
Copy link

@Clebal Clebal added enhancement New feature or request widgets labels Feb 16, 2022
@coveralls
Copy link
Collaborator

coveralls commented Feb 16, 2022

Pull Request Test Coverage Report for Build 1877950155

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.04%) to 73.087%

Totals Coverage Status
Change from base Build 1877946890: 0.04%
Covered Lines: 1282
Relevant Lines: 1651

💛 - Coveralls

@borja-munoz
Copy link
Contributor

Sergio, I think we are missing the number of Others categories within parenthesis, as defined by @josegilg

const blocked = blockedCategories.length;
return blocked ? data.length - blocked : data.length - maxItems;
}, [data, maxItems, blockedCategories]);

// Separated to simplify the widget layout but inside the main component to avoid passing all dependencies
const CategoryItem = (props) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Any refactor here, moving 'internal' components to different files would be really appreciated

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great, I'll add it to my backlog 👌

Copy link
Contributor

@VictorVelarde VictorVelarde left a comment

Choose a reason for hiding this comment

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

👍🏻

@Clebal Clebal merged commit 7887560 into master Feb 22, 2022
@Clebal Clebal deleted the feature/sc-210130/add-searchable-prop-in-categorywidget-to branch February 22, 2022 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request widgets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants