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

@ -22,7 +22,7 @@ import { useI18n } from '@d3ro/i18n'
import type { LLMModel } from '@d3ro/core/types'
import { useInputInsights } from '../../hooks/useInputInsights'
const OVERLINE_SX = { color: d3roPalette.text.label, letterSpacing: '1.5px' } as const
const SECTION_TITLE_SX = { ...typoSx('label'), color: d3roPalette.text.tertiary } as const
const HINT_SX = {
color: d3roPalette.text.secondary,
@ -175,7 +175,7 @@ export function InputConsentPanel(): React.ReactElement {
<Box sx={{ display: 'flex', flexDirection: 'column', gap: 2.5 }}>
{/* ── 동의 ─────────────────────────────────────── */}
<Box sx={{ display: 'flex', flexDirection: 'column', gap: 1.25 }}>
<Typography variant="overline" sx={OVERLINE_SX}>
<Typography component="h3" sx={SECTION_TITLE_SX}>
{t('input.consent.title')}
</Typography>
<Typography sx={HINT_SX}>{t('input.consent.description')}</Typography>
@ -191,7 +191,7 @@ export function InputConsentPanel(): React.ReactElement {
gap: 0.5
}}
>
<Typography sx={{ ...typoSx('label'), color: d3roPalette.text.dimLabel }}>
<Typography sx={{ ...typoSx('label'), color: d3roPalette.text.tertiary }}>
{t('input.privacy.title')}
</Typography>
<Typography sx={HINT_SX}>{t('input.privacy.localOnly')}</Typography>
@ -246,7 +246,7 @@ export function InputConsentPanel(): React.ReactElement {
gap: 0.25
}}
>
<Typography sx={{ ...typoSx('label'), color: d3roPalette.text.dimLabel }}>
<Typography sx={{ ...typoSx('label'), color: d3roPalette.text.tertiary }}>
{t('input.diagnostics.title')}
</Typography>
<Typography sx={HINT_SX}>
@ -273,12 +273,12 @@ export function InputConsentPanel(): React.ReactElement {
: t('input.diagnostics.notReadable')}
</Typography>
{snapshot?.composing ? (
<Typography sx={{ ...HINT_SX, color: d3roPalette.text.inactive }}>
<Typography sx={{ ...HINT_SX, color: d3roPalette.text.tertiary }}>
{t('input.diagnostics.composing')}
</Typography>
) : null}
{snapshot?.caretFallback && snapshot.editable ? (
<Typography sx={{ ...HINT_SX, color: d3roPalette.text.inactive }}>
<Typography sx={{ ...HINT_SX, color: d3roPalette.text.tertiary }}>
{t('input.diagnostics.caretFallback')}
</Typography>
) : null}
@ -381,7 +381,7 @@ export function InputConsentPanel(): React.ReactElement {
) : null}
</Box>
<Typography sx={{ ...HINT_SX, color: d3roPalette.text.inactive }}>
<Typography sx={{ ...HINT_SX, color: d3roPalette.text.tertiary }}>
{t('input.insights.statsMovedHint')}
</Typography>
</Box>
@ -390,7 +390,7 @@ export function InputConsentPanel(): React.ReactElement {
{/* ── 제안 정책 ─────────────────────────────────── */}
<Box sx={{ display: 'flex', flexDirection: 'column', gap: 1.25 }}>
<Typography variant="overline" sx={OVERLINE_SX}>
<Typography component="h3" sx={SECTION_TITLE_SX}>
{t('input.suggestion.title')}
</Typography>
<Typography sx={HINT_SX}>{t('input.suggestion.description')}</Typography>
@ -400,6 +400,8 @@ export function InputConsentPanel(): React.ReactElement {
<Switch
size="small"
checked={suggestionEnabled}
// 제안은 입력 맥락(수집 동의)이 있어야만 동작한다 — 동의 없이 켜면 모델만 데우고 영영 뜨지 않는다.
disabled={!enabled}
onChange={(e) => void handleSuggestionToggle(e.target.checked)}
/>
}
@ -491,7 +493,7 @@ export function InputConsentPanel(): React.ReactElement {
{/* 상태 표시 — 스위치로 두면 설정처럼 보여서 "왜 못 켜지?" 가 된다. */}
<Box sx={{ display: 'flex', alignItems: 'center', gap: 1 }}>
<Typography sx={{ ...typoSx('label'), color: d3roPalette.text.dimLabel }}>
<Typography sx={{ ...typoSx('label'), color: d3roPalette.text.tertiary }}>
{t('input.suggestion.onScreenLabel')}
</Typography>
<Box
@ -506,7 +508,7 @@ export function InputConsentPanel(): React.ReactElement {
<Typography
sx={{
...typoSx('micro'),
color: suggestion?.visible ? d3roPalette.accent.main : d3roPalette.text.inactive
color: suggestion?.visible ? d3roPalette.accent.main : d3roPalette.text.tertiary
}}
>
{suggestion?.visible ? t('input.suggestion.onScreen') : t('input.suggestion.offScreen')}
@ -545,7 +547,7 @@ export function InputConsentPanel(): React.ReactElement {
</Box>
{suggestion?.lastSkipReason ? (
<Typography sx={{ ...HINT_SX, color: d3roPalette.text.inactive }}>
<Typography sx={{ ...HINT_SX, color: d3roPalette.text.tertiary }}>
{t('input.suggestion.lastSkip', { reason: suggestion.lastSkipReason })}
</Typography>
) : null}