[PR #2178] [MERGED] refactor(web): split search autocomplete logic #2015

Closed
opened 2026-03-02 12:00:12 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/karakeep-app/karakeep/pull/2178
Author: @MohamedBassem
Created: 11/27/2025
Status: Merged
Merged: 11/29/2025
Merged by: @MohamedBassem

Base: mainHead: codex/add-autocomplete-for-search-query-language


📝 Commits (6)

📊 Changes

4 files changed (+629 additions, -61 deletions)

View changed files

📝 apps/web/components/dashboard/search/SearchInput.tsx (+63 -59)
apps/web/components/dashboard/search/useSearchAutocomplete.ts (+555 -0)
📝 apps/web/lib/i18n/locales/en/translation.json (+6 -1)
📝 apps/web/lib/i18n/locales/en_US/translation.json (+5 -1)

📄 Description

Summary

  • extract search suggestion building and command interactions into a dedicated useSearchAutocomplete hook
  • simplify SearchInput by delegating autocomplete state to the new hook while preserving existing UX

Testing

  • pnpm --filter @karakeep/web lint
  • pnpm --filter @karakeep/web typecheck

Codex Task


🔄 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/karakeep-app/karakeep/pull/2178 **Author:** [@MohamedBassem](https://github.com/MohamedBassem) **Created:** 11/27/2025 **Status:** ✅ Merged **Merged:** 11/29/2025 **Merged by:** [@MohamedBassem](https://github.com/MohamedBassem) **Base:** `main` ← **Head:** `codex/add-autocomplete-for-search-query-language` --- ### 📝 Commits (6) - [`c28a8a9`](https://github.com/karakeep-app/karakeep/commit/c28a8a93cb99fc27aa98c9c8bba1827acb4b70e6) refactor(web): split search autocomplete logic - [`f3ac233`](https://github.com/karakeep-app/karakeep/commit/f3ac23368230ba41e8c67afb3fa15346495983bc) some improvements - [`a095fa8`](https://github.com/karakeep-app/karakeep/commit/a095fa81e64691e3c565b33b7ebec0bc64dee192) restructure the code - [`570d735`](https://github.com/karakeep-app/karakeep/commit/570d7355da1e019ea448d7a8e541ad9ba999f002) fix typesafety - [`7196819`](https://github.com/karakeep-app/karakeep/commit/7196819f94b67ed1d1eeeed37e1f0b26518e3686) add feed suggestions - [`55aa811`](https://github.com/karakeep-app/karakeep/commit/55aa8112abce0bca20a7762059acf0080e3adb1e) fix ### 📊 Changes **4 files changed** (+629 additions, -61 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/components/dashboard/search/SearchInput.tsx` (+63 -59) ➕ `apps/web/components/dashboard/search/useSearchAutocomplete.ts` (+555 -0) 📝 `apps/web/lib/i18n/locales/en/translation.json` (+6 -1) 📝 `apps/web/lib/i18n/locales/en_US/translation.json` (+5 -1) </details> ### 📄 Description ## Summary - extract search suggestion building and command interactions into a dedicated `useSearchAutocomplete` hook - simplify `SearchInput` by delegating autocomplete state to the new hook while preserving existing UX ## Testing - pnpm --filter @karakeep/web lint - pnpm --filter @karakeep/web typecheck ------ [Codex Task](https://chatgpt.com/codex/tasks/task_e_69189bb2466c832c826c484a41cdb299) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 12:00:12 +03:00
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/karakeep#2015
No description provided.