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

fixed reference classes don't show up in filter search #793

Merged

Conversation

webermayank
Copy link
Contributor

Fixes #717

earlier classes was not showing in filer search, after i modified the code and added a check , classes comes up in filter search

Before After
image image

more example

Before After
Screenshot 2025-04-11 225919 Screenshot 2025-04-11 225928

@ksen0 , @davepagurek - please verify if this is correct. Tell me if something needs to be changed

Copy link
Collaborator

@davepagurek davepagurek left a comment

Choose a reason for hiding this comment

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

Thanks @webermayank! The functionality looks great! I just left some minor comments to try to make the formatting consistent with the rest of the codebase.

const filteredEntries = subcat.entries.filter((entry) =>
entry.data.title
.toLowerCase()
.includes(searchKeyword.toLowerCase()),
);
if (subcat.entry &&
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we format this like the brackets in this section, where the parts in the brackets are indented in once? e.g.:

if (
  condition1 &&
  condition2
) {
  doSomething(); // code here, indented in once too
}

Currently, I the spacing in the if condition is a tad inconsistent, and the body of the if statement is indented with just one space instead of two.

@webermayank
Copy link
Contributor Author

@davepagurek , is it okay now ?
I'll remember to always follow the code formatting carefully for future

Copy link
Collaborator

@davepagurek davepagurek left a comment

Choose a reason for hiding this comment

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

Thanks, looks great!

@davepagurek
Copy link
Collaborator

Also no worries about code formatting, it's not super important, just a nice thing to have if everything else works 🙂

@ksen0 ksen0 merged commit 71326ec into processing:main Apr 11, 2025
4 checks passed
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.

In the references, classes don't show up in the filter search
3 participants