Repository navigation
Description
Current status, September 22
This is the active home for the wiki-link work absorbed from #201. People mentions shipped in #274 and URL-based backlinks already exist, but typed issue/doc references, the shared link store and their round-trip and permission behavior remain open. Keep #199 linked and do not count #201 being closed as proof those parts shipped.
Original requirements
Writing a spec in Orbit and wanting to point at the three issues it covers means pasting three URLs. They render as URLs. They do not show the issue title, they do not show whether it is done, and they do not update when it moves.
The same is true in the other direction: an issue description that references a doc is a link and nothing more.
What to build
Inline references that render as live chips, in both the doc editor and the issue description editor.
#for issues. Typing#opens a picker filtered as you type, matching identifier and title. Inserting one produces a chip showing the identifier, the title and the current state, which updates when the issue changes.@for people. A mention that resolves to a user, renders with their name and avatar, and notifies them. Mentions already exist in comments, seepackages/core/src/notifications/mentions.ts, so the notification half may already be solved. Check before rebuilding it.[[or a second trigger for documents. Covered by the wiki links issue in this milestone. Share the suggestion plugin rather than writing two.- Projects and sprints, if the picker infrastructure makes them nearly free.
Details that matter
Store the id, render the label. A chip stores the entity id. The title is looked up at render time so a renamed issue does not leave a stale label behind. This also means a reference survives an issue moving team, as long as resolution goes through issue_identifier_alias the way the rest of the app does.
Permissions at render time. A doc readable by the whole workspace can contain a reference to an issue on a private team. The chip must degrade to something inert for a reader who may not see the target, and it must not leak the title. This is the same class of problem as the backlinks panel and it needs the same care.
Published docs. A doc published at /d/[token] is readable by anyone with the link. Issue chips inside it must not render titles or states to an anonymous reader. Decide whether they render as plain text or disappear, and test it.
Markdown round trip. Docs import and export markdown. Decide the serialised form and make sure an export followed by an import preserves the reference.
Notifications. Mentioning a person in a doc should notify them, the same way a comment mention does, and should respect their preferences and quiet hours. Referencing an issue should probably not notify anybody, or every spec will spam a dozen inboxes. Say what you chose.
Files
apps/web/src/features/docs/editor/extensions.tsapps/web/src/features/docs/editor/rich-text-editor.tsxapps/web/src/features/issues/for the description editorpackages/core/src/notifications/mentions.tspackages/shared/src/policy
Related
The wiki links issue in this milestone builds the same suggestion infrastructure for documents. Whoever starts first should build it generically and say so on both threads.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsBacklog
Activity
imshashank commentedon Aug 8, 2026
Shares infrastructure with #201, so coordinate before starting. Both need a TipTap suggestion plugin on the same editor. Build it once, generically, and say on both threads who is doing it.
The mention half may already be partly solved:
packages/core/src/notifications/mentions.tshandles mentions in comments today. Check what is reusable before writing a second path.imshashank commentedon Aug 15, 2026
Roughly a third of this landed. Re-scoping rather than closing.
Done: people. #274 added a unique
handletouser(packages/db/src/schema/auth.ts, with auser_handle_idx) and built mentions on top of it:@in the rich text editor opens a member picker (apps/web/src/features/docs/editor/rich-text-editor.tsx), and the comment composer does the same throughapplyMentionincomment-composer.tsx.packages/core/src/notifications/mentions.tsprovidesnewMentionsandresolveHandles, andissue-service.tsandcomment-service.tsturn a mention into a notification withtype: 'mention'andreason: 'mentioned'. Only new mentions notify, so an edit does not re-notify everyone.So the "mention a person" half works end to end, including the notification, which was the part that made it worth doing.
Not done: issues and docs. There is no
#-style issue mention and no doc mention anywhere. Nothing parses an issue identifier or a doc reference in editor content, and nothing renders one as a live chip. Grepping for an issue-mention node or an identifier pattern inapps/web/src/features/docs/editor/returns nothing.That leaves the biggest part of this issue outstanding, because the value here was never the autocomplete, it was the live render: an issue mentioned in a doc showing its current state and title, so a stale reference is visibly stale.
Adjacent, and worth knowing about. Docs did get a backlinks panel, in
listDocBacklinksinpackages/core/src/content/doc-service.ts. It works by matching/docs/<id>inside document content, which is a URL match rather than a mention, so it does not give you anything to build on here. See #201, which I have re-scoped for the same reason.Revised scope for this issue. Inline mention and live render for issues and docs. People are done. The editor already has the suggestion menu, the trigger handling and the picker, so the interaction pattern is settled and can be copied rather than designed.
imshashank commentedon Sep 6, 2026
Re-scoped, absorbing #201. Scope now: one link store written on save,
[[for docs with resolution by title and an id fallback,#for issues rendering as a live chip that degrades safely for a reader who may not see the target, and the backlinks panel reading from the store instead of the URL substring match. People mentions are done. Whoever takes this owns the suggestion plugin for both triggers.