feat: person @mentions edit-mode infrastructure (PR-B1, #362) #369

Merged
marcel merged 26 commits from feat/person-mentions-issue-362-frontend-b1 into main 2026-04-29 08:05:49 +02:00
Showing only changes of commit 793496440c - Show all commits

View File

@@ -103,7 +103,7 @@ async function selectPerson(person: Person) {
const after = value.slice(cursorPos);
value = before + replacement + after;
if (!mentionedPersons.some((m) => m.personId === person.id)) {
if (!mentionedPersons.some((existing) => existing.personId === person.id)) {
mentionedPersons = [...mentionedPersons, { personId: person.id!, displayName }];
}