[openstreetmap/openstreetmap-website] Implement a reliable system to @-mention users in comments (Issue #6635)

Andy Allan notifications at github.com
Tue Dec 23 10:38:59 UTC 2025


gravitystorm left a comment (openstreetmap/openstreetmap-website#6635)

A dropdown would be nice, but it's not a strict prerequisite for using ActionText Attachments in the stored text. Whichever raw text parsing we're doing at display time (e.g. regexps) could instead be done on preview/save, creating the attachment refs in the database. More complex UI can come later but at least we'd be moving to a more solid data foundation than we have now.

> requires that you have a proper rich text editor that is able to generate attachment references using some user friendly user interface which is of course exactly what ActionText does with it's trix editor I assume.

I know that ActionText is becoming more plugable with its front ends, for example 37Signals has an alternative to Trixie ([called Lexxy](https://github.com/basecamp/lexxy/)) under development. I haven't looked into the details to see if we're better off moving towards one of these or making our own thing which just does the individual features that we need.

> How would this work with third party apps that are consuming changeset comments via API?

I would expect any references stored server-side to be rendered appropriately, whether shown either as html on the site or as api text. For example, the site might include a hover-card (like when you hover over a name here on github) but the API would probably just have the attachment rendered to an html link around the username.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6635#issuecomment-3686129066
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/6635/3686129066 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251223/902697e3/attachment-0001.htm>


More information about the rails-dev mailing list