Skip to content

♻️(frontend) search on all docs if no children #1184

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

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

Conversation

AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Jul 16, 2025

Purpose

When searching for documents, if no children are found, the search will now include all documents instead of just those with children.

Proposal

  • ♻️(frontend) search on all docs if no children

@AntoLC AntoLC self-assigned this Jul 16, 2025
@AntoLC AntoLC force-pushed the refacto/search-no-child branch from 9d28147 to 1d8d6d3 Compare July 16, 2025 09:11
@AntoLC AntoLC requested a review from lunika July 16, 2025 09:11
@@ -12,10 +13,10 @@ import { useLeftPanelStore } from '../stores';
import { LeftPanelHeaderButton } from './LeftPanelHeaderButton';

export const LeftPanelHeader = ({ children }: PropsWithChildren) => {
const { currentDoc } = useDocStore();
const isDoc = !!currentDoc;
Copy link
Member

Choose a reason for hiding this comment

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

isDoc is probably not describing enough what is the purpose of this variable.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I refactorized this part in the fixup, moving logic in DocSearchModal it would be cleaner I think.

@AntoLC AntoLC force-pushed the refacto/search-no-child branch 2 times, most recently from 0eb8802 to d8dfdb7 Compare July 23, 2025 08:29
@AntoLC AntoLC requested a review from lunika July 23, 2025 08:29
AntoLC added 2 commits July 23, 2025 14:21
When searching for documents, if no children are
found, the search will now include all documents
instead of just those with children.
@AntoLC AntoLC force-pushed the refacto/search-no-child branch from d8dfdb7 to 72456ce Compare July 23, 2025 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants