Skip to content

Add inline document mentions - #376

Merged
priethor merged 4 commits into
mainfrom
priethor/add/inline-mentions
Jun 26, 2026
Merged

Add inline document mentions#376
priethor merged 4 commits into
mainfrom
priethor/add/inline-mentions

Conversation

@priethor

@priethor priethor commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

What

Part of #160

Lets users mention Cortext documents with @ while editing, in both the page editor and the row detail editor. The autocomplete searches Cortext documents, inserts a compact inline mention, and keeps clicks inside the Cortext router. On public pages, readable mentions render as links with the current title and icon; private, deleted, or unreadable targets fall back to the saved label.

How

  • Saving mentions as anchors with the target document id.
  • Refreshing saved title/link snapshots when the target changes.
  • Rendering public mentions through normal read permissions so private titles do not leak.

Testing Instructions

  1. Open a Cortext document and type @ in a text block.
  2. Pick another Cortext document from the autocomplete menu.
  3. Save and reload the document, then confirm the mention still shows the right title and icon.
  4. Rename the target document and confirm the mention updates in the source document.
  5. Click the mention in the editor and confirm Cortext opens the target document.
  6. Open the source document publicly and confirm the mention renders correctly.

Screen recording

Grabacion.de.pantalla.2026-06-26.a.las.14.27.17.mov

priethor added 4 commits June 23, 2026 13:13
Type @ in any rich-text field to search and link a page or row. The mention is an atomic inline token that shows the target's current title in the editor and on the public site, and falls back to a stored snapshot when the plugin is inactive.
@priethor
priethor marked this pull request as ready for review June 26, 2026 12:33
@priethor priethor added type: enhancement Improvement to existing behavior. area: canvas Block editor canvas, blocks, inspector, covers, icons, and document chrome. labels Jun 26, 2026
@priethor
priethor merged commit 337dd37 into main Jun 26, 2026
13 of 14 checks passed
@priethor
priethor deleted the priethor/add/inline-mentions branch June 26, 2026 12:50
@github-actions github-actions Bot added this to the 0.2.0 milestone Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: canvas Block editor canvas, blocks, inspector, covers, icons, and document chrome. type: enhancement Improvement to existing behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant