Mentions: @-suggestions, marked posts and a list #131

Merged
littlefox merged 2 commits from issue-102-mentions into main 2026-10-18 21:36:27 +00:00
Owner

Closes #102

  • How a mention is written (DESIGN): @ plus the name without a parenthesised part ("@Anna Andersson"), plain Latin-1 every client shows. A text mentions you when your name is in it as whole words, with or without @, any case; a first name alone never counts; your own texts don't.
  • kom_client::mentions: short_name, mention_of, find.
  • Posts that mention you: "Nämner dig" badge on the post being read, a bar on thread cards, the name marked in the text. Found ones are kept on the device (newest 50) and the latest ten are listed under "Nämner dig" at the top of the side panel (Folk tab on phones).
  • Composer: @ and two letters before the cursor ask the server for matching persons; choosing one writes @Name , and that @ is done (no new suggestions for it).
  • Seed: Bertil's reply to 256 mentioning Tove (text 257, Formatering, which only Tove follows).

Verified: unit tests for names and matching (whole words, case, @ or not, not first names, not "Tove Trådssons"); new mentions.spec.ts on desktop/Android/iPhone (marked card and name, the list after a new login, opening from it, the badge; suggestions, choosing, no re-suggestion — 15/15 repeats after fixing a race where the chosen name was suggested again); full e2e 205/205 with main merged; clippy native/wasm/desktop clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8

Closes #102 - How a mention is written (DESIGN): `@` plus the name without a parenthesised part ("@Anna Andersson"), plain Latin-1 every client shows. A text mentions you when your name is in it as whole words, with or without `@`, any case; a first name alone never counts; your own texts don't. - `kom_client::mentions`: `short_name`, `mention_of`, `find`. - Posts that mention you: "Nämner dig" badge on the post being read, a bar on thread cards, the name marked in the text. Found ones are kept on the device (newest 50) and the latest ten are listed under "Nämner dig" at the top of the side panel (Folk tab on phones). - Composer: `@` and two letters before the cursor ask the server for matching persons; choosing one writes `@Name `, and that `@` is done (no new suggestions for it). - Seed: Bertil's reply to 256 mentioning Tove (text 257, Formatering, which only Tove follows). Verified: unit tests for names and matching (whole words, case, `@` or not, not first names, not "Tove Trådssons"); new `mentions.spec.ts` on desktop/Android/iPhone (marked card and name, the list after a new login, opening from it, the badge; suggestions, choosing, no re-suggestion — 15/15 repeats after fixing a race where the chosen name was suggested again); full e2e 205/205 with main merged; clippy native/wasm/desktop clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
The server has no mentions: a mention is '@' and a name in the text,
plain Latin-1 every client shows. Posts that mention you (your name as
whole words, with or without @) get a badge or a bar with the name
marked, and are collected under 'Nämner dig' in the side panel, kept on
the device. Typing @ in the composer suggests people from the server.

Refs #102

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Merge remote-tracking branch 'origin/main' into issue-102-mentions
All checks were successful
ci / check (push) Successful in 7m54s
ci / desktop (push) Successful in 12m19s
ci / e2e (push) Successful in 18m24s
e4c2bb0924
# Conflicts:
#	crates/devseed/src/main.rs
#	docs/DESIGN.md
#	docs/ROADMAP.md
littlefox referenced this pull request from a commit 2026-10-19 05:23:04 +00:00
Sign in to join this conversation.
No description provided.