Skip to content

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 AntoLC force-pushed the refacto/search-no-child branch from d8dfdb7 to 72456ce Compare July 23, 2025 12:44
@AntoLC AntoLC force-pushed the refacto/search-no-child branch from 72456ce to 835b5bd Compare July 25, 2025 11:27
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 835b5bd to 1ae831c Compare July 25, 2025 12:30
@AntoLC AntoLC merged commit 1ae831c into main Jul 25, 2025
20 of 21 checks passed
@AntoLC AntoLC deleted the refacto/search-no-child branch July 25, 2025 13:04
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