diff --git a/src/components/Buttons/AudioButton/AudioButton.tsx b/src/components/Buttons/AudioButton/AudioButton.tsx index 3905fd3..cfb6b2a 100644 --- a/src/components/Buttons/AudioButton/AudioButton.tsx +++ b/src/components/Buttons/AudioButton/AudioButton.tsx @@ -68,7 +68,7 @@ const AudioButton = () => { tabIndex={0} // ← 키보드 포커스 가능 onMouseDown={async (event: MouseEvent) => { event.preventDefault(); - if (audioToggledOn) cancelTTS(); // 🔴 토글 OFF 직전 즉시 중단 + if (audioToggledOn) cancelTTS(); // 토글 OFF 직전 즉시 중단 await toggleAudio(); }} onKeyDown={async (e) => { diff --git a/src/components/ChatBotButton/ChatBotButton.tsx b/src/components/ChatBotButton/ChatBotButton.tsx index 4a26a4b..f2f80f2 100644 --- a/src/components/ChatBotButton/ChatBotButton.tsx +++ b/src/components/ChatBotButton/ChatBotButton.tsx @@ -9,7 +9,7 @@ import "./ChatBotButton.css"; * Toggles opening and closing of the chat window when general.embedded is false. */ const ChatBotButton = () => { - // ✅ 디버그 토글: true면 배지를 무조건 보여줌(표시 여부 문제 확인용) + const FORCE_BADGE_DEBUG = true; // handles settings diff --git a/src/components/ChatBotContainer.tsx b/src/components/ChatBotContainer.tsx index d913761..eb55904 100644 --- a/src/components/ChatBotContainer.tsx +++ b/src/components/ChatBotContainer.tsx @@ -193,4 +193,4 @@ const ChatBotContainer = ({ ); }; -export default ChatBotContainer; +export default ChatBotContainer; \ No newline at end of file diff --git a/src/components/ChatHistoryButton/ChatHistoryButton.tsx b/src/components/ChatHistoryButton/ChatHistoryButton.tsx index a5c15c4..2399956 100644 --- a/src/components/ChatHistoryButton/ChatHistoryButton.tsx +++ b/src/components/ChatHistoryButton/ChatHistoryButton.tsx @@ -1,69 +1,4 @@ -import { useState, MouseEvent } from "react"; - -import { useChatHistoryInternal } from "../../hooks/internal/useChatHistoryInternal"; -import { useSettingsContext } from "../../context/SettingsContext"; -import { useStylesContext } from "../../context/StylesContext"; - -import "./ChatHistoryButton.css"; - -/** - * Supports viewing of old messages. - */ -const ChatHistoryButton = () => { - // handles settings - const { settings } = useSettingsContext(); - - // handles styles - const { styles } = useStylesContext(); - - // handles chat history - const { showChatHistory } = useChatHistoryInternal(); - - // tracks if view history button is hovered - const [isHovered, setIsHovered] = useState(false); - - // styles for view chat history hovered button - const chatHistoryButtonHoveredStyle: React.CSSProperties = { - color: settings.general?.primaryColor, - borderColor: settings.general?.primaryColor, - ...styles.chatHistoryButtonStyle, // by default inherit the base style - ...styles.chatHistoryButtonHoveredStyle - }; - - /** - * Handles mouse enter event on view chat history button. - */ - const handleMouseEnter = () => { - setIsHovered(true); - }; - - /** - * Handles mouse leave event on view chat history button. - */ - const handleMouseLeave = () => { - setIsHovered(false); - }; - - return ( -
-
{ - event.preventDefault(); - showChatHistory(); - }} - className="rcb-view-history-button" - role="button" - tabIndex={0} - > -

- {settings.chatHistory?.viewChatHistoryButtonText} -

-
-
- ); -}; - -export default ChatHistoryButton; +// ChatHistoryButton.tsx — 히스토리 버튼 완전 비활성화(렌더 X) +export default function ChatHistoryButton() { + return null; +} diff --git a/src/context/BotStatesContext.tsx b/src/context/BotStatesContext.tsx index f94491b..e1b2bc9 100644 --- a/src/context/BotStatesContext.tsx +++ b/src/context/BotStatesContext.tsx @@ -121,7 +121,6 @@ const BotStatesProvider = ({ ?? window.innerWidth); useEffect(() => { setUnreadCount(0); // ✅ 앱 처음 켰을 때 무조건 0부터 시작 - // setHasFlowStarted(false); // 기본값이 false면 생략 }, []); // ✅ 앱 최초 진입 시각 기록 diff --git a/src/types/Message.ts b/src/types/Message.ts index d82b710..a697e3a 100644 --- a/src/types/Message.ts +++ b/src/types/Message.ts @@ -7,7 +7,7 @@ export type Message = { timestamp: string; tags?: Array; contentWrapper?: React.ComponentType<{ children: React.ReactNode }>; - // 👇 추가 + // 밑에 추가 isHistory?: boolean; // 과거 로드된 메시지 isRead?: boolean; // 읽음 여부 }