feat: complete release preparation, 10+ ad mediation, CI/CD, and docker deployment
Some checks failed
CI Pipeline / Code Quality & Typecheck (push) Waiting to run
CI Pipeline / Test Suite (macos-latest) (push) Blocked by required conditions
CI Pipeline / Test Suite (ubuntu-latest) (push) Blocked by required conditions
CI Pipeline / Test Suite (windows-latest) (push) Blocked by required conditions
CI Pipeline / Build Validation (admin) (push) Blocked by required conditions
CI Pipeline / Build Validation (desktop) (push) Blocked by required conditions
Deploy Landing Page / deploy (push) Blocked by required conditions
Deploy Landing Page / build (push) Waiting to run
Release & Packaging Pipeline / Build & Publish Admin Docker Image (push) Failing after 8s
Release & Code Signing CA Pipeline / build-and-sign-windows (push) Failing after 1m51s
Build macOS / Build & Package (macOS) (push) Failing after 4s
Build macOS / Build & Package (macOS)-1 (push) Failing after 5s
Release & Code Signing CA Pipeline / build-and-sign-macos (push) Failing after 3s
Release & Packaging Pipeline / Package macOS Desktop App (push) Failing after 4s
Release & Packaging Pipeline / Package Windows Desktop App (push) Failing after 2m28s
Release & Packaging Pipeline / Publish Official GitHub Release (push) Has been skipped

This commit is contained in:
Yun Chan 2026-08-20 11:12:05 +09:00
parent 5cd1de6859
commit 708e20f747
406 changed files with 42464 additions and 6199 deletions

View file

