desktop 앱 적용

This commit is contained in:
Macbook
2026-06-14 10:15:54 +09:00
parent 7a2f65088c
commit 86b99d8c10
81 changed files with 8164 additions and 37 deletions
@@ -27,6 +27,8 @@ import {
type TradeAlertSoundId,
} from '../utils/tradeAlertSound';
import { normalizeStrategyId } from '../utils/resolveNotificationStrategy';
import { showDesktopNativeNotification } from '../utils/desktopBridge';
import { getKoreanName } from '../utils/marketNameCache';
import { getUiPreferences, patchUiPreferences } from '../utils/uiPreferencesDb';
import { useAppSettings } from '../hooks/useAppSettings';
@@ -428,6 +430,13 @@ export const TradeNotificationProvider: React.FC<ProviderProps> = ({
const rest = prev.filter(n => n.id !== id);
return [toastItem, ...rest].slice(0, MAX_TOAST_QUEUE);
});
const sideLabel = signal.signalType === 'BUY' ? '매수' : '매도';
const marketLabel = getKoreanName(signal.market);
void showDesktopNativeNotification(
`GoldenChart ${sideLabel} 시그널`,
`${marketLabel} · ₩${Math.round(signal.price ?? 0).toLocaleString()}`,
);
}, [popupEnabled, soundEnabled, alertSoundId]);
const dismissToast = useCallback((id: string) => {