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:
6
frontend/src/lib/shared/discussion/mentionConstants.ts
Normal file
6
frontend/src/lib/shared/discussion/mentionConstants.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
/** Shared knobs for the @mention typeahead. Single source of truth for
|
||||
* the dropdown component and the host editor — keeps the layered length
|
||||
* cap and the debounce window consistent across both files. */
|
||||
export const MAX_QUERY_LENGTH = 100;
|
||||
export const SEARCH_DEBOUNCE_MS = 150;
|
||||
export const SEARCH_RESULT_LIMIT = 5;
|
||||
Reference in New Issue
Block a user