[PR #2376] feat: implement template search functionality #2258

Open
opened 2026-02-26 20:33:07 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/2376
Author: @catalinpit
Created: 1/12/2026
Status: 🔄 Open

Base: mainHead: fix/template-search


📝 Commits (9)

  • 55c2e6b feat: implement template search functionality
  • 1611779 Merge branch 'main' into fix/template-search
  • 1a2f5a5 Merge branch 'main' into fix/template-search
  • 1c282eb chore: add user check
  • 6de552c chore: move hasValidSearch at the top
  • e9aa681 Merge branch 'main' into fix/template-search
  • 1890670 fix: update email reference in document search test
  • a89b2ed Merge branch 'main' into fix/template-search
  • 55e19da Merge branch 'main' into fix/template-search

📊 Changes

6 files changed (+217 additions, -5 deletions)

View changed files

📝 apps/remix/app/components/general/app-command-menu.tsx (+39 -4)
📝 packages/app-tests/e2e/command-menu/document-search.spec.ts (+1 -1)
packages/lib/server-only/template/search-templates-with-keyword.ts (+137 -0)
📝 packages/trpc/server/template-router/router.ts (+3 -0)
packages/trpc/server/template-router/search-template.ts (+21 -0)
packages/trpc/server/template-router/search-template.types.ts (+16 -0)

📄 Description

  • Added function to handle template searches based on user input
  • Introduced in the TRPC router to facilitate authenticated template searches
  • Updated to include template search results alongside document search results
  • Enhanced query handling by enabling searches only when the input is valid
  • Created corresponding Zod schemas for request and response validation in

Checklist

  • I have tested these changes locally and they work as expected.
  • I have added/updated tests that prove the effectiveness of these changes.
  • I have updated the documentation to reflect these changes, if applicable.
  • I have followed the project's coding style guidelines.
  • I have addressed the code review feedback from the previous submission, if applicable.

Additional Notes


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/2376 **Author:** [@catalinpit](https://github.com/catalinpit) **Created:** 1/12/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/template-search` --- ### 📝 Commits (9) - [`55c2e6b`](https://github.com/documenso/documenso/commit/55c2e6bb1932529529e71169576bdbc1364527c0) feat: implement template search functionality - [`1611779`](https://github.com/documenso/documenso/commit/1611779800684e190cae8b7b297c9f7b9690b167) Merge branch 'main' into fix/template-search - [`1a2f5a5`](https://github.com/documenso/documenso/commit/1a2f5a56c28f3651a2b9f283e41095a7309e8257) Merge branch 'main' into fix/template-search - [`1c282eb`](https://github.com/documenso/documenso/commit/1c282ebeba89bd9455c73a4faa2d00a99150883b) chore: add user check - [`6de552c`](https://github.com/documenso/documenso/commit/6de552cc5d2a7a442e4b97fa5a0008e061a5ef8b) chore: move hasValidSearch at the top - [`e9aa681`](https://github.com/documenso/documenso/commit/e9aa681ce2dfdecd044ae38e009c3cec96af422a) Merge branch 'main' into fix/template-search - [`1890670`](https://github.com/documenso/documenso/commit/1890670286e6578cee4d8c1bd3a96745e9f737d4) fix: update email reference in document search test - [`a89b2ed`](https://github.com/documenso/documenso/commit/a89b2ed8da80e183a6ae0571523ac4cb86dea11c) Merge branch 'main' into fix/template-search - [`55e19da`](https://github.com/documenso/documenso/commit/55e19dae6eaa796a5e47d76eae87ae3c0ff24704) Merge branch 'main' into fix/template-search ### 📊 Changes **6 files changed** (+217 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `apps/remix/app/components/general/app-command-menu.tsx` (+39 -4) 📝 `packages/app-tests/e2e/command-menu/document-search.spec.ts` (+1 -1) ➕ `packages/lib/server-only/template/search-templates-with-keyword.ts` (+137 -0) 📝 `packages/trpc/server/template-router/router.ts` (+3 -0) ➕ `packages/trpc/server/template-router/search-template.ts` (+21 -0) ➕ `packages/trpc/server/template-router/search-template.types.ts` (+16 -0) </details> ### 📄 Description - Added function to handle template searches based on user input - Introduced in the TRPC router to facilitate authenticated template searches - Updated to include template search results alongside document search results - Enhanced query handling by enabling searches only when the input is valid - Created corresponding Zod schemas for request and response validation in ## Checklist - [x] I have tested these changes locally and they work as expected. - [ ] I have added/updated tests that prove the effectiveness of these changes. - [ ] I have updated the documentation to reflect these changes, if applicable. - [x] I have followed the project's coding style guidelines. - [ ] I have addressed the code review feedback from the previous submission, if applicable. ## Additional Notes --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#2258
No description provided.