feat: implement backlink mentions for notes, people, and companies#3627
Merged
ComputelessComputer merged 4 commits intomainfrom Feb 7, 2026
Merged
feat: implement backlink mentions for notes, people, and companies#3627ComputelessComputer merged 4 commits intomainfrom
ComputelessComputer merged 4 commits intomainfrom
Conversation
✅ Deploy Preview for hyprnote-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for hyprnote ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
- Wire up handleSearch in raw.tsx and enhanced/editor.tsx to use Orama search - Add type badges (Note/Person/Company) to mention dropdown UI - Add type-based styling for mentions (different colors per entity type) - Add mapping_mention table schema to TinyBase for backlink tracking - Add mentionsBySource and mentionsByTarget indexes - Create utility functions for extracting and syncing mentions Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
df6d2b3 to
67677b1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: implement backlink mentions for notes, people, and companies
Summary
This PR enables the existing
@mention system in the note editor to search and link to notes (sessions), people (humans), and companies (organizations) using the existing Orama search engine.Changes:
handleSearchin bothRawEditorandEnhancedEditorto query the Orama search indexmapping_mentiontable schema and indexes (mentionsBySource,mentionsByTarget) to TinyBase for future backlink trackingReview & Testing Checklist for Human
@followed by a search term and verify results appear for sessions, humans, and organizationswindow.__HYPR_NAVIGATE__being configured)apps/controlbeing removed from the lockfile which appears unrelated to this PRextractMentionsFromTiptapandsyncMentionsfunctions inutils/mentions.tswere created but are not yet called from the editor change handlers. Backlink tracking will require additional integration work.Recommended test plan: Open the desktop app, create or edit a note, type
@and search for an existing session/person/company. Verify the dropdown shows results with correct type badges and that selecting one inserts a styled mention link.Notes