@ -1,8 +1,7 @@
// src/renderer/components/AppLayout.tsx
// v2 "Midnight Glass": 보더리스 셸 — 와이드 사이드바(그라디언트 액티브 필) +
// 앰비언트 배경 + 오버레이 스크롤(레이아웃 폭 불변) + 커스텀 타이틀바
// v3 "Tactile Liquid & Midnight Glass": Borderless Shell with Floating Island Navigation
import { useState, useEffect } from 'react'
import React, { useState, useEffect } from 'react'
import { Alert, Box, Snackbar, Typography } from '@mui/material'
import {
LayoutDashboard,
@ -13,9 +12,12 @@ import {
Library,
Users,
Settings,
Sparkles,
Zap,
Headphones,
} from 'lucide-react'
import { OverlayScrollbarsComponent } from 'overlayscrollbars-react'
import { Led } from '@d3ro/ui/components/ds'
import { Led, TactileBadge } from '@d3ro/ui/components/ds'
import { DashboardPage } from '../pages/DashboardPage'
import { HistoryPage } from '../pages/HistoryPage'
import { DictionaryPage } from '../pages/DictionaryPage'
@ -26,9 +28,13 @@ import { MeetingModePage } from '../pages/MeetingModePage'
import { SettingsModal } from './SettingsModal'
import { LicenseModal } from './LicenseModal'
import { OnboardingModal } from './OnboardingModal'
import { AdBanner } from './ads/AdBanner'
import { RewardedQuotaModal } from './ads/RewardedQuotaModal'
import { SupportModal } from './support/SupportModal'
import { CheckoutModal } from './payment/CheckoutModal'
import { StatusBar } from './StatusBar'
import { TitleBar } from './TitleBar'
import { d3roPalette, d3roFontSans, d3roTypo, d3roRadius, d3roShadow } from '@d3ro/ui/theme'
import { d3roPalette, d3roFontSans, d3roFontMono, d3roTypo, d3roRadius, d3roShadow } from '@d3ro/ui/theme'
import { useI18n } from '@d3ro/i18n'
import type { TranslationKey } from '@d3ro/i18n'
import type { LicenseTier } from '@d3ro/core/types'
@ -55,9 +61,15 @@ const NAV_ITEMS: NavItem[] = [
function tierToLedColor(tier: LicenseTier): 'amber' | 'green' {
switch (tier) {
case 'free': return 'amber'
case 'pro': return 'green'
case 'pro_plus': return 'green'
case 'free':
return 'amber'
case 'pro':
case 'pro_plus':
case 'team':
case 'enterprise':
return 'green'
default:
return 'amber'
}
}
@ -65,15 +77,16 @@ export function AppLayout(): React.ReactElement {
const { t } = useI18n()
const [currentRoute, setCurrentRoute] = useState<Route>('dashboard')
const [settingsOpen, setSettingsOpen] = useState(false)
const [settingsInitialTab, setSettingsInitialTab] = useState<number>(0)
const [onboardingOpen, setOnboardingOpen] = useState(false)
const [licenseModalOpen, setLicenseModalOpen] = useState(false)
const [supportModalOpen, setSupportModalOpen] = useState(false)
const [checkoutModalOpen, setCheckoutModalOpen] = useState(false)
const [rewardedModalOpen, setRewardedModalOpen] = useState(false)
const [currentTier, setCurrentTier] = useState<LicenseTier>('free')
// Phase 3.2: Premium LLM fallback 배너 (상단 중앙, 8초, warning filled)
const [fallbackMsg, setFallbackMsg] = useState<string | null>(null)
// 음성 세션 에러/경고 배너 (모델 미설치, 엔진 실패, LLM 스킵 등)
const [voiceAlert, setVoiceAlert] = useState<{ message: string; severity: 'error' | 'warning' } | null>(null)
// 첫 실행 감지 — 로컬 모드 entry point에서 온보딩 자동 표시
useEffect(() => {
window.electronAPI.config.getAll().then((r) => {
if (r.success && !r.data.onboardingCompleted) {
@ -82,7 +95,6 @@ export function AppLayout(): React.ReactElement {
})
}, [])
// License: load tier + subscribe to changes + listen for open-modal events
useEffect(() => {
window.electronAPI.license.getInfo().then((r) => {
if (r.success) setCurrentTier(r.data.tier)
@ -99,12 +111,17 @@ export function AppLayout(): React.ReactElement {
const handleOpenLicenseModal = () => setLicenseModalOpen(true)
window.addEventListener('d3ro:open-license-modal', handleOpenLicenseModal)
// 대시보드 CTA(키 설정/시스템 설정)에서 설정 모달 열기
const handleOpenSettings = () => setSettingsOpen(true)
window.addEventListener('d3ro:open-settings', handleOpenSettings)
const handleOpenSettings = (e?: Event) => {
const customEvent = e as CustomEvent<{ tab?: number }> | undefined
if (customEvent?.detail?.tab !== undefined) {
setSettingsInitialTab(customEvent.detail.tab)
} else {
setSettingsInitialTab(0)
}
setSettingsOpen(true)
}
window.addEventListener('d3ro:open-settings', handleOpenSettings as EventListener)
// 음성 세션 에러/경고 — 단축키 녹음 실패를 메인 UI에서도 명확히 알림.
// 모델 미설치(101)는 온보딩 모달을 함께 연다.
const unsubVoiceError = window.electronAPI.voice.onError((e) => {
const severity = e.severity ?? 'error'
let message = e.message
@ -119,7 +136,6 @@ export function AppLayout(): React.ReactElement {
setVoiceAlert({ message, severity })
})
// Phase 3.2: Premium LLM fallback/upgrade 이벤트 구독
const unsubFallback = window.electronAPI.llm.premium.onFallback((e) => {
setFallbackMsg(e.reason)
})
@ -142,56 +158,66 @@ export function AppLayout(): React.ReactElement {
<Box sx={{ display: 'flex', height: '100vh', flexDirection: 'column', bgcolor: d3roPalette.bg.app }}>
<TitleBar />
<Box sx={{ display: 'flex', flex: 1, overflow: 'hidden' }}>
{/* ── 사이드바: 와이드 메뉴 (레퍼런스 패턴) ─── */}
{/* ── Sidebar: Floating Island Aesthetic ─── */}
<Box
sx={{
width: 168,
width: 184,
flexShrink: 0,
bgcolor: d3roPalette.bg.sidebar,
borderRight: `1px solid ${d3roPalette.glass.hairline}`,
display: 'flex',
flexDirection: 'column',
px: 1.5,
pt: 3,
px: 1.75,
pt: 2,
pb: 2,
gap: 0.5,
gap: 0.6,
}}
>
{/* 로고 — 그라디언트 브랜드 텍스트 */}
<Box sx={{ px: 1.5, mb: 3, display: 'flex', flexDirection: 'column', gap: 0.25 }}>
<Box sx={{ display: 'flex', alignItems: 'center', gap: 1 }}>
<Led color={tierToLedColor(currentTier)} pulse={currentTier !== 'free'} size={8} />
{/* Brand Logo & Tier Badge */}
<Box sx={{ px: 1.25, mb: 3.5, display: 'flex', flexDirection: 'column', gap: 0.5 }}>
<Box sx={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
<Box sx={{ display: 'flex', alignItems: 'center', gap: 1 }}>
<Led color={tierToLedColor(currentTier)} pulse={currentTier !== 'free'} size={8} />
<Typography
sx={{
fontFamily: d3roFontSans,
fontSize: '20px',
fontWeight: 800,
letterSpacing: '-0.02em',
backgroundImage: d3roPalette.gradient.logo,
backgroundClip: 'text',
WebkitBackgroundClip: 'text',
color: 'transparent',
lineHeight: 1.1,
}}
>
D3RO
</Typography>
</Box>
<Typography
sx={{
fontFamily: d3roFontSans,
fontSize: d3roTypo.value.size,
fontWeight: 800, // P4: 토큰에 없는 800 보존
letterSpacing: '0.02em', // P4: 토큰에 없는 0.02em 보존
backgroundImage: d3roPalette.gradient.logo,
backgroundClip: 'text',
WebkitBackgroundClip: 'text',
color: 'transparent',
lineHeight: 1.1,
fontFamily: d3roFontMono,
fontSize: '10px',
fontWeight: 700,
letterSpacing: '0.08em',
color: d3roPalette.text.dimLabel,
textTransform: 'uppercase',
}}
>
D3RO
VOICE
</Typography>
</Box>
<Typography
sx={{
fontFamily: d3roFontSans,
fontSize: d3roTypo.compact.size,
fontWeight: 500, // P4: 토큰에 없는 500 보존
letterSpacing: '0.12em', // P4: 토큰에 없는 0.12em 보존
color: d3roPalette.text.dimLabel,
pl: '16px',
}}
>
Voice
</Typography>
{currentTier !== 'free' && (
<Box sx={{ pl: 2, mt: 0.25 }}>
<TactileBadge mono tone="accent">
{currentTier.toUpperCase()}
</TactileBadge>
</Box>
)}
</Box>
{/* 네비게이션 */}
{/* Navigation Items */}
{NAV_ITEMS.map((item) => {
const isActive = currentRoute === item.route
return (
@ -203,20 +229,23 @@ export function AppLayout(): React.ReactElement {
alignItems: 'center',
gap: 1.25,
px: 1.5,
py: 1.25,
py: 1.15,
borderRadius: d3roRadius.inner,
cursor: 'pointer',
color: isActive ? d3roPalette.text.primary : d3roPalette.text.inactive,
// 액티브: 글래스 필 + 그라디언트 헤어라인 보더 + 소프트 글로우
border: '1px solid transparent',
background: isActive
? `linear-gradient(${d3roPalette.glass.raised}, ${d3roPalette.glass.raised}) padding-box, ${d3roPalette.gradient.accent} border-box`
: 'transparent',
boxShadow: isActive ? d3roShadow.glowSoft : 'none',
transition: 'color 0.15s ease, background-color 0.15s ease',
transition: 'all 0.18s cubic-bezier(0.16, 1, 0.3, 1)',
'&:hover': {
color: d3roPalette.text.primary,
bgcolor: isActive ? undefined : d3roPalette.glass.raised,
transform: 'translateX(2px)',
},
'&:active': {
transform: 'translateX(1px) scale(0.99)',
},
'& svg': {
color: isActive ? d3roPalette.accent.light : 'inherit',
@ -239,10 +268,42 @@ export function AppLayout(): React.ReactElement {
)
})}
{/* 스페이서 */}
<Box sx={{ flex: 1 }} />
{/* Customer Support Trigger */}
<Box
onClick={() => setSupportModalOpen(true)}
sx={{
display: 'flex',
alignItems: 'center',
gap: 1.25,
px: 1.5,
py: 1.15,
borderRadius: d3roRadius.inner,
cursor: 'pointer',
color: d3roPalette.text.inactive,
border: `1px solid ${d3roPalette.glass.hairline}`,
bgcolor: d3roPalette.glass.surface,
transition: 'all 0.18s ease',
'&:hover': {
color: d3roPalette.tag.purpleText,
bgcolor: d3roPalette.glass.raised,
borderColor: d3roPalette.tag.purpleBorder,
},
}}
>
<Headphones size={ICON_SIZE} />
<Typography
sx={{
fontFamily: d3roFontSans,
fontSize: d3roTypo.compact.size,
fontWeight: 500,
lineHeight: 1,
}}
>
Customer Support
</Typography>
</Box>
{/* Settings */}
{/* Settings Trigger */}
<Box
onClick={() => setSettingsOpen(true)}
sx={{
@ -250,65 +311,108 @@ export function AppLayout(): React.ReactElement {
alignItems: 'center',
gap: 1.25,
px: 1.5,
py: 1.25,
py: 1.15,
borderRadius: d3roRadius.inner,
cursor: 'pointer',
color: d3roPalette.text.inactive,
transition: 'color 0.15s ease, background-color 0.15s ease',
'&:hover': { color: d3roPalette.text.primary, bgcolor: d3roPalette.glass.raised },
border: `1px solid ${d3roPalette.glass.hairline}`,
bgcolor: d3roPalette.glass.surface,
transition: 'all 0.18s ease',
'&:hover': {
color: d3roPalette.text.primary,
bgcolor: d3roPalette.glass.raised,
borderColor: d3roPalette.glass.hairlineStrong,
},
}}
>
<Settings size={ICON_SIZE} />
<Typography sx={{ fontFamily: d3roFontSans, fontSize: d3roTypo.compact.size, fontWeight: 500, lineHeight: 1 }}>
<Typography
sx={{
fontFamily: d3roFontSans,
fontSize: d3roTypo.compact.size,
fontWeight: 500,
lineHeight: 1,
}}
>
{t('nav.settings')}
</Typography>
</Box>
</Box>
{/* ── 콘텐츠 영역: 앰비언트 배경 + 오버레이 스크롤 ── */}
{/* ── Content Viewport: Ambient Mesh Background + Overlay Scrollbars ── */}
<Box
component="main"
sx={{
flexGrow: 1,
minWidth: 0,
display: 'flex',
flexDirection: 'column',
position: 'relative',
bgcolor: d3roPalette.bg.app,
// 앰비언트 그라디언트 오브 (좌상단 액센트 / 우하단 퍼플 힌트)
background: `
radial-gradient(ellipse 55% 40% at 12% -5%, ${d3roPalette.accent.dim} 0%, transparent 60%),
radial-gradient(ellipse 50% 35% at 95% 105%, ${d3roPalette.tag.purpleBg} 0%, transparent 60%),
radial-gradient(ellipse 60% 45% at 15% -5%, ${d3roPalette.accent.dim} 0%, transparent 65%),
radial-gradient(ellipse 55% 40% at 95% 105%, ${d3roPalette.tag.purpleBg} 0%, transparent 65%),
${d3roPalette.bg.app}
`,
}}
>
<OverlayScrollbarsComponent
defer
options={{
scrollbars: {
theme: 'os-theme-dark',
autoHide: 'move',
autoHideDelay: 800,
clickScroll: true,
},
}}
style={{ height: '100%', width: '100%' }}
>
{currentRoute === 'dashboard' && <DashboardPage />}
{currentRoute === 'history' && <HistoryPage />}
{currentRoute === 'dictionary' && <DictionaryPage />}
{currentRoute === 'commands' && <CommandsPage />}
{currentRoute === 'conversation' && <VoiceConversationPage />}
{currentRoute === 'knowledge' && <KnowledgeBasePage />}
{currentRoute === 'meeting' && <MeetingModePage />}
</OverlayScrollbarsComponent>
<Box sx={{ flex: 1, overflow: 'hidden' }}>
<OverlayScrollbarsComponent
defer
options={{
scrollbars: {
theme: 'os-theme-dark',
autoHide: 'move',
autoHideDelay: 800,
clickScroll: true,
},
}}
style={{ height: '100%', width: '100%' }}
>
{currentRoute === 'dashboard' && <DashboardPage />}
{currentRoute === 'history' && <HistoryPage />}
{currentRoute === 'dictionary' && <DictionaryPage />}
{currentRoute === 'commands' && <CommandsPage />}
{currentRoute === 'conversation' && <VoiceConversationPage />}
{currentRoute === 'knowledge' && <KnowledgeBasePage />}
{currentRoute === 'meeting' && <MeetingModePage />}
</OverlayScrollbarsComponent>
</Box>
{/* Free Tier Subtle Dock Banner */}
{currentTier === 'free' && (
<Box sx={{ px: 2, pb: 1, pt: 0.5, flexShrink: 0 }}>
<AdBanner
tier={currentTier}
onOpenUpgradeModal={() => setCheckoutModalOpen(true)}
/>
</Box>
)}
</Box>
</Box>
<StatusBar />
<SettingsModal open={settingsOpen} onClose={() => setSettingsOpen(false)} />
<SettingsModal open={settingsOpen} initialTab={settingsInitialTab} onClose={() => setSettingsOpen(false)} />
<LicenseModal open={licenseModalOpen} onClose={() => setLicenseModalOpen(false)} />
<OnboardingModal open={onboardingOpen} onClose={() => setOnboardingOpen(false)} />
<SupportModal open={supportModalOpen} onClose={() => setSupportModalOpen(false)} />
<CheckoutModal
open={checkoutModalOpen}
onClose={() => setCheckoutModalOpen(false)}
onSuccess={(newTier) => {
setCurrentTier(newTier)
setCheckoutModalOpen(false)
}}
/>
<RewardedQuotaModal
open={rewardedModalOpen}
onClose={() => setRewardedModalOpen(false)}
onRewardClaimed={(tokens) => {
alert(`🎉 ${tokens}개의 무료 클라우드 AI 정제 토큰이 충전되었습니다!`)
}}
/>
{/* Phase 3.2: Premium LLM fallback 배너 — 상단 중앙, 8초, warning filled */}
{/* Fallback Banner */}
<Snackbar
open={fallbackMsg !== null}
autoHideDuration={8000}
@ -320,7 +424,7 @@ export function AppLayout(): React.ReactElement {
</Alert>
</Snackbar>
{/* 음성 세션 에러/경고 배너 — 모델 미설치·엔진 실패·LLM 스킵 알림 */}
{/* Voice Alert Banner */}
<Snackbar
open={voiceAlert !== null}
autoHideDuration={6000}