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

Feat/search tree #55

Merged
merged 1 commit into from
Jul 5, 2024
Merged

Feat/search tree #55

merged 1 commit into from
Jul 5, 2024

Conversation

mari1912
Copy link
Collaborator

@mari1912 mari1912 commented Jul 4, 2024

Description

  • Add search to tree list page

Related Issues

@mari1912 mari1912 requested a review from lfjnascimento July 4, 2024 19:11
@mari1912 mari1912 self-assigned this Jul 4, 2024
@mari1912 mari1912 force-pushed the feat/search-tree branch from 87da7fa to 4f0ae33 Compare July 4, 2024 19:12
@lfjnascimento
Copy link
Contributor

It would be great to have debouncing so that the component doesn't re-render/recalculate data on every keystroke


const { data } = useTreeTable();

const listItems: TreeTableBody[] = useMemo(() => {
return data ? (data as Tree[]).map(tree => ({
return data ? (data as Tree[])
.filter(tree => tree.tree_name?.includes(inputFilter) || tree.git_commit_hash?.includes(inputFilter) || tree.patchset_hash?.includes(inputFilter) || tree.git_repository_branch?.includes(inputFilter))

Choose a reason for hiding this comment

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

nit: i would just break in multiple lines to make it easier to read

@mari1912 mari1912 force-pushed the feat/search-tree branch 2 times, most recently from e8b9f23 to b386a57 Compare July 5, 2024 14:00
@mari1912 mari1912 force-pushed the feat/search-tree branch from b386a57 to 1cfeb30 Compare July 5, 2024 14:14
@mari1912 mari1912 merged commit 0e80db6 into main Jul 5, 2024
4 checks passed
@mari1912 mari1912 deleted the feat/search-tree branch July 5, 2024 14:28
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.

Implement search in TMLP
3 participants