ui: remove conversation box, text input, ChatBubble (voice-only now)
This commit is contained in:
@@ -5,7 +5,6 @@ import Timer from './components/Timer';
|
||||
import Notes from './components/Notes';
|
||||
import WhiteNoise from './components/WhiteNoise';
|
||||
import KiraAvatar from './components/KiraAvatar';
|
||||
import ChatBubble from './components/ChatBubble';
|
||||
import PetZone from './components/PetZone';
|
||||
import Wardrobe from './components/Wardrobe';
|
||||
import Particles from './components/Particles';
|
||||
@@ -27,7 +26,6 @@ export default function App() {
|
||||
loadingPrefs,
|
||||
identify,
|
||||
setPreference,
|
||||
sendText,
|
||||
startRecording,
|
||||
stopRecording,
|
||||
tasks,
|
||||
@@ -37,7 +35,6 @@ export default function App() {
|
||||
const [currentSceneId, setCurrentSceneId] = useState('cozy-room');
|
||||
const [currentOutfit, setCurrentOutfit] = useState('cozy-hoodie');
|
||||
const [currentAcc, setCurrentAcc] = useState<string | null>(null);
|
||||
const [textInput, setTextInput] = useState('');
|
||||
const [live2dReady, setLive2dReady] = useState(false);
|
||||
const kiraModelRef = useRef<any>(null);
|
||||
|
||||
@@ -69,11 +66,6 @@ export default function App() {
|
||||
else startRecording();
|
||||
};
|
||||
|
||||
const handleTextSend = () => {
|
||||
if (!textInput.trim()) return;
|
||||
sendText(textInput.trim());
|
||||
setTextInput('');
|
||||
};
|
||||
|
||||
const handleWelcome = (name: string) => {
|
||||
identify(name);
|
||||
@@ -153,19 +145,6 @@ export default function App() {
|
||||
<Notes />
|
||||
<TaskList tasks={tasks} addTask={addTask} />
|
||||
</div>
|
||||
<div className="shrink-0">
|
||||
<ChatBubble messages={messages} isKiraSpeaking={isKiraSpeaking} userName={userName} />
|
||||
</div>
|
||||
<div className="shrink-0 flex gap-2">
|
||||
<input
|
||||
value={textInput}
|
||||
onChange={(e) => setTextInput(e.target.value)}
|
||||
onKeyDown={(e) => e.key === 'Enter' && handleTextSend()}
|
||||
placeholder={`hey ${userName}...`}
|
||||
className="flex-1 bg-white/40 rounded-xl px-3 py-2 text-sm text-kira-plum placeholder-kira-plum/30 border-0 focus:outline-none focus:ring-2 focus:ring-kira-pink/30"
|
||||
/>
|
||||
<button onClick={handleTextSend} className="btn-kira px-4 text-sm shrink-0">Send</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* CENTER: Avatar UI overlay (Live2D renders on the background stage) */}
|
||||
|
||||
Reference in New Issue
Block a user