mirror of
https://github.com/nexu-io/open-design.git
synced 2026-06-01 03:14:35 +07:00
Adds a General section to Settings holding a "Press Enter to send" preference, plus two related composer fixes. - General section: a reusable settings toggle card (icon + title + description + switch) wired to a new AppConfig.enterToSend flag, threaded through ProjectView / DesignSystemFlow → ChatPane → ChatComposer and persisted to localStorage. New i18n keys across all 19 locales. - Composer send key: when enterToSend is on, bare Enter sends and ⌘/Ctrl + Enter inserts a newline; off keeps the original ⌘/Ctrl + Enter sends behavior. The slash palette and @-mention popover keep priority on Enter/Escape. - Escape stops an in-flight run (mirrors the Stop button) when no popover is open. - IME fix: Enter arriving mid-composition (macOS Korean/Japanese/…) is the IME's commit key, so it no longer sends — which previously shipped the text without the composing syllable and stranded that character in the box. The next Enter (composition finished) sends and clears cleanly. Unit coverage in ChatComposer.send-key.test.tsx for every branch. |
||
|---|---|---|
| .. | ||
| analytics | ||
| artifacts | ||
| components | ||
| edit-mode | ||
| helpers | ||
| hooks | ||
| i18n | ||
| lib | ||
| media | ||
| observability | ||
| providers | ||
| runtime | ||
| state | ||
| styles | ||
| utils | ||
| analytics-app-version.test.tsx | ||
| analytics-configure-globals.test.ts | ||
| analytics-identity.test.ts | ||
| analytics-scrub.test.ts | ||
| api-attachment-context.test.ts | ||
| App.test.ts | ||
| comments.test.ts | ||
| host-boundary.test.ts | ||
| quickSwitcherRecents.test.ts | ||
| router-marketplace.test.ts | ||
| router.navigate.test.tsx | ||
| router.test.ts | ||
| sidecar-proxy.test.ts | ||