Skip to content

Commit 692baeb

Browse files
committed
[-]: 계획 문서 상태 업데이트
1 parent 0e5eeb9 commit 692baeb

1 file changed

Lines changed: 24 additions & 2 deletions

File tree

docs/plans/2026-03-24-project-restart.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ Expected:
345345

346346
**Suggested worktree:** `codex/add-highlight-padding-and-overlay-click-behavior`
347347

348-
**Status:** 다음 추천 작업
348+
**Status:** 완료 및 병합됨
349349

350350
**Goal:** 이미 타입에 존재하는 `highLightPadding`를 실제 위치 계산에 반영하고 overlay UX를 다듬는다.
351351

@@ -358,11 +358,33 @@ Expected:
358358
- viewport 경계에서 info box 위치 보정
359359
- 필요하면 highlight border radius와 padding 동기화
360360

361+
**Files likely involved:**
362+
- Modify: `packages/main/src/core/types.ts`
363+
- Modify: `packages/main/src/components/tutorial-overlay.tsx`
364+
- Test: `packages/main/test/tutorial-overlay.test.tsx`
365+
- Modify: `README.md`
366+
- Modify: `packages/document/src/pages/docs/tutorial.mdx`
367+
- Modify: `packages/document/src/pages/docs/tutorial-overlay.mdx`
368+
369+
**Acceptance criteria:**
370+
- `highLightPadding`가 기본값과 사용자 지정 값 모두에서 highlight rect에 반영된다.
371+
- info box가 viewport 가장자리 근처에서도 잘리지 않게 보정된다.
372+
- padding 적용 후 highlight 시각 스타일과 info box 배치가 기존 UX를 크게 해치지 않는다.
373+
- 관련 테스트와 문서가 현재 동작과 일치한다.
374+
375+
**Result:**
376+
- `Options.highLightPadding` 기본값을 `8`로 두고 highlight rect 계산에 실제 반영
377+
- highlight frame을 `box-sizing: border-box` 기준으로 정리하고 padding 크기에 맞춰 border radius를 동기화
378+
- 첫 번째 유효 target 기준으로 info box anchor를 잡고 viewport 좌우/상하 경계 안으로 위치 보정
379+
- `packages/main/test/tutorial-overlay.test.tsx`에 default/custom padding, viewport clamp 회귀 테스트 추가
380+
- README 및 docs 예제를 `highLightPadding`과 info box 재배치 동작 설명에 맞게 업데이트
381+
- `pnpm -C packages/main test`, `pnpm -F @react-tutorial-overlay/document build`, `pnpm build` 통과
382+
361383
### Candidate C: Add Promise API
362384

363385
**Suggested worktree:** `codex/add-promise-api`
364386

365-
**Status:** 후속 후보
387+
**Status:** 다음 추천 작업
366388

367389
**Goal:** 튜토리얼 완료/취소 시점을 소비자가 await할 수 있도록 Promise 기반 API를 추가한다.
368390

0 commit comments

Comments
 (0)