From 9d6f5bfacc897e9d051236ca15e11dd052a0ea3a Mon Sep 17 00:00:00 2001 From: altair823 Date: Sun, 10 May 2026 23:56:26 +0900 Subject: [PATCH] =?UTF-8?q?refactor(sync-help):=20ConflictModal=20?= =?UTF-8?q?=E2=80=94=20SyncHelpAnchor=20import=20=EB=A1=9C=20literal=20dup?= =?UTF-8?q?licate=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #33 회차 1 review 반영. 두 파일 sibling 인데 anchor union 두 곳 정의 → import type 1줄로 단일 source of truth. 향후 anchor 추가 시 두 파일 동시 수정 누락 risk + TS 가 catch 하지 않던 silent drift risk 제거. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/renderer/inbox/components/ConflictModal.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/inbox/components/ConflictModal.tsx b/src/renderer/inbox/components/ConflictModal.tsx index 34760f4..0b22a2d 100644 --- a/src/renderer/inbox/components/ConflictModal.tsx +++ b/src/renderer/inbox/components/ConflictModal.tsx @@ -1,11 +1,12 @@ import React, { useEffect, useState } from 'react'; import type { SyncConflict } from '@shared/types'; import { inboxApi } from '../api.js'; +import type { SyncHelpAnchor } from './SyncHelpModal.js'; interface Props { onClose: () => void; onResolved: () => void; - onOpenHelp?: (anchor: 'main-conflict' | 'auto' | 'silent' | 'setup') => void; + onOpenHelp?: (anchor: SyncHelpAnchor) => void; } const overlayStyle: React.CSSProperties = {