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

#245: add comments filter #246

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

#245: add comments filter #246

wants to merge 2 commits into from

Conversation

lessej
Copy link
Collaborator

@lessej lessej commented Sep 17, 2024

Context

Implements #245

Add comments filter so users can filter images by the content of comments on the image. Implemented using the $search $text operator in MongoDB.
https://www.mongodb.com/docs/manual/reference/operator/query/text/#mongodb-query-op.-text

Related PRs

animl-api

@lessej lessej removed the In Progress (don't merge) PR is still in progress and should not be merged label Sep 18, 2024
@@ -40,7 +40,9 @@ export const CommentsFilter = () => {
name="filter"
id="filter"
component="textarea"
placeholder=""
placeholder="Comments with the phrase..."
onKeyDown={(e) => e.stopPropagation()}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This fixes a 'bug' where keyboard navigation would work even when entering text in the text area. The reproduction steps are

  1. Open the comments popover
  2. Create a new comment
  3. Type in the comment filter text area
  4. Check that keyboard navigation is working

@lessej
Copy link
Collaborator Author

lessej commented Sep 18, 2024

@nathanielrindlaub the comment filter should be working to search by phrase and all the PR checks are passing now. Please feel free to review unless you would like some other features to enhance the comments filter. Thanks!

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.

1 participant