Skip to content

Conversation

@Any97Cris
Copy link
Contributor

@Any97Cris Any97Cris commented Dec 20, 2025

Issue: #6027

✨ Features

Global Search Integration: Documents can now be found using Nextcloud's unified search
Smart Filtering: Search by document name with automatic filtering
Rich Results: Display document thumbnails, file paths, and signature status
Status Labels: Show document status (Draft, Able to sign, Partially signed, Signed, Deleted)
Dynamic Icons: Automatically detect and display appropriate MIME type icons
Pagination Support: Handle large result sets efficiently

image

@Any97Cris Any97Cris self-assigned this Dec 20, 2025
@github-project-automation github-project-automation bot moved this to 0. Needs triage in Roadmap Dec 20, 2025
@github-project-automation github-project-automation bot moved this from 0. Needs triage to 1. to do in Roadmap Dec 22, 2025
$qb = $this->getFilesAssociatedFilesWithMeQueryBuilder($user->getUID(), $filter, false, $sort);


$qb->orderBy('f.created_at', 'DESC');
Copy link
Contributor

@samuelsonbrito samuelsonbrito Dec 24, 2025

Choose a reason for hiding this comment

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

Remove, it is no longer necessary. Row: 434

@vitormattos
Copy link
Member

I made a rebase with main branch to fix conflicts, only this.

@vitormattos vitormattos force-pushed the feat/unified-search branch 2 times, most recently from 585b325 to 608a303 Compare December 30, 2025 17:53
$qb = $this->getFilesAssociatedFilesWithMeQueryBuilder($user->getUID(), $filter, false, $sort);


$qb->orderBy('f.created_at', 'DESC');
Copy link
Member

Choose a reason for hiding this comment

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

Look, now the $sort is sent at row 431 but here is defined again. This row should be removed now

Suggested change
$qb->orderBy('f.created_at', 'DESC');

}

private function getFilesAssociatedFilesWithMeQueryBuilder(string $userId, array $filter = [], bool $count = false): IQueryBuilder {
private function getFilesAssociatedFilesWithMeQueryBuilder(string $userId, array $filter = [], bool $count = false, array $sort = []): IQueryBuilder {
Copy link
Member

Choose a reason for hiding this comment

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

When a function has many arguments, it's advisable to split them into multiple rows. This approach preserves the git log, allowing changes related to added or removed arguments to be clearer and more isolated. If all arguments are on a single line, adding or removing an argument can lead to a commit that alters the entire line. Consequently, running git blame will not make it easy to see changes related to individual arguments.

Suggested change
private function getFilesAssociatedFilesWithMeQueryBuilder(string $userId, array $filter = [], bool $count = false, array $sort = []): IQueryBuilder {
private function getFilesAssociatedWithMeQueryBuilder(
string $userId,
array $filter = [],
bool $count = false,
array $sort = [],
): IQueryBuilder {


$searchResultEntry = new SearchResultEntry(
$thumbnailUrl,
$file->getName() ?? $this->l10n->t('Unnamed document'),
Copy link
Member

Choose a reason for hiding this comment

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

Name is mandatory

Suggested change
$file->getName() ?? $this->l10n->t('Unnamed document'),
$file->getName(),

}

private function formatResult(File $file, IUser $user): SearchResultEntry {
$userFolder = $this->rootFolder->getUserFolder($user->getUID());
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
$userFolder = $this->rootFolder->getUserFolder($user->getUID());
$userFolder = $this->rootFolder->getUserFolder($file->getUserId());

Signed-off-by: Crisciany Souza <crisciany.souza@librecode.coop>
Signed-off-by: Crisciany Souza <crisciany.souza@librecode.coop>
Signed-off-by: Crisciany Souza <crisciany.souza@librecode.coop>
Signed-off-by: Crisciany Souza <crisciany.souza@librecode.coop>
Signed-off-by: Crisciany Souza <crisciany.souza@librecode.coop>
@Any97Cris Any97Cris force-pushed the feat/unified-search branch from 7bb8e56 to a4a76d9 Compare January 21, 2026 18:04
@vitormattos
Copy link
Member

/backport to stable32

@vitormattos
Copy link
Member

/backport to stable31

@vitormattos vitormattos merged commit 35b6315 into main Jan 21, 2026
67 checks passed
@vitormattos vitormattos deleted the feat/unified-search branch January 21, 2026 22:20
@github-project-automation github-project-automation bot moved this from 1. to do to 4. to release in Roadmap Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 4. to release

Development

Successfully merging this pull request may close these issues.

4 participants