From 730d13459c119ac3e1abebb1851a3cfd15af570f Mon Sep 17 00:00:00 2001 From: amay077 Date: Mon, 15 Sep 2025 19:41:17 +0900 Subject: [PATCH] fix: resolve lint and formatting errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add useId hook for unique ID generation in SettingsControls - Fix label accessibility with proper htmlFor attribute - Apply Biome formatting rules to all modified files 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../components/chatForm/ChatInput.tsx | 2 +- src/components/SettingsControls.tsx | 17 +++++++++++++---- src/server/config/config.ts | 5 ++++- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/app/projects/[projectId]/components/chatForm/ChatInput.tsx b/src/app/projects/[projectId]/components/chatForm/ChatInput.tsx index 7485dc4..e707fd4 100644 --- a/src/app/projects/[projectId]/components/chatForm/ChatInput.tsx +++ b/src/app/projects/[projectId]/components/chatForm/ChatInput.tsx @@ -63,7 +63,7 @@ export const ChatInput: FC = ({ // IMEで変換中の場合は送信しない if (e.key === "Enter" && !e.nativeEvent.isComposing) { const isEnterSend = config?.enterKeyBehavior === "enter-send"; - + if (isEnterSend && !e.shiftKey) { // Enter: Send mode e.preventDefault(); diff --git a/src/components/SettingsControls.tsx b/src/components/SettingsControls.tsx index b177f04..c433d8e 100644 --- a/src/components/SettingsControls.tsx +++ b/src/components/SettingsControls.tsx @@ -27,6 +27,7 @@ export const SettingsControls: FC = ({ className = "", }: SettingsControlsProps) => { const checkboxId = useId(); + const enterKeyBehaviorId = useId(); const { config, updateConfig } = useConfig(); const queryClient = useQueryClient(); @@ -116,16 +117,24 @@ export const SettingsControls: FC = ({
{showLabels && ( -