Notes: 'The title is too short to search.' internal message shown under Unlinked mentions; search short titles by whole word #605

Open
opened 2026-10-01 09:38:26 +00:00 by kayg · 0 comments
Owner

Owner report (2026-10-01, Notes, "Unlinked mentions" card)

"wtf does 'The title is too short to search' mean and why does that debug message appear in the UI?"
For a note titled "Gym", the Unlinked mentions card shows a dashed empty box ("No unlinked mentions yet.") plus a raw internal reason line ("The title is too short to search.").
Fix:

  • Never show internal reasons in the UI.
  • If the title is too short to search for mentions reliably, either search anyway with a whole-word match (better: "Gym" as a whole word is a fine query; set the minimum to 2 letters with word boundaries), or hide the Unlinked mentions card for that note.
  • When there are no mentions, show one quiet empty line, not a dashed box plus a sentence; or collapse the card to its header with "0" (the existing count chip).
  • Sweep for other debug/internal strings shown to Users (grep for user-facing strings that explain implementation limits) and route them to logs.
    Test: a unit test for the whole-word search on short titles; an e2e for a note "Gym" with a mention in another note → it is listed; a note with no mentions → no reason text.
## Owner report (2026-10-01, Notes, "Unlinked mentions" card) "wtf does 'The title is too short to search' mean and why does that debug message appear in the UI?" For a note titled "Gym", the Unlinked mentions card shows a dashed empty box ("No unlinked mentions yet.") **plus** a raw internal reason line ("The title is too short to search."). **Fix:** - Never show internal reasons in the UI. - If the title is too short to search for mentions reliably, either search anyway with a whole-word match (better: "Gym" as a whole word is a fine query; set the minimum to 2 letters with word boundaries), or hide the Unlinked mentions card for that note. - When there are no mentions, show **one** quiet empty line, not a dashed box plus a sentence; or collapse the card to its header with "0" (the existing count chip). - Sweep for other debug/internal strings shown to Users (grep for user-facing strings that explain implementation limits) and route them to logs. **Test:** a unit test for the whole-word search on short titles; an e2e for a note "Gym" with a mention in another note → it is listed; a note with no mentions → no reason text.
Sign in to join this conversation.
No labels
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
kayg/calternal#605
No description provided.