Neuer Inline-Atom mention {userId, username}: Markdown-Regel @username
(E-Mail-sicher über Wortgrenzen), Serializer, HTML-Span dt-mention,
Plain-Text für die Suche, Extraktor extractMentionUserIds. Neue
Endpoints GET /users/search (auth, min. 2 Zeichen, Limit 10,
Rate-Limit) und GET /users/brief (Batch-Auflösung für live
Anzeigenamen; gelöschte Nutzer → toter Chip). Editor: MentionView mit
Live-displayName, MentionAutocomplete (Klon des Wikilink-Musters),
Chip-CSS. 5 Unit-Tests.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0155v2aT8AG1kZDQEZiCLBWC
11 lines
280 B
TypeScript
11 lines
280 B
TypeScript
/**
|
|
* Minimal public identity of a user (issue #150): what the instance-wide
|
|
* mention search and the mention rendering expose — never more than id,
|
|
* username, and display name.
|
|
*/
|
|
export interface UserBriefView {
|
|
id: string;
|
|
username: string;
|
|
displayName: string;
|
|
}
|