feat(desktop): information architecture overhaul — home, records, meetings first

Wave 2 of the 2026-09-28 design overhaul ("records are the main
character, a quiet instrument"). Decisions: design.md.

- Shell: sidebar with primary Home / Records / Meetings (Ctrl+1..3) and a
  secondary "Tools" group; every item is a button with aria-current.
  The status bar is removed — its "100% LOCAL PRIVACY · ZERO CLOUD SYNC"
  claim contradicted device sync; the sidebar shows only queried state.
- Navigation context (routes, params, back, useRouteRequest) so Home can
  open a specific meeting or record.
- Home replaces the dashboard: dictation key, start actions, only real
  problems, one-line summary, recent records and meetings, file
  transcription, free-tier limits.
- Settings become a full-screen route with vertical tabs (tabs no longer
  clip) and a shared row grammar; long-standing bugs fixed: team and
  enterprise tiers crashed the license tab (currentTier undefined),
  first-run onboarding could not be left, Pro+ saw "upgrade to Pro+".
- Records: date-grouped single list with in-place expansion, search and
  tags together, mode/favorite filters, load more past 50, undoable
  delete. Meetings: list with search/rename/delete, summary-first detail
  (summary | transcript | documents | my notes), notes persisted locally
  instead of being lost. Tools pages cleaned up; stale-closure example
  chips and a 1550x mouse-distance bug fixed.
- Shared pieces: PageHeader, EmptyStateCard, SearchInput ("/" works),
  ConfirmDialog, notify with undo; display-labels maps domain values to
  typed i18n keys so missing keys fail to compile.
- Mono font stack falls back to Pretendard for Hangul (Korean labels no
  longer render spaced out).
- i18n: new ko/en keys via scripts/i18n-add-keys.mjs (one read-merge-
  write so parallel editors cannot clobber locale files).

Some renderer files also carried pre-existing in-flight changes (error
recovery deep links, meeting document hooks); they are included as-is.
This commit is contained in:
Yun Chan 2026-09-28 20:46:08 +09:00
parent ba9ef9741e
commit f064c93197
96 changed files with 12886 additions and 8924 deletions

View file

@ -6,13 +6,13 @@
// 앱은 로그인 없이 바로 메인 UI에 진입해서 로컬 STT/LLM을 사용할 수 있다.
// OAuth 로그인은 Settings → Cloud Sync 섹션에서 선택적으로 수행 (유료 SaaS 경로).
import { useState, useEffect, useMemo, useRef } from 'react'
import { useState, useEffect, useMemo } from 'react'
import { ThemeProvider, CssBaseline, useMediaQuery } from '@mui/material'
import { getTheme } from '@d3ro/ui/theme'
import { I18nProvider, useI18n, type I18nStorage, type Locale } from '@d3ro/i18n'
import { AppLayout } from './components/AppLayout'
import { UpgradePromptModal } from './components/UpgradePromptModal'
import { startSystemAudioCapture, stopSystemAudioCapture } from './utils/systemAudioCapture'
import { createSystemAudioCaptureController } from './utils/systemAudioCapture'
import type { ThemeMode, ConfigChangedEvent } from '@d3ro/core/types'
// Electron ConfigService에 바인딩된 i18n 영속화 어댑터
@ -44,7 +44,6 @@ function SyncedLocale(): null {
export function App(): React.ReactElement {
const [themeMode, setThemeMode] = useState<ThemeMode>('auto')
const prefersDark = useMediaQuery('(prefers-color-scheme: dark)')
const systemAudioCleanupRef = useRef<(() => void) | null>(null)
// 설정에서 테마 로드 + 변경 감지
useEffect(() => {
@ -62,28 +61,28 @@ export function App(): React.ReactElement {
return unsub
}, [])
// 시스템 오디오 캡처: 메인 프로세스의 시작/중지 요청에 응답
// 시스템 오디오 캡처: 메인 프로세스의 시작/중지 요청에 응답.
// 컨트롤러가 starting 중 stop을 취소로 처리하고 중복 start를 합쳐서, 빠른 on/off에도
// 멈출 수 없는 루프백 캡처가 남지 않는다.
useEffect(() => {
const capture = createSystemAudioCaptureController({
onPcm: (pcm16Buffer) => window.electronAPI.caption.sendSystemAudioData(pcm16Buffer),
})
const unsubStart = window.electronAPI.caption.onStartSystemAudio(() => {
startSystemAudioCapture((pcm16Buffer) => {
window.electronAPI.caption.sendSystemAudioData(pcm16Buffer)
}).catch(() => {
capture.start().catch(() => {
// 시스템 오디오 캡처 실패 시 무시 — 마이크 자막만 사용
})
})
const unsubStop = window.electronAPI.caption.onStopSystemAudio(() => {
stopSystemAudioCapture()
capture.stop()
})
systemAudioCleanupRef.current = () => {
stopSystemAudioCapture()
}
return () => {
unsubStart()
unsubStop()
systemAudioCleanupRef.current?.()
capture.stop()
}
}, [])