feat(shared-ui): locale-aware highlighting + success feedback for InputBar

1. Extract hardcoded German highlight patterns into locale-specific sets
   (de, en, fr, it, es). InputBar accepts `locale` or custom
   `highlightPatterns` prop, defaulting to German for backward compat.

2. Add visual success feedback after creating: input bar flashes green
   with a checkmark icon for 1.2s, confirming the action was successful.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-23 20:55:31 +01:00
parent 45db42720c
commit 9edd1c6e2e
5 changed files with 227 additions and 62 deletions

View file

@ -3,7 +3,10 @@ export { default as InputBar } from './InputBar.svelte';
export { default as QuickInputBar } from './InputBar.svelte';
export { default as InputBarContextMenu } from './InputBarContextMenu.svelte';
export { default as InputBarHelpModal } from './InputBarHelpModal.svelte';
export type { QuickInputItem, QuickAction, CreatePreview } from './types';
export type { QuickInputItem, QuickAction, CreatePreview, HighlightPattern } from './types';
// Highlight patterns (locale-aware syntax highlighting)
export { getHighlightPatterns } from './highlightPatterns';
// Recent input history (tags, references)
export {