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

@ -1,10 +0,0 @@
// apps/admin/src/lib/supabase-server.ts
// Next.js cookies() 주입 래퍼 — 실제 로직은 @d3ro/api-client
import { cookies } from 'next/headers'
import { createSupabaseServerClient } from '@d3ro/api-client/supabase-server'
export async function getSupabaseServerClient() {
const cookieStore = await cookies()
return createSupabaseServerClient(cookieStore)
}