feat: add mobile shell and unified search
Some checks failed
ci / 정본·보안·린트·타입·테스트 (push) Failing after 50s
ci / 워크스페이스 빌드 검증 (push) Has been skipped
ci / Supabase Edge Functions + Cloudflare Worker (push) Successful in 20s
ci / .NET API 서버 테스트 (push) Successful in 12s
deploy-site / deploy (push) Successful in 39s
ci / 모바일 린트·타입·Jest (push) Failing after 3h10m31s

This commit is contained in:
Yun Chan 2026-09-28 23:23:36 +09:00
parent f505a03d34
commit 5ca3709b32
98 changed files with 5168 additions and 2093 deletions

View file

@ -19,6 +19,7 @@ import { CommandsPage } from '../pages/CommandsPage'
import { VoiceConversationPage } from '../pages/VoiceConversationPage'
import { KnowledgeBasePage } from '../pages/KnowledgeBasePage'
import { MeetingModePage } from '../pages/MeetingModePage'
import { UnifiedSearchPage } from '../pages/UnifiedSearchPage'
import { SettingsModal } from './SettingsModal'
import { OPEN_SETTINGS_EVENT, readOpenSettingsTab, DEFAULT_SETTINGS_TAB } from '../navigation/settingsTabs'
import type { SettingsTabId } from '../navigation/settingsTabs'
@ -132,10 +133,16 @@ function Shell(): React.ReactElement {
}
}, [t, navigate])
// 키보드: Ctrl+1..3 = 1급 화면, Ctrl+, = 설정. 입력 중에는 무시.
// 키보드: Ctrl+K = 통합 검색, Ctrl+1..3 = 1급 화면, Ctrl+, = 설정.
useEffect(() => {
const onKeyDown = (e: KeyboardEvent): void => {
if (!(e.ctrlKey || e.metaKey) || e.altKey || e.shiftKey || isTypingTarget(e.target)) return
if (!(e.ctrlKey || e.metaKey) || e.altKey || e.shiftKey) return
if (e.key.toLocaleLowerCase() === 'k') {
e.preventDefault()
if (route !== 'search') navigate('search')
return
}
if (isTypingTarget(e.target)) return
const index = ['1', '2', '3'].indexOf(e.key)
if (index >= 0) {
e.preventDefault()
@ -147,7 +154,7 @@ function Shell(): React.ReactElement {
}
window.addEventListener('keydown', onKeyDown)
return () => window.removeEventListener('keydown', onKeyDown)
}, [navigate])
}, [navigate, route])
const openSettingsTab = useCallback(
(tab: SettingsTabId) => {
@ -186,6 +193,7 @@ function Shell(): React.ReactElement {
style={{ height: '100%', width: '100%' }}
>
{route === 'home' && <HomePage />}
{route === 'search' && <UnifiedSearchPage />}
{route === 'records' && <HistoryPage />}
{route === 'meetings' && <MeetingModePage />}
{route === 'conversation' && <VoiceConversationPage />}