Package su.onno.ui.comments
package su.onno.ui.comments
-
ClassDescriptionOne stored comment in the
onno_commentsthread of a single entity.Resolves comment authors' avatar image URLs, live, from the identity catalog — the one the login links to viaUiIdentityLink(e.g.The discussion-thread endpoint.The request body for posting a comment.The request body for toggling a reaction.Configuration for the/api/commentsdiscussion-thread feature, under theonno.comments.*namespace.Settings for@-mentions in comment bodies — letting a comment reference any catalog or document (users included) the author can read.Published when a freshly posted comment replies to another comment — the reply counterpart ofEntityMentionedEvent, with the same contract: the framework ships the event with no mandatory consumer; delivery (in-app notifications, mail, a cross-node bus) is purely additive via a Spring@EventListener.Wires the/api/commentsdiscussion-thread endpoint, itsCommentServicestore, and theonno.comments.*configuration.Persistence foronno_comments: the framework-owned thread store behind the/api/commentsendpoint.Published once for every readable entity mention in a freshly posted comment — the mention counterpart ofDocumentPostedEvent.The comment mention/reference typeahead source:GET /api/mentions?q=…&kind=…fans the query across readable catalogs and/or documents and returns a unified, ranked suggestion list.A typed reference embedded in a comment body — the comment-thread analogue ofRef<T>.Resolves the entity mentions in a comment thread to{display, avatarUrl, readable}, live and per-viewer — the mention counterpart ofRefResolver, batched the wayCommentAuthorAvatarsbatches author avatars.A mention resolved for one viewer: identity + (when readable) its live display and avatar.The on-the-wire syntax for a comment link:@[Display](kind/name/id)for a mention and#[Display](kind/name/id)for a reference.One mention occurrence found in a body: its ref, the snapshot label, and the exact matched text.