refactor(ui): remove dead DS exports and unify wave gradient fallbacks (WS-G1)

Wave 5 G1 — evidence-based deletion only (docs/REFACTOR_WAVE5_AUDIT.md).

Deleted (references = 0 repo-wide, grep verified):
- apps/desktop/src/renderer/components/ProBadge.tsx (65 lines, self-reference only)
- apps/admin/src/lib/supabase-server.ts (unused duplicate of the web wrapper;
  api-client already owns createSupabaseServerClient)
- packages/ui: d3roSpace, d3roWeight, d3roMotion, darkTheme, lightTheme,
  getModePalette; `themes` kept module-private (used by getTheme)
- packages/ui-native: d3roNativeSpace, d3roNativeWeight, d3roNativeMotion,
  d3roNativeOverlayShadow, D3roNativePaletteKey (+ barrel entries)

Changed:
- ds/AudioVisualizerBar, ds/GradientWave: SSR/무-문서 폴백 hex 대신
  theme-raw RAW.dark.gradient 를 읽는다. 같은 색을 두 곳에 적지 않는다 (DP1).

Verification:
- npm run typecheck (desktop/web/admin/packages) GREEN
- npm run lint --max-warnings=0 GREEN
- npm run test GREEN
- npm run typecheck:mobile, lint:mobile GREEN; test:mobile 599 GREEN
- npm run check:design: 0 violations

Kept (with reason): apps/desktop/src/preload/popup.ts (electron-vite entry),
apps/*/src/proxy.ts (Next middleware), instrumentation.ts, *.d.ts,
constants.ts WAVE_BAR (화면 고유 수치, P4).
This commit is contained in:
Yun Chan 2026-11-08 20:55:40 +09:00
parent f57e40d82a
commit b8b91901eb
7 changed files with 25 additions and 135 deletions

View file

@ -11,14 +11,9 @@ export {
d3roNativeTypo,
d3roNativeRadius,
d3roNativeFonts,
d3roNativeSpace,
d3roNativeControl,
d3roNativeWeight,
d3roNativeMotion,
d3roNativeNumerals,
d3roNativeOverlayShadow,
type D3roNativePalette,
type D3roNativePaletteKey,
type D3roNativeStatus,
type D3roNativeThemeKey,
type D3roNativeTypoKey

View file

@ -12,7 +12,7 @@
// - accent.solid 는 채운 버튼 배경, accent.ink 는 그 위 글자 (4.5:1 이상). accent.main 은 채움에 쓰지 않는다.
// - 굵기는 400/500 (강조 600). 대문자 변환·자간 없음. 모노 폰트 없음(한글 글리프가 없다).
import { Platform, type TextStyle, type ViewStyle } from 'react-native'
import { Platform, type TextStyle } from 'react-native'
export type D3roNativeThemeKey = 'dark' | 'light'
@ -209,11 +209,6 @@ export function getD3roNativePalette(key: D3roNativeThemeKey): D3roNativePalette
return key === 'light' ? d3roNativeLightPalette : d3roNativeDarkPalette
}
// ── 간격·컨트롤·웨이트·모션 (RN 은 숫자) ──
export const d3roNativeSpace = {
s1: 4, s2: 8, s3: 12, s4: 16, s5: 24, s6: 40, s7: 64, s8: 96
} as const
/** 터치 타깃: iOS 44pt / Android 48dp — 두 플랫폼 모두 48 로 맞춘다. 버튼처럼 생긴 것은 이 높이 이상. */
export const d3roNativeControl = {
h: 48,
@ -221,15 +216,6 @@ export const d3roNativeControl = {
padXSm: 12
} as const
export const d3roNativeWeight = {
body: '400' as const, medium: '500' as const, strong: '600' as const
} as const
/** theme-raw MOTION 과 같은 길이(ms). 상태 변화 피드백만 — 등장 연출은 쓰지 않는다. */
export const d3roNativeMotion = {
instant: 100, quick: 160, normal: 240, slow: 400
} as const
// v4 타입 — 데스크톱 d3roTypo v4 와 같은 철학: 크기·명도로 위계, 굵기 400/500, 자간 0(큰 제목만 살짝 음수).
// RN letterSpacing 단위는 px, lineHeight 는 px. 한글 본문 행간 1.6.
export const d3roNativeTypo = {
@ -263,16 +249,4 @@ export const d3roNativeFonts = {
/** 수치 정렬 — 흔들리는 숫자 방지 */
export const d3roNativeNumerals: TextStyle = { fontVariant: ['tabular-nums'] }
/** 떠 있는 층(시트·메뉴·플로팅 버튼) 전용 그림자. 카드·버튼 표면에는 쓰지 않는다. */
export function d3roNativeOverlayShadow(palette: D3roNativePalette): ViewStyle {
return {
shadowColor: palette.shadow,
shadowOffset: { width: 0, height: 8 },
shadowOpacity: 0.28,
shadowRadius: 16,
elevation: 8
}
}
export type D3roNativePaletteKey = keyof D3roNativePalette
export type D3roNativeTypoKey = keyof typeof d3roNativeTypo