mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-24 18:19:05 +02:00
- Add `search` to UI BOARD_ROUTE_ROOTS so sidebar Search and CommandPalette full-search handoff get the company prefix (e.g. /PAP/search?q=...) instead of landing on the unprefixed /search and triggering "Company not found". - Improve fuzzy search for transposition typos. The previous pg_trgm similarity() fuzzy clause compared the entire query against the entire title, which collapses on adjacent-character swaps and dilutes against long titles. Switch the fuzzy clause to per-token word_similarity against title and identifier. Also expand each token of length >= 5 with drop-one-character variants so single-transposition typos (e.g. "serach" -> "search", "mibile" -> "mobile", "mobail" -> "mobile") recover via a near-substring match. - On exact identifier auto-redirect, strip any #document-/#comment- suffix so the redirect lands on the issue root rather than the top-scored snippet deep link. Co-Authored-By: Paperclip <noreply@paperclip.ing>