feat: Internal document links in LinkPopup with ref:// navigation#10638
Open
PabloSergi wants to merge 1 commit intohcengineering:developfrom
Open
feat: Internal document links in LinkPopup with ref:// navigation#10638PabloSergi wants to merge 1 commit intohcengineering:developfrom
PabloSergi wants to merge 1 commit intohcengineering:developfrom
Conversation
|
Connected to Huly®: UBERF-15899 |
…tion LinkPopup now searches only documents (using findAll with document.class.Document) instead of all object types. Clicking a result generates a ref:// link. The link click handler navigates internally for ref:// URLs. Register ref:// protocol in TipTap Link extension. This code was written with Claude Code as a proof-of-concept. I'm not a frontend developer and not familiar with Svelte — this is just an example solution for internal document linking. Feel free to refactor as needed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Pavel Sergeev <pmsergeev@gmail.com>
ce060fb to
d6c9fea
Compare
Member
|
Hi @PabloSergi , |
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.
Summary
Hey team! I'm not a great developer by any means, but I'm absolutely certain this feature is critically needed for your project. It's a small change, but without it the platform falls significantly behind Notion — it's about internal document links with quick navigation.
Right now you can only insert URL links in the editor, which is really limiting. Together with Claude Code, I implemented the ability to search for internal documents right in the Link popup and jump between them via
ref://links.I realize this is probably not the cleanest code — I know C# at a decent level but I'm really not familiar with frontend development, especially Svelte and the rest of the stack. Please take a look at this PR, maybe someone on your team can quickly refactor it and integrate it into production. This feature is incredibly important for building an internal wiki from Documents. I honestly don't know why this hasn't been implemented yet, but it would be amazing if you could finish this up.
Changes
findAllwithdocument.class.Document) instead of only accepting URLs. Selecting a document generates aref://linkref://link clicks — navigate internally instead of opening a new tabref://as a valid protocol in TipTap Link extension@hcengineering/documentdependency to text-editor-resourcesTest plan
ref://link🤖 Generated with Claude Code