refactor(transcription): hoist @mention constants to shared module
Single source of truth for MAX_QUERY_LENGTH, SEARCH_DEBOUNCE_MS, and SEARCH_RESULT_LIMIT — MentionDropdown imports MAX_QUERY_LENGTH; PersonMentionEditor imports the debounce + result-limit; the spec's mirror now imports SEARCH_DEBOUNCE_MS so it can never drift. Unblocks the displayName length-cap fix (Felix #3 on PR #629). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -9,9 +9,7 @@ import type { PersonMention } from '$lib/shared/types';
|
||||
import { deserialize, serialize } from '$lib/shared/discussion/mentionSerializer';
|
||||
import { debounce } from '$lib/shared/utils/debounce';
|
||||
import MentionDropdown from './MentionDropdown.svelte';
|
||||
|
||||
const SEARCH_DEBOUNCE_MS = 150;
|
||||
const SEARCH_RESULT_LIMIT = 5;
|
||||
import { SEARCH_DEBOUNCE_MS, SEARCH_RESULT_LIMIT } from './mentionConstants';
|
||||
|
||||
type Person = components['schemas']['Person'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user