Skip to content

Mention issues, docs and people inline and have them render live #204

Open

Description

@imshashank

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, see packages/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.ts
  • apps/web/src/features/docs/editor/rich-text-editor.tsx
  • apps/web/src/features/issues/ for the description editor
  • packages/core/src/notifications/mentions.ts
  • packages/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.

Activity

  1. added this to the Docs as a real wiki milestone on Aug 8, 2026
  2. added
    enhancement
    help wanted
    p2 medium
    area: issues
    area: docs-feature
    on Aug 8, 2026
  3. moved this to Backlog in Orbit roadmapon Aug 8, 2026
  4. added
    size: large
    points: 5
    on Aug 8, 2026
  5. imshashank commented on Aug 8, 2026

    @imshashank
    ContributorAuthor

    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.ts handles mentions in comments today. Check what is reusable before writing a second path.

  6. imshashank commented on Aug 15, 2026

    @imshashank
    ContributorAuthor

    Roughly a third of this landed. Re-scoping rather than closing.

    Done: people. #274 added a unique handle to user (packages/db/src/schema/auth.ts, with a user_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 through applyMention in comment-composer.tsx.
    • packages/core/src/notifications/mentions.ts provides newMentions and resolveHandles, and issue-service.ts and comment-service.ts turn a mention into a notification with type: 'mention' and reason: '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 in apps/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 listDocBacklinks in packages/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.

  7. imshashank commented on Sep 6, 2026

    @imshashank
    ContributorAuthor

    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.

  8. added
    points: 8
    and removed
    points: 5
    on Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: docs-featurearea: issuesenhancementhelp wantedp2 mediumpoints: 8size: large

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions