From 7ccd541d403749d1dd515d17dab294859f736c48 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 29 Apr 2026 19:22:37 +0200 Subject: [PATCH] fix(hover-card): use orientation-aware relationship labels; allow spaces in mention MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PersonHoverCard was showing the hovered person as their own parent when stored as the object side of a PARENT_OF row — now uses chipLabel/otherName from relationshipLabels (same helpers the person detail page uses) to resolve the correct name and label from the caller's perspective. PersonMentionEditor: add allowSpaces:true so typing a last name after a space no longer exits mention mode mid-query. Co-Authored-By: Claude Sonnet 4.6 --- .../src/lib/components/PersonHoverCard.svelte | 18 +++---------- .../components/PersonHoverCard.svelte.spec.ts | 25 +++++++++++++++++++ .../lib/components/PersonMentionEditor.svelte | 1 + 3 files changed, 29 insertions(+), 15 deletions(-) diff --git a/frontend/src/lib/components/PersonHoverCard.svelte b/frontend/src/lib/components/PersonHoverCard.svelte index 41dcc428..f828702e 100644 --- a/frontend/src/lib/components/PersonHoverCard.svelte +++ b/frontend/src/lib/components/PersonHoverCard.svelte @@ -1,6 +1,7 @@