Skip to content

feat: implement backlink mentions for notes, people, and companies#3627

Merged
ComputelessComputer merged 4 commits intomainfrom
devin/1770183656-backlink-mentions
Feb 7, 2026
Merged

feat: implement backlink mentions for notes, people, and companies#3627
ComputelessComputer merged 4 commits intomainfrom
devin/1770183656-backlink-mentions

Conversation

@devin-ai-integration
Copy link
Contributor

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:

  • Wired up handleSearch in both RawEditor and EnhancedEditor to query the Orama search index
  • Added type badges (Note/Person/Company) to the mention dropdown with color-coded styling
  • Added mapping_mention table schema and indexes (mentionsBySource, mentionsByTarget) to TinyBase for future backlink tracking
  • Created utility functions for extracting mentions from Tiptap content

Review & Testing Checklist for Human

  • Test @ mentions in the editor - Type @ followed by a search term and verify results appear for sessions, humans, and organizations
  • Verify mention navigation - Click on an inserted mention and confirm it navigates to the correct entity page (relies on window.__HYPR_NAVIGATE__ being configured)
  • Review pnpm-lock.yaml changes - The diff shows apps/control being removed from the lockfile which appears unrelated to this PR
  • Note: mention sync utilities are not wired up - The extractMentionsFromTiptap and syncMentions functions in utils/mentions.ts were created but are not yet called from the editor change handlers. Backlink tracking will require additional integration work.
  • Consider persister for mapping_mention - The table schema exists but no persister was added to save/load mention mappings

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

@netlify
Copy link

netlify bot commented Feb 4, 2026

Deploy Preview for hyprnote-storybook ready!

Name Link
🔨 Latest commit 1e6bf0a
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/69861c2d96e30b0008450fc2
😎 Deploy Preview https://deploy-preview-3627--hyprnote-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Feb 4, 2026

Deploy Preview for hyprnote ready!

Name Link
🔨 Latest commit 1e6bf0a
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/69861c2d8220cd0008fe855a
😎 Deploy Preview https://deploy-preview-3627--hyprnote.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

devin-ai-integration bot and others added 3 commits February 6, 2026 23:07
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>
@ComputelessComputer ComputelessComputer force-pushed the devin/1770183656-backlink-mentions branch from df6d2b3 to 67677b1 Compare February 6, 2026 14:08
@ComputelessComputer ComputelessComputer merged commit c658674 into main Feb 7, 2026
19 checks passed
@ComputelessComputer ComputelessComputer deleted the devin/1770183656-backlink-mentions branch February 7, 2026 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